Kissimurra Posted May 25, 2005 Author Posted May 25, 2005 Umm... As I said Im a total noob at scripting, so i didnt quite get it, when I try to save it just says could not find variable or function "Once Only" ?
ThetaOrionis01 Posted May 25, 2005 Posted May 25, 2005 Did you declare the variable, ie put in a line short OnceOnly ?
Kissimurra Posted May 25, 2005 Author Posted May 25, 2005 Yes I did, but it didnt work, well this is how the cript looks: begin 111summon; ;; script location: summons my NPC ; variablesshort done( short OnceOnly?)if ( OnActivate == 1 ) if ( done == 1 ) Activate return else Set done to 1 PlaceAtPC "111_Warrior" 1 128 1 ;1 of them, 256 units away, in back (1) of the player Activate endifendif End
Wookiee Posted May 27, 2005 Posted May 27, 2005 err you script is a figure 8 there thats your problem try this begin 111summon short done if ( OnActivate == 1 ) if ( done != 1 ) Set done to 1 PlaceAtPC "111_Warrior" 1 128 1 Activate return else Activate return endif endif End
Recommended Posts
Archived
This topic is now archived and is closed to further replies.