I'm creating a whole bunch of custom abilities. Because I'm not using the command card at all but rather a completely custom UI, I cannot use the abilities functions and instead have to script everything from triggers. My question is, how do I efficiently insert my abilities into the map?
I.e. I need to give each ability its Name, Mana Cost, Icon, Recharge, Cooldown (yes they are different things), Tooltip, OnFinishCasting, etc. Hopefully a partial list is loaded when the game starts, i.e. Name, icon, description and then a longer list when a unit learns the ability i.e. OnFinishCasting, IsAnUltimate, Projectile since there are a lot of abilities which will undoubtedly strain the loading.
Back in warcraft 3 I used the gamecache to store all the attributes of the ability into the map. Then I could have functions like "GetManaCost(1001)" where 1001 is the identifier of the ability and I can easily reference it out. The gamecache is rather slow and bogs down once I get 100s of abilities but that used to be the neatest and cleanest solution I knew of.
What should I use this time? I'm looking at Records but I'm not sure. Essentially I wanna create a database inside my map.
Even without using the command card, you should be able to just create the abilities in the data editor and fire them from a trigger yes? Im not sure what exactly you're asking.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi,
I'm creating a whole bunch of custom abilities. Because I'm not using the command card at all but rather a completely custom UI, I cannot use the abilities functions and instead have to script everything from triggers. My question is, how do I efficiently insert my abilities into the map?
I.e. I need to give each ability its Name, Mana Cost, Icon, Recharge, Cooldown (yes they are different things), Tooltip, OnFinishCasting, etc. Hopefully a partial list is loaded when the game starts, i.e. Name, icon, description and then a longer list when a unit learns the ability i.e. OnFinishCasting, IsAnUltimate, Projectile since there are a lot of abilities which will undoubtedly strain the loading.
Back in warcraft 3 I used the gamecache to store all the attributes of the ability into the map. Then I could have functions like "GetManaCost(1001)" where 1001 is the identifier of the ability and I can easily reference it out. The gamecache is rather slow and bogs down once I get 100s of abilities but that used to be the neatest and cleanest solution I knew of.
What should I use this time? I'm looking at Records but I'm not sure. Essentially I wanna create a database inside my map.
Thanks!
@togrias: Go
Even without using the command card, you should be able to just create the abilities in the data editor and fire them from a trigger yes? Im not sure what exactly you're asking.