Jump to content
  • 0
Snurayroth

set an variable in src?

Question

Hello,

in npc script it would look like this:

set open,0;

How to do this in source ( map\script.c ) ?

I want if u got an npc menu open and press cancel that they will set the variable open to 0.

i think this is the code:

else if( sd->npc_menu == 0xff )
{// Cancel was pressed
		  set open,0;	//????
	sd->state.menu_or_input = 0;
	st->state = END;

Thats the wrong way.. how to do it ???

Thanks 4 help !

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.