how can i make an ability create resources

Status
Not open for further replies.
A instant cast which can be autocast. An example is the protective field of senteries which activates immediatly.

Yeah, that.
If you want one ability to give resources based on energy used (and not using autocast) I think you'll need to use triggers.
Otherwise you can create say.. 10 abilities (one for each % of energy the unit has) and just enable them as the unit has more energy and disable them as the unit loses energy.
Make the more expensive one have a higher command card priority..

Though 10 abilities doesn't really sound practical.
Just some ideas =P
 
it needs to be 1 ability. the trigger editor is a lost cause though. it have much less power than the warcraft 3 trigger editor though the data editor might be more advanced than the object editor. i want the ability to give the using player resources based on energy spent and activate after energy reach 10.
 
I'm still uncertain what you're looking for exactly. You have to give more details as to how you want the ability to function, it has an impact on the advice you're going to get.

Either way, I threw together this example map that has a Give Minerals ability. It gives a varying amount of minerals depending on the mana of the caster and charges the respective amount of energy.

10 Mana -> 10 Minerals
20 Mana -> 25 Minerals
30 Mana -> 45 Minerals
40 Mana -> 70 Minerals
50 Mana -> 100 Minerals

Hope this helps you.
 

Attachments

Status
Not open for further replies.
Back
Top