Is it possible to make a Building for my Worker to build and when Built it Gradually gives exp to nearby hero's?? Like the exp Pool in Vamprism but my guess is that a region was used for that...
Is it possible to make a Building for my Worker to build and when Built it Gradually gives exp to nearby hero's?? Like the exp Pool in Vamprism but my guess is that a region was used for that...
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Farm
Actions
Unit Group - Pick every unit in (Units within 500.00 of (Position of (Constructed structure))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
Then - Actions
Hero - Add 1000 experience to (Picked unit), Show level-up graphics
Else - Actions
Giving the Exp gradually over time isnt easy.
At least not if you use the human way of construction since you really cannot check whether the building is currently being constructed or if the construction halted.
If it is build by a peon, wisp or by itself (undead) it should be rather easy.
Upon the start of construction you can save it into a unit group, together with all other buildings of its kind, and periodically pick all buildings in this group, increasea certain counter (hashtable, custom value, etc) to track the building process, and then give out experience to units around it in a similar (but hopefully not memory leaking) way like the example above.
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory
I will be AFK for a couple of days you guys hold down the fort while I am gone. I will be checking in on my phone but that will severly limit me. Be back saturday!
I just got to watch the video because even though I was there I was trying to work out tech problems with the chat since I was the social media guy so I was distracted but check it out guys the video is super fucking great!