Ragnar Rök
New Member
- Reaction score
- 0
Hi!
My builder has a spellbook with a "channel" based spell (different base order id). When he cast it he gets a new ability based on "Build Tiny Farm" with the proper building in it. (He never has two Build tiny abilitys at the same time.)
When he then casts the "build Tiny farm" a dummy unit is placed to setup the a variable for the buildpoint. (Confirmed to work)
This works for the building "Hovel"...
Trigger 1:
While this do not...
Trigger2:
Shouldn't Trigger 2 work equal to the first? (This would not require a lot of "if then else" and Im planning on having a lot of buildings.
My builder has a spellbook with a "channel" based spell (different base order id). When he cast it he gets a new ability based on "Build Tiny Farm" with the proper building in it. (He never has two Build tiny abilitys at the same time.)
When he then casts the "build Tiny farm" a dummy unit is placed to setup the a variable for the buildpoint. (Confirmed to work)
This works for the building "Hovel"...
Trigger 1:
Code:
If - Conditions
(Ability being cast) Equal to Construct Hovel
Then - Actions
Unit - Order U_Builder[(Player number of (Owner of (Triggering unit)))] to build a Construct Hovel at Build_Point[(Player number of (Owner of (Triggering unit)))]
While this do not...
Trigger2:
Code:
If - Conditions
(Substring((Name of (Ability being cast)), 1, 9)) Equal to Construct
Then - Actions
Unit - Order U_Builder[(Player number of (Owner of (Triggering unit)))] to build a (Unit-type((Name of (Ability being cast)))) at Build_Point[(Player number of (Owner of (Triggering unit)))]
Else - Actions
Shouldn't Trigger 2 work equal to the first? (This would not require a lot of "if then else" and Im planning on having a lot of buildings.