The Dink Network

Reply to Re: Screenlocking/Story

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 29th 2010, 02:47 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
void main ( void )
{
if (&story == 2)
{
&strength = 55;
&defense = 25;
say("Woah! I feel beefed up!" ,1);
&story = 3;
}
}


You have to use those { } to mark what's inside the "if" if it's longer then one line.
og and it still runs only when you enter the screen, put it with the other stuff that should happen when the pillbugs are dead. Or use an loop as bellow.
void main ( void )
{
loop:
if (&story == 2)
{
&strength = 55;
&defense = 25;
say("Woah! I feel beefed up!" ,1);
&story = 3;
}
wait(1000);
goto loop;
}



Maybe you should read a tutorial and learn something instead of making us script for you?