- Joined
- Mar 2, 2010
- Messages
- 3,069
i am working on inplementing the blood elves in warcraft 3. what i want is to make the units use mana to construct buildings.
I don't know how this is possible through the object editor but you can do it via triggers:
@Hell_Master
=)
dont forget to make this completely MUI otherwise it will bug up at times and not subtract mana from the unit when wanted. u should use indexing for this. hashtables should be ok if u really want to use them tho.
Erm...you can make them be summoned like undead buildings using mana by this way :
Use spellbook with no cooldown and inside put :
(for example) 8 spells that create a diffrent ward with summoned duration (the ward is our building being constructed timer, make it look like a construction in progress model). Each ward costs different mana as it is a different building.
Then use a simple trigger:
A unit dies
triggering unit equal to (ward type)
create unit - the actual building.
play sound - construction complete message for humans.
(Or even make it with no trigger - make each ward spawn a permanent unit uphon the ward's death - the unit being the building. base it off spawn hydra hatchlings)
So in total you need :
8 spells in a spellbook
8 wards for construction purposes - duration = construction time
8 buildings that spawn when each ward dies
8 triggers to spawn them (or no triggers if used spawn-spell)
That's a workaround that has its limitations but it is the easiest way.