Hello folks!
I'm trying to make some randomnes to a mission.
Got some weapon crates I want to move randomly from place a to b or even c.
Now I need to know how to state numbers in between.. umm.. like this
?_wpnrnd3 > 34 <= 66: goto "weaponry3place2"
if a random 100 _wpnrnd3 is bigger than 34 but smaller than 66 then.. blah blah.. what's the syntax to use in that?!?
Here's the whole thing to get 1 random place out of 3
;random VC weapon placement
_wpnrnd1 = random 100
_wpnrnd2 = random 100
_wpnrnd3 = random 100
;----------------------------------------
#weaponry1
?_wpnrnd1 =< 33: goto "weaponry1place1"
;?_wpnrnd1 > 34 <= 66: goto "weaponry1place2"
?_wpnrnd1 > 67: goto "weaponry1place3"
#weaponry2
?_wpnrnd2 =< 33: goto "weaponry2place1"
;?_wpnrnd2 > 34 <= 66: goto "weaponry2place2"
?_wpnrnd2 > 67: goto "weaponry2place3"
#weaponry3
?_wpnrnd3 =< 33: goto "weaponry3place1"
;?_wpnrnd3 > 34 <= 66: goto "weaponry3place2"
?_wpnrnd3 > 67: goto "weaponry3place3"
;-----------------------------------------
#weaponry1place1
crate1 setpos [10211.68,6421.76,0.1]
crate2 setpos [10211.68,6424.39,0.1]
goto "weaponry2"
........ and this continues like this.
I'd also like to know if random 3 includes 0. It would be so much easier to use random 3 instead of 100 because I could state
?_wpnrnd1 == 1 ....
?_wpnrnd2 == 2 ....
?_wpnrnd3 == 3 ....
Thanks in advance