variable not work

Started by Flyman, Fri 27/01/2012 11:51:46

Previous topic - Next topic

Flyman

Hi...what's wrong in my script...
I've  to examine a object so: the first time the character examine he added a "key" and speech " I've found"....
If the have just take the key...he speech only "nothing".

note: i can't use setglobal, because I can't use a hotspot in my pictures!

if (UsedAction (A_LOOK_AT)) {
 if (MovePlayer (338, 137)) {
   FaceDirection (GetPlayerCharacter(), DIR_UP);
   Wait (5);
if (character [GetPlayerCharacter ()].activeinv == 11) {  \\can use this for  a condition?? "if the character have added just an object "a key"??
     DisplaySpeech(GetPlayerCharacter(), "Nothing.");
   }
   DisplaySpeech (GetPlayerCharacter (), "I've found");
PlaySound(4);
AddInventory (11);
   }
 }
}

Help!

Edited by mod: Locked for double posting.

SMF spam blocked by CleanTalk