- Joined
- Aug 20, 2009
- Messages
- 1,554
hello..
i will explain about the system
the hero selection system is like dota's selection system
where you pick your hero from a tavern
and there is a Hero Core, which contains the 2nd hero's ability
how can i trigger give ability of type XYZ according to the hero we pick to the Hero Core?
there is 4 diffrent ability inside hero core for each diffrent heroes, so...
i wanted to make it like
Event
Map Initialization
Action
Set HeroCore[1] = Hero Core 001 Gen
------------Setup Specific Hero Ability-----------------------
Set SpecAbility [PointValueofHeroPicked(which is 1 for this hero type)[1(Ability Type 1)]] = Shockwave
Set SpecAbility [PointValueofHeroPicked(which is 1 for this hero type)[2(Ability Type 2)]] = Storm Bolt
Set SpecAbility [PointValueofHeroPicked(which is 1 for this hero type)[3(Ability Type 3)]] = WarStomp
Set SpecAbility [PointValueofHeroPicked(which is 1 for this hero type)[4(Ability Type 4)]] = Blizzard
Then, i tried to give it to the unit after the hero was picked
and i came to this
Loop for Integer A from 1 to 4
Give "SpecAbility [Point Value of Sold Unit]" to Hero Core [Player Number(Owner of Buying Unit)]
and i can't seem to put another array in the Spec Ability Variable...
i wanted to make it so that it become like this
Loop for Integer A from 1 to 4
"SpecAbility [Point Value of Sold Unit[Integer A]] to Hero Core [Player Number(Owner of Buying Unit)]
i am aware of hashtable, but i can't understand how to use it,
since the Save - Ability Handle
trigger seems so weird, i am confused +__+
can anyone show me how to do do this?..
+REP for Helper, and usefull Replyer whos trying to help me properly.
i will explain about the system
the hero selection system is like dota's selection system
where you pick your hero from a tavern
and there is a Hero Core, which contains the 2nd hero's ability
how can i trigger give ability of type XYZ according to the hero we pick to the Hero Core?
there is 4 diffrent ability inside hero core for each diffrent heroes, so...
i wanted to make it like
Event
Map Initialization
Action
Set HeroCore[1] = Hero Core 001 Gen
------------Setup Specific Hero Ability-----------------------
Set SpecAbility [PointValueofHeroPicked(which is 1 for this hero type)[1(Ability Type 1)]] = Shockwave
Set SpecAbility [PointValueofHeroPicked(which is 1 for this hero type)[2(Ability Type 2)]] = Storm Bolt
Set SpecAbility [PointValueofHeroPicked(which is 1 for this hero type)[3(Ability Type 3)]] = WarStomp
Set SpecAbility [PointValueofHeroPicked(which is 1 for this hero type)[4(Ability Type 4)]] = Blizzard
Then, i tried to give it to the unit after the hero was picked
and i came to this
Loop for Integer A from 1 to 4
Give "SpecAbility [Point Value of Sold Unit]" to Hero Core [Player Number(Owner of Buying Unit)]
and i can't seem to put another array in the Spec Ability Variable...
i wanted to make it so that it become like this
Loop for Integer A from 1 to 4
"SpecAbility [Point Value of Sold Unit[Integer A]] to Hero Core [Player Number(Owner of Buying Unit)]
i am aware of hashtable, but i can't understand how to use it,
since the Save - Ability Handle
trigger seems so weird, i am confused +__+
can anyone show me how to do do this?..
+REP for Helper, and usefull Replyer whos trying to help me properly.
Last edited: