HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need help with a trigger.

02-01-2003, 06:16 PM#1
Guest
My trigger is attached. I want it so that when a footman is issued to move to a riderless horse they become a knight. You might understand what I'm saying. I figured that that would be the right trigger. Am I doing something wrong? (it isn't working so I probably am.) WHAT DO I DO?! :abomHUH?:

Actually I can't attach anything over 1 byte (anything). So here is the code:

Events:
Unit- A unit owned by player 1 (red) issues an order targeting an object

Conditions:

(triggering unit) Equal to *random unit from(units of type Footman))
(Target unit of issued order) Equal to (Random unit from (Units of type Riderless Horse))

Events:

Unit-Create 1 Knight for Player 1 (Red) at (Position of (Triggering unit) facing 0.00 degrees
Unit-Remove (Triggereing unit) from the game
Unit-Remove (Target unit of issued order) from the game

that is the trigger. What should it be?
02-01-2003, 07:10 PM#2
Guest
Quote:
Unit- A unit owned by player 1 (red) issues an order targeting an object


thats your first mistake.. should be targeting a unit.

Quote:
(triggering unit) Equal to *random unit from(units of type Footman))
(Target unit of issued order) Equal to (Random unit from (Units of type Riderless Horse))


mistake number two... dont use random unit, use: equal to (units of type footman.

that should work
02-01-2003, 11:01 PM#3
Guest
Yes... what you said was impossible, but I figured it out myself. (there is no all units and it has to be target object.)
02-02-2003, 07:10 PM#4
Milkman
LOL at sumudude!!
02-02-2003, 07:19 PM#5
FyreDaug
Milkman: whats so funny?