I made a small script to test my theory that I can use RandomNum... I don't think it works the way I want it to. Here is my example:
IF
True()
RandomNum(5,1)
Global("WierdMan","AR0900",0)
THEN
RESPONSE #100
CreateCreature("firstguy",[0.0],0)
SetGlobal("WierdMan","AR0900",1)
END
IF
True()
RandomNum(5,2)
Global("WierdMan","AR0900",0)
THEN
RESPONSE #100
CreateCreature("2ndguy",[0.0],0)
SetGlobal("WierdMan","AR0900",1)
END
RESPONSE
IF
True()
RandomNum(5,3)
Global("WierdMan","AR0900",0)
THEN
RESPONSE #100
CreateCreature("3rdguy",[0.0],0)
SetGlobal("WierdMan","AR0900",1)
END
IF
True()
RandomNum(5,4)
Global("WierdMan","AR0900",0)
THEN
RESPONSE #100
CreateCreature("frthguy",[0.0],0)
SetGlobal("WierdMan","AR0900",1)
END
IF
True()
RandomNum(5,5)
Global("WierdMan","AR0900",0)
THEN
RESPONSE #100
CreateCreature("fifthguy",[0.0],0)
SetGlobal("WierdMan","AR0900",1)
END
That is basically what I had written. However, now I am wondering why it didn't work the way I wanted it to. Does RandomNum only work for the block that it is in? What I want is for there to be a creature spawn every time, but the creature that spawns (or the location he spawns) to be different. I also want it to be recurring, like on a timer, so that there are always creatures spawning at various times. Is this possible or am I totally lost?
I was hoping that if random number of 5 was rolled, I would get one of these to happen, no matter what.
Thanks for any input.
LugNut
