The Dink Network

Reply to Re: Globals and the if statement

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:
 
 
July 26th 2002, 10:21 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
I'll explain. You can create a global with:

make_global_int("&story", 0);

If you want to let something happen when it's value is 3, then you should do this in a script:

if (&story == 3)

{

//let something happen

}

You see, you'll need to use 2 '=' to let it work. Then you can change the value of the variable to 4 with this:

&story = 4;

See, it ain't that hard . Also, you should download the DinkC reference - it's a big help when you're working with the commands.