• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Hashtable - Save Ability Handle is not working

Status
Not open for further replies.
Level 7
Joined
Jul 29, 2009
Messages
276
in GUI, when i try to make the action "Hashtable - Save Ability Handle" and i press the "ability" to put something there the editor crashes.
Is this a known issue? or is it just me? :O
i have the latest WE (the original one).
 
Level 6
Joined
Aug 22, 2008
Messages
123
Using this function on GUI seemingly really leads to an editor crush.
Instead of using that "save ability" you could use a string or integer value in order to save the rawcode of the ability. If that ability is supposed to be cast later on you can also save its command string in the cache.:wink:
 
Level 6
Joined
Aug 22, 2008
Messages
123
Ability rawcodes and vars of type "Ability" are simple Integer vars and therefore accepted as Integer in JASS. One example i did in GUI, using some custom scripts, udg_i being integer and udg_ability being "ability":
Code:
Rawcode
    Event
        Time - Elapsed game time is 5.00 seconds
    Condition
    Action
        Custom script:   set udg_i=udg_ability
        Game - Display to (All players) the text: (String(i))
        Custom script:   set udg_ability=udg_i
        Unit - Add ability to Sorceress 0001 <gen>

The command string of an ability can be found in the Object Editor and needs to be explicity stored.
 
Last edited:
Status
Not open for further replies.
Top