I'm wanting to have a script on a door's OnAreaTransitionClick that randomly moves the player to another door.
I would like to be able to use this script again if I can, so I'm saveing area variables to the door.
The area I'm getting is "DECLARATION DOES NOT MATCH PARAMETERS" on case 1
void main(){
object oPC = GetClickingObject();if (!GetIsPC(oPC)) return;
string oWP1 = GetLocalString(OBJECT_SELF, "oWP1");string oWP2 = GetLocalString(OBJECT_SELF, "oWP2");string oWP3 = GetLocalString(OBJECT_SELF, "oWP3");string oWP4 = GetLocalString(OBJECT_SELF, "oWP4");string oWP5 = GetLocalString(OBJECT_SELF, "oWP5");string oWP6 = GetLocalString(OBJECT_SELF, "oWP6");
int nCommonRoll = d6();
switch(nCommonRoll) { case 1: AssignCommand(oPC, JumpToObject(oWP1));break; //Error begins here. case 2: AssignCommand(oPC, JumpToObject(oWP2));break; case 3: AssignCommand(oPC, JumpToObject(oWP3));break; case 4: AssignCommand(oPC, JumpToObject(oWP4));break; case 5: AssignCommand(oPC, JumpToObject(oWP5));break; case 6: AssignCommand(oPC, JumpToObject(oWP6));break;
}
}
Any suggestions as to what I'm doing wrong is welcome. Thank you kindly!