poop45 Posted February 16, 2010 Share Posted February 16, 2010 My script is scn 00SwordChest1 begin onactivate if ( player.getlevel < 3 ) return Messagebox "I'm not a high enough level to open this chest" endif end It doesn't work as I intended. I was intending for it to work like if the player level was three or above the chest would open, but if it was lower it would display the message "I'm not a high enough level to open this chest". If anyone could help me with this script it would be grateful. Thanks in Advance, Sincerely, Poop45 Link to comment Share on other sites More sharing options...
DavidBudreck Posted February 17, 2010 Share Posted February 17, 2010 You need to put the return After the message box. You also need an "Activate" in the script to make the chest open. Personally, I would also use "OnActivate Player" rather than just "OnActivate". Like this: Begin OnActivate Player if ( player.getlevel < 3 ) Messagebox "I'm not a high enough level to open this chest" return else Activate endif End Link to comment Share on other sites More sharing options...
poop45 Posted February 17, 2010 Author Share Posted February 17, 2010 Thanks a bunch Link to comment Share on other sites More sharing options...
Recommended Posts