The Dink Network

variables

April 1st 2003, 07:46 AM
spike.gif
I feel a bit dumb i have to ask this, and i'm sure all tutorials have a good way of explaining how to do it, but I'm gonna ask anyway. How do I write if (&var = 3) AND (&temp = 4) then (&story = 4)? I've tried a couple of times but my computer crashes time after time. (I'm really bad at getting those variables to work right.)
April 1st 2003, 07:54 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
DinkC has a completely different syntax from what you're trying to plug into it. To do what it looks like you're trying to do, try this:

if (&var == 3)
{
if (&temp == 4)
{
&story = 4;
}
}
April 1st 2003, 08:35 AM
pig.gif

uhhh
April 1st 2003, 11:12 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Your computer crashes?? It should just skip the line. Anyway, it works exactly as Redink told you, you have to nest all the if statements for it to work.
April 2nd 2003, 10:48 AM
spike.gif
I don't know what I'm doing wrong, maybe it is just my computer. Anyway, thanks for all your tips. You can judge if I got it, after i've uploaded the DMOD i'm making for the evil hero contest. Bests