Jump to content

Script Help


poop45

Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...