Whisp_Rush
Active Member
- Reaction score
- 0
Hi!
I'd like to do the following: If a building has X item (I added the inventory ability to the building, so it can have items) than train Y unit...
I wanted to do it like this:
this is not good, because the event is a Unit begins training a unit... so the trigger starts when the building is already training the unit, so the trigger can't spot it... and I didn't find anything wich could interrupt a unit training.... so please help me if u can
thx
I'd like to do the following: If a building has X item (I added the inventory ability to the building, so it can have items) than train Y unit...
I wanted to do it like this:
Trigger:
- pig make Red
- Events
- Unit - A unit Begins training a unit
- Conditions
- (Unit-type of (Trained unit)) Equal to Young Pig
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Triggering unit) has an item of type Wheat Seeds) Not equal to True
- Then - Actions
- Unit - Order (Triggering unit) to Stop
- Game - Display to Player Group - Player 1 (Red) the text: You need Wheat Seed...
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
this is not good, because the event is a Unit begins training a unit... so the trigger starts when the building is already training the unit, so the trigger can't spot it... and I didn't find anything wich could interrupt a unit training.... so please help me if u can
thx