- Joined
- Nov 6, 2019
- Messages
- 7
Hello, I'm putting the project back on track and I wanted to know if it's possible to make a hero gain experience by delivering gold and wood
Isn't Harvest issued when you order the unit to target the Gold Mine/Tree? I was under the impression it was not on delivery.You can detect the Units Order, if it is harvest you can give them exp.
I think if you order them to harvest the order "smart" is being used. But you need to check around with the orders yourself. But maybe something like this could work:Isn't Harvest issued when you order the unit to target the Gold Mine/Tree? I was under the impression it was not on delivery.
I just tested it and you're correct.I think if you order them to harvest the order "smart" is being used. But you need to check around with the orders yourself. But maybe something like this could work:
- Gain XP
- Events
- Unit - A unit Is issued an order targeting an object
- Conditions
- ((Triggering unit) is A Hero) Equal to True
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Issued order) Equal to (Order(harvest))
- Then - Actions
- Hero - Add 50 experience to (Triggering unit), Hide level-up graphics
- Else - Actions