• 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.

Ability variable troubles

Status
Not open for further replies.
Level 3
Joined
Sep 17, 2009
Messages
25
Hi Im doing a map similer to the Warchasers map.
One of the hero's you can select from is a Druid.
There are 4 hero's that it can shapeshift into:
- Bear
- Boomkin
- Wolf (Couldnt find a cat model)
- Tree
Now the transformin into hero's thing works, exept when he shapshifts back, all the spells that the previous hero new are gone
Now this hero is NOTHING like the Monolith werewolf each hero has a seperate moveset and i have this working its just the saving of the heros abilities that dosent work

PS if somone tells me how to upload the map i can give you what iv got already but i havent done anything for the ability keeper coz i just cant even find the right variable setting.
 
Level 3
Joined
Sep 17, 2009
Messages
25
My trigger editor dosent have anytype of hashtable in events or actions
Also another question.
I have made a custom immolation move based of immolation.
I have andded extra special effects via triggeres but when I deactivate it, The special effects stay on-screen.
are there any events like "Unit deactivates ability"?
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
My trigger editor dosent have anytype of hashtable in events or actions

Update to 1.24b.


I have andded extra special effects via triggeres but when I deactivate it, The special effects stay on-screen.
are there any events like "Unit deactivates ability"?

  • Untitled Trigger 001
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(unimmolation))
    • Actions
 
Level 3
Joined
Sep 17, 2009
Messages
25
Umm iv got a problem with my hashtable,
When i click "ability" in the "Save ability Handle" Worldeditor crashes on me.
also I will post my map and can somone do it for one of the transformations (or more) so i can see how to do it becouse i can't find how to store every ability to 1 hero for multiple heros.

Link:
http://www.hiveworkshop.com/forums/pastebin.php?id=zbt9n4

Thanx in advance
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
That crash is a known bug as far as I know. You don't necessarily have to save the ability at all, only the level.

However if you need the ability, you could create an ability array at map initialization that lists all abilities. Like:

Set Ability_Array[0] = ability_1
Set Ability_Array[1] = ability_2
etc.

Then just save integers in the hashtable, and based on that integer, give the unit the corresponding ability.
 
Level 3
Joined
Sep 17, 2009
Messages
25
Umm i tried doing that but i cant seem to get it or how to do it,
Could you post an example please?
 
Level 3
Joined
Sep 17, 2009
Messages
25
Thanx alot =D
That was driving me nuts

EDIT
Could you just give me a quick rundown on how it works or how to change it if i change the forms
Thats if you've got time
Also iv set the all the info for the other forms and set the moves and such but no matter what one i choose to change into they all turn into the first one that i transformed into. But if i start at lvl 15 and have all tranformations it automaticaly assigns the tranformation to the bear
 
Last edited:
Level 3
Joined
Sep 17, 2009
Messages
25
okay just one last question
would i need an intiger array for each hero
and for each spell 1 spot in that posific array?
 
Status
Not open for further replies.
Top