Jump to content

Script help needed


Lucidx

Recommended Posts

Ok I'm trying to make an item that when you pick it up, It displays a message and modifys a stat

heres my script

scn 11GunMessageSCRIPT

;On Pickup, you get +1 to Str and The chuck norris message

short DoOnce

begin OnActivate
if IsActionRef player == 1

if (DoOnce == 0)
	ShowMessage 11GunMessage
	Player.Modav Strength 1
	Set DoOnce to 1
endif
end

Theres an error on line 11?

Link to comment
Share on other sites

You're missing an endif, yet again.

 

So i will again point you to the last post of this thread:

http://thenexusforums.com/index.php?showtopic=127439

 

The sooner you learn to use proper indentation, the sooner you'll stop forgetting endifs and having mixups with nesting.

 

BTW, when you post codeboxes, please make sure none of your lines haves 450485485 blank spaces at the end. Codeboxes don't wrap lines, so the thread page is stretched horizontally unnecessarily. Most browsers won't even show you a horizontal scrollbar in this particular case, so please avoid doing it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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