SinginSally
Member
I am wondering how to write or modify a script to add delays inbetween fights so things dont fly by so fast.
Lets say I have a script that does this:
// Sets up some condition.
// Sets up some location.
adventure(my_adventures(), location);
// Do the next thing.
When the condition is hit, I presume the 'adventure' call completes and the rest of the code gets executed. Either this happens or your run out of turns.
What I want is something like this:
// Same stuff as above.
while (true == adventure(1, location))
{
wait(1);
}
The question is: Does this work? Ashref says that adventure returns a boolean, but I am wondering what it returns. If you have a condition that is met, does it return TRUE? If you adventured for the 1 turn without meeting the condition, does it return false?
If so, the above code ought to work. If this doesn't work, then can anyone make suggestions?
I wanted to slow down several scripts, such as macGuffin. But during actual adventuring, most of them use a code block like previously where there call Obtain(x,y,z) or adventure(my_adv, loc), where Obtain in zlib basically boils down to adventure(my_adv,loc) if you dont have the item or cant buy it.
Thanks for the assistance!
Lets say I have a script that does this:
// Sets up some condition.
// Sets up some location.
adventure(my_adventures(), location);
// Do the next thing.
When the condition is hit, I presume the 'adventure' call completes and the rest of the code gets executed. Either this happens or your run out of turns.
What I want is something like this:
// Same stuff as above.
while (true == adventure(1, location))
{
wait(1);
}
The question is: Does this work? Ashref says that adventure returns a boolean, but I am wondering what it returns. If you have a condition that is met, does it return TRUE? If you adventured for the 1 turn without meeting the condition, does it return false?
If so, the above code ought to work. If this doesn't work, then can anyone make suggestions?
I wanted to slow down several scripts, such as macGuffin. But during actual adventuring, most of them use a code block like previously where there call Obtain(x,y,z) or adventure(my_adv, loc), where Obtain in zlib basically boils down to adventure(my_adv,loc) if you dont have the item or cant buy it.
Thanks for the assistance!