Randor244
Active Member
- Reaction score
- 34
I'm working on an ability, cast by a building, that will make your main hero able to build just like a peasant/peon/and so on...
I have run into trouble though. I have this trigger:
But as you understand I need sometihing to tell the hero WHAT to build as well. I can't give him anything from the beginning (in the OE as Techtree - structures built) because it has to depend on the player's race.
Any suggestions?
I have run into trouble though. I have this trigger:
Trigger:
- Craftmanship
- Events
- Unit - A unit Finishes casting an ability
- Conditions
- (Unit-type of (Triggering unit)) Equal to (==) Hero Academy
- (Ability being cast) Equal to (==) Craftmanship
- Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Race of Player 1 (Red)) Equal to (==) Human
- Then - Actions
- Unit - Add Build (Human) to hero1
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Race of Player 1 (Red)) Equal to (==) Orc
- Then - Actions
- Unit - Add Build (Orc) to hero1
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Race of Player 1 (Red)) Equal to (==) Undead
- Then - Actions
- Unit - Add Build (Undead) to hero1
- Else - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Race of Player 1 (Red)) Equal to (==) Night Elf
- Then - Actions
- Unit - Add Build (Night Elf) to hero1
- Else - Actions
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Unit - Remove Craftmanship from (Triggering unit)
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
But as you understand I need sometihing to tell the hero WHAT to build as well. I can't give him anything from the beginning (in the OE as Techtree - structures built) because it has to depend on the player's race.
Any suggestions?