Reply to Broken Script
If you don't have an account, just leave the password field blank.
The following script won't work and I can't figure out why. There are also other scripts based on this one that won't work. Can someone please help me out here.
void main()
{
featloop:
choice_start();
title_start();
Please choose a feat.
title_end();
"Attack Skill"
"Attack Speciality"
"Attack Mastery"
"Cancel"
choice_end();
if (&result == 1)
{
if (&atfeat > 0)
{
say_stop_xy("You already have this feat."
goto featloop;
}
else
{
&atfeat == 1;
&attack += 1;
kill_this_task();
}
}
if (&result == 2)
{
if (&atfeat > 1)
{
say_stop_xy("You already have this feat."
goto featloop;
}
if (&atfeat == 1)
{
if (level == 5)
{
&atfeat == 2;
&attack += 1;
kill_this_task();
}
else
{
say_stop_xy("You don't meet the requirements for this feat.", 10, 40);
goto featloop;
}
}
else
{
say_stop_xy("You don't meet the requirements for this feat.", 10, 40);
goto featloop;
}
}
if (&result == 3)
{
if (&atfeat == 3)
{
say_stop_xy("You already have this feat."
goto featloop;
}
if (&atfeat == 2)
{
if (level == 10)
{
&intro == 0;
&atfeat == 2;
&attack += 1;
kill_this_task();
}
else
{
say_stop_xy("You don't meet the requirements for this feat.", 10, 40);
goto featloop;
}
}
else
{
say_stop_xy("You don't meet the requirements for this feat.", 10, 40);
goto featloop;
}
}
else
{
spawn("stfeats2");
kill_this_task();
}
}
Oh, and all of the global variables are declared in the Main.c file and the Begin script does exist.
void main()
{
featloop:
choice_start();
title_start();
Please choose a feat.
title_end();
"Attack Skill"
"Attack Speciality"
"Attack Mastery"
"Cancel"
choice_end();
if (&result == 1)
{
if (&atfeat > 0)
{
say_stop_xy("You already have this feat."
goto featloop;
}
else
{
&atfeat == 1;
&attack += 1;
kill_this_task();
}
}
if (&result == 2)
{
if (&atfeat > 1)
{
say_stop_xy("You already have this feat."
goto featloop;
}
if (&atfeat == 1)
{
if (level == 5)
{
&atfeat == 2;
&attack += 1;
kill_this_task();
}
else
{
say_stop_xy("You don't meet the requirements for this feat.", 10, 40);
goto featloop;
}
}
else
{
say_stop_xy("You don't meet the requirements for this feat.", 10, 40);
goto featloop;
}
}
if (&result == 3)
{
if (&atfeat == 3)
{
say_stop_xy("You already have this feat."
goto featloop;
}
if (&atfeat == 2)
{
if (level == 10)
{
&intro == 0;
&atfeat == 2;
&attack += 1;
kill_this_task();
}
else
{
say_stop_xy("You don't meet the requirements for this feat.", 10, 40);
goto featloop;
}
}
else
{
say_stop_xy("You don't meet the requirements for this feat.", 10, 40);
goto featloop;
}
}
else
{
spawn("stfeats2");
kill_this_task();
}
}
Oh, and all of the global variables are declared in the Main.c file and the Begin script does exist.