The Dink Network

Reply to Re: I'm making a dmod and I might need help.

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
November 20th 2004, 06:00 AM
fairy.gif
Glennglenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
I`ll explain it more easily than these others guys

//script 1
-----------
void talk(void)
{
if (&Story == 0)
{
say_stop("Talk to me when you have talked with that other guy over there.", &current_sprite);
&story = 1;
}

if (&story == 2)
{
say_stop(the story is now 2.", &current_sprite);
}
}

//script 2
-----------
void talk(void)
{
if (&story == 1;
{
say_stop("I see you`ve talked with that guy over there. Go talk to him again, he has more to say.", &current_sprite);
&story = 2;
}
}

//explaination
---------------
if (%story == 1)
{
This is whats going to happen when the story is 1
}

&story = 2; //This equals the variable &story to 1 so when you talk to the guy who have script 1 attached to him. he will say the tings that you`ve written in &story 1.

Remember the brackets they are usually the most errors that can contain a script. It can make the game freeze, if the bracket is not closed.
But you will learn about it