The Dink Network

Reply to Re: Hatreds hold: Scrolls of the ancients

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:
 
 
February 10th 2007, 02:17 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
I may be able to make a script for you. It seems you would have to know about super vars, wait for button, and goto. You may want to check out keycodes to find out button numbers. Here is a sample script I think will work as a base for you.

int &count = 1;
//our supervar
int &song = 0;
freeze(1);

loop:
wait_for_button();

if (&result == 12)
{
//pressed down

if (&count == 1)
{
&song += 10000;
}

if (&count == 2)
{
&song += 1000;
}

if (&count == 3)
{
&song += 100;
}

if (&count == 4)
{
&song += 10;
}

if (&count == 5)
{
&song += 1;
}
}

if (&result == 14)
{
//pressed left

if (&count == 1)
{
&song += 20000;
}

if (&count == 2)
{
&song += 2000;
}

if (&count == 3)
{
&song += 200;
}

if (&count == 4)
{
&song += 20;
}

if (&count == 5)
{
&song += 2;
}

}

if (&result == 16)
{
//pressed right

if (&count == 1)
{
&song += 30000;
}

if (&count == 2)
{
&song += 3000;
}

if (&count == 3)
{
&song += 300;
}

if (&count == 4)
{
&song += 30;
}

if (&count == 5)
{
&song += 3;
}
}

if (&result == 18)
{
//pressed up
if (&count == 1)
{
&song += 40000;
}

if (&count == 2)
{
&song += 4000;
}

if (&count == 3)
{
&song += 400;
}

if (&count == 4)
{
&song += 40;
}

if (&count == 5)
{
&song += 4;
}

}

if (&result == 35)
{
//pressed end
return();
}

else
{
goto loop;
}

if (&count > 5)
{
&count += 1;
}

if (&count == 5)
{
//heres where you check if their song is right
if (&song == 12345)
{
//do your thing
//you might want to spawn the action here
//but you don't have to
}

else
{
//play an error sound
goto loop;
}

}