• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Saving Abilities?

Status
Not open for further replies.
Level 7
Joined
Jul 20, 2009
Messages
295
Is there a way to save abilities that a unit has (Instead of Items) and when loading, it gives items according to the abilities the unit has, (does not load the abilities).
Also, I'd like someone to create this for me, if it is possible, pm me.
 
Level 7
Joined
Jul 20, 2009
Messages
295
Umm, let me explain more, ok, so my map is like an RPG where you save and load ur hero, in most/all RPGs, it's an Item that gets saved and then loaded, but mine saves as an Ability then loads as items, I made abilities that looks the same as the items, I do not know how to make save/load codes and dunno if abilities can be saved.
 
Abilities are basically integers for war3 engine. Look what Pharaoh_ have said andv refer to it.
Since blizzard never ended editor fully Save Ability handle crushes your warcraft3.

Although you can use integers to get given ID and then save it.
There are two ways:
First one - get id of ability by using:
  • Custom script: Set udg_Getid = udg_ability
and then save this like a normal integer. ability means ability variable, Getid means integer variable.
Second way, is to just get Id (rawcode) of given ability from object editor (Ctrl + D). Enter id between ' ' and follow instructions like you'd be saving normal integer.
 
Status
Not open for further replies.
Top