Hey, I've come to ask for help in the making of a script. Basically, I have an idea on what I'd like to do and I'm pretty sure it's possible, I just wouldn't know how to write it up. So I'll write what I'd like to happen as if I were writing a script, just with words, no functions.
Code:
void main()
{
Check to see if the on perception event has been fired and to see if the distance between the PC and OBJECT_SELf is 7 meters or less and checks to see if a local boolean of OBJECT_SELF is false.
ActionWait(5.0);
ExecuteOtherScript
Or if the above conditional is not met, it goes to this next one.
Check to see if the on perception event has been fired and to see if the distance between the PC and OBJECT_SELf is 10 meters or less and checks to see if a local boolean of OBJECT_SELF is false and checks to see if a global boolean has been set true.
ActionWait(5.0);
ExecuteOtherScript2
Or if the above conditional is not met, it goes to this next one.
Check to see if the on perception event has been fired and to see if the distance between the PC and OBJECT_SELF is 5 meters or less and checks to see if a local boolean of OBJECT_SELF is false and checks to see if a global boolean has been set true.
ActionWait(5.0);
ExecuteOtherScript3
End Script
So I just really need help in setting up those conditionals all into one script. If anyone could help, it'd be much appreciated.