- Joined
- Apr 16, 2007
- Messages
- 262
Hey Guys
I'm making an advanced load and cargo hold system for all the siege weapons in my map. First off, I made it impossible for a siege unit to do anything without having three of the right units in it.
Second, I made a trigger that ejects all the units from the Siege weapon if you load the wrong type of unit in it (has to be an engineer)....
And lastly i made a trigger that prevents the siege weapon from attacking unless it has more than 1 mana (loses 1 mana per attack...)
Now the problem is, I gave my engineer units a special ability called "man siege weapon" so they can theoretically "steal" an empty siege weapon owned by another player. It can also be used to load the unit into one of your siege weapons.
When I cast this ability (based off channel with no effects) on one of my siege weapons, the caster goes to it and nothing happens. When I order one of my siege weapons to LOAD one of my Engineers, it tells me "cannot load target"...
I can only imagine that it cannot load the target because I made a trigger order the unit to "stop" every 0.01 secs of the game so it cannot move or carry out any orders....
I really need help with this, I'll rep anyone who can help me
There are several triggers for this, so It may take up some page space XD
Engineer "Steal" or "use" siege engine
Siege Weapon - Prevent Orders 3
Thank You very much and Sorry about the length of this post, its just soo many triggers....
Hellblazer-14
I'm making an advanced load and cargo hold system for all the siege weapons in my map. First off, I made it impossible for a siege unit to do anything without having three of the right units in it.
Second, I made a trigger that ejects all the units from the Siege weapon if you load the wrong type of unit in it (has to be an engineer)....
And lastly i made a trigger that prevents the siege weapon from attacking unless it has more than 1 mana (loses 1 mana per attack...)
Now the problem is, I gave my engineer units a special ability called "man siege weapon" so they can theoretically "steal" an empty siege weapon owned by another player. It can also be used to load the unit into one of your siege weapons.
When I cast this ability (based off channel with no effects) on one of my siege weapons, the caster goes to it and nothing happens. When I order one of my siege weapons to LOAD one of my Engineers, it tells me "cannot load target"...
I can only imagine that it cannot load the target because I made a trigger order the unit to "stop" every 0.01 secs of the game so it cannot move or carry out any orders....
I really need help with this, I'll rep anyone who can help me
There are several triggers for this, so It may take up some page space XD
Engineer "Steal" or "use" siege engine
-
Steal or man
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Man Siege Engine
- (Unit-type of (Triggering unit)) Equal to Engineer
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Target unit of ability being cast)) Equal to (Owner of (Triggering unit))
-
Then - Actions
- Unit - Order (Triggering unit) to Force Board (Target unit of ability being cast)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Target unit of ability being cast)) Not equal to (Owner of (Triggering unit))
- (Custom value of (Target unit of ability being cast)) Equal to 0
-
Then - Actions
- Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
- Unit - Order (Triggering unit) to Force Board (Target unit of ability being cast)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
prevent attack if not enough engineers CATAPULT
-
Events
- Unit - A unit Is issued an order targeting an object
-
Conditions
- (Unit-type of (Ordered unit)) Equal to Catapult
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Custom value of (Ordered unit)) Less than 3
- (Issued order) Not equal to (Order(load))
-
Then - Actions
- Unit Group - Add (Ordered unit) to unusable_siege_engines
- Player Group - Add (Owner of (Ordered unit)) to ranged_message[1]
- Player Group - Pick every player in ranged_message[1] and do (Game - Display to ranged_message[1] for 10.00 seconds the text: This Siege Engine n...)
- Player Group - Remove all players from ranged_message[1]
-
Else - Actions
- Unit Group - Remove (Ordered unit) from unusable_siege_engines
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
prevent move if not enough engineers CATAPULT Copy
-
Events
- Unit - A unit Is issued an order targeting a point
-
Conditions
- (Unit-type of (Ordered unit)) Equal to Catapult
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Custom value of (Ordered unit)) Less than 3
- (Issued order) Not equal to (Order(unload))
-
Then - Actions
- Unit Group - Add (Ordered unit) to unusable_siege_engines
- Player Group - Add (Owner of (Ordered unit)) to ranged_message[1]
- Player Group - Pick every player in ranged_message[1] and do (Game - Display to ranged_message[1] for 10.00 seconds the text: This Siege Engine n...)
- Player Group - Remove all players from ranged_message[1]
-
Else - Actions
- Unit Group - Remove (Ordered unit) from unusable_siege_engines
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Siege Weapon - Prevent Orders 3
-
prevent group move
-
Events
- Time - Every 0.01 seconds of game time
- Conditions
-
Actions
- Unit Group - Pick every unit in unusable_siege_engines and do (Unit - Order (Picked unit) to Stop)
-
Events
-
add to custom value
-
Events
- Unit - A unit Is loaded into a transport
-
Conditions
- (Unit-type of (Transporting unit)) Equal to Catapult
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Loading unit)) Equal to Engineer
-
Then - Actions
- Unit - Set the custom value of (Transporting unit) to ((Custom value of (Transporting unit)) + 1)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Loading unit)) Not equal to Engineer
-
Then - Actions
- Unit - Order (Transporting unit) to Unload All At (Position of (Transporting unit))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Thank You very much and Sorry about the length of this post, its just soo many triggers....
Hellblazer-14