HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simple Trigger but doesnt work :(

08-20-2002, 03:53 PM#1
Poison_Snake
So i made a map where a computer player (Player 11) have to "patroul" between random regions.

I have for every region a Trigger :

Neutral 1
- Event
Unit - A unit enters region Neutral 1 <gen>
- Condition
(Owner of(entering Unit)) Equal to Player 11 (Dark Green)
- Action
Wait 5.00 seconds
Set Choice[1] = (Random number between 1.00 and 2.00)
If Choice[1] Equal to 1.00) then do (Unit - Order (Entering Unit) to Attack-Move to (Center of Neutral 2 <gen>)) else do (Unit - Order (Entering Unit) to Attack-Move to (Center of Neutral 3 <gen>))

And at region Neutral 2 there is the same trigger but only with choice[2] and at neutral 3 the same with only choice[3]

And the problem is that the unit dont go ... he stand at the first position and do nothing.

Ahh the start position isn't in the region so i made a trigger where he first have to go into neutral 1.

Edited because: Ahh i think i found the problem. the random number is a real number and can also be 1.2 or 1.7 so i have to take a integer variable there are only full numbers like 1 and 2 ;) ... maybe it works now *hope* :D .
08-20-2002, 04:19 PM#2
Poison_Snake
Ahh good .. it works ;) ... sry for posting :D