• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need Hero Ability Help

Status
Not open for further replies.
Level 7
Joined
Dec 4, 2009
Messages
175
What ability do you use to give your hero a +1 Str ability? You know, you get a level up and have the choice of +1 Str, Agi, or Int instead of abilities.

Like in Gaias Retaliation, You get a level up and you get to choose between the stat upgrades instead of powers.

And how do you make it so once you learn it, it doesn't show in your heroes controll box.

Thank you for helping.
 
Level 13
Joined
Mar 4, 2009
Messages
1,156
you can use normal hero stats upgrade but set
show button = false

or

you can make dummy skill and when it is learned than unlearn it and add + 1 str/agi/int to hero
it can be done with triggers
there is a hero action to modify stats

Edit:
you can go to tutorial section too
http://www.hiveworkshop.com/forums/tutorials/

you need to learn about:

Variables !
Array Variables !
Hash tables are also very good (they are 2d Arrays)
and so called Fake Multi-Array variables would be good too (1-12,13-24,25-36....)
to use from 1 to 12
1 x 12 - 11 <-----> 1 x 12
to use from 13 to 24
2 x 12 - 11 <-----> 2 x 12
to use from 25 to 36
3 x 12 - 11 <-----> 3 x 12
-for example if you need save that TriggeringPlayer likes SomePlayer xD
make Boolean Array Variable - Like[X]
set Like[((Number of Triggering Player x 12) - 11) + (Player Number of (SomePlayer))] = True


Use Pick Every Player/Unit/Item... and do actions
loop - do something about Picked Player/Unit/Item...


IF/THAN/ELSE actions are really needed
they are very good and with it you can make all triggers with same event in one trigger

For each integer A from X to X
loop - your actions


For each integer B from X to X
loop - your actions

(integer B actions are used if you need to put it in loop of integer A actions)

sub strings X,X are good for command triggers (and array-string variables are good for it too,if you want player color detect or something like that)
(you should also have all command triggers in one trigger,and only event player types "-" as a sub string
than you check what is the rest of it (for example)
sub string(entered cheat string) 2,6 Equal to "kick " (6 because of space)

Removing Memory Leaks (i think you don't really need to remove player group leaks,i never did and nothing happens,maybe after 1.000.000 times -.-)

it is good to know for Events - Unit issued targeting an object/point/no target

but to stop TriggeringUnit on that events you need to do this:
(i think it is best combination for it)

-turn off this trigger
-pause TriggeringUnit
-unpause TriggeringUnit
-order TriggeringUnit to stop
-turn on this trigger


and some more :D
 
Last edited:
Level 19
Joined
Apr 10, 2010
Messages
2,789
Check the abilities, there are spells there for items called "Item Hero Stat Bonus (+ 1 Strength)" for example. Just make change its name to what you want and tick the Stats - Hero Ability and uncheck the item ability. Or do this:

Create a dummy ability
then,
  • Events
    • A unit learns a skill
  • Conditions
    • (Ability being cast) Equal to Strength Bonus
  • Actions
    • Set Location = (Position of(Learning Hero))
    • Special Effect - Create a special effect at Location using animation
    • Hero - Modify Strength of Hero: Add 1
And how do you make it so once you learn it, it doesn't show in your heroes controll box.

What do you mean by that?
 
Last edited:
Level 13
Joined
Mar 4, 2009
Messages
1,156
the first icons you see when you select a unit,those abilities with that icons are in control box

so the event "unit begins casting an ability is bad"

you need event "hero learns a skill"
so if for example agility skill is learned than unlearn in but add +1 agility to triggering unit
 
Last edited:
Level 7
Joined
Dec 4, 2009
Messages
175
you can use normal hero stats upgrade but set
show button = false

or

you can make dummy skill and when it is learned than unlearn it and add + 1 str/agi/int to hero
it can be done with triggers
there is a hero action to modify stats

Hey Thx, this really helped me out.:thumbs_up:

+ Rep :xxd:

you can go to tutorial section
http://www.hiveworkshop.com/forums/tutorials/

you need to learn about:

Variables !
Array Variables !
Hash tables are also very good (they are 2d Arrays)
and so called Fake Multi-Array variables would be good too (1-12,13-24,25-36....)
to use from 1 to 12
1 x 12 - 11 <-----> 1 x 12
to use from 13 to 24
2 x 12 - 11 <-----> 2 x 12
to use from 25 to 36
3 x 12 - 11 <-----> 3 x 12
-for example if you need save that TriggeringPlayer likes SomePlayer xD
make Boolean Array Variable - Like[X]
set Like[((Number of Triggering Player x 12) - 11) + (Player Number of (SomePlayer))] = True


Use Pick Every Player/Unit/Item... and do actions
loop - do something about Picked Player/Unit/Item...


IF/THAN/ELSE actions are really needed
they are very good and with it you can make all triggers with same event in one trigger

For each integer A from X to X
loop - your actions


For each integer B from X to X
loop - your actions

(integer B actions are used if you need to put it in loop of integer A actions)

sub strings X,X are good for command triggers (and array-string variables are good for it too,if you want player color detect or something like that)
(you should also have all command triggers in one trigger,and only event player types "-" as a sub string
than you check what is the rest of it (for example)
sub string(entered cheat string) 2,6 Equal to "kick " (6 because of space)

Removing Memory Leaks (i think you don't really need to remove player group leaks,i never did and nothing happens,maybe after 1.000.000 times -.-)

it is good to know for Events - Unit issued targeting an object/point/no target

but to stop TriggeringUnit on that events you need to do this:
(i think it is best combination for it)

-turn off this trigger
-pause TriggeringUnit
-unpause TriggeringUnit
-order TriggeringUnit to stop
-turn on this trigger


and some more :D

just wanted you to know this xD

HOLY SHIT!!! :eekani: You really went the extra mile! Thanks...although I don't really see what this has to do with my question. :confused:

+ MEGA REP!!!! :xxd::xxd::xxd: ( if it was possible )


Check the abilities, there are spells there for items called "Item Hero Stat Bonus (+ 1 Strength)" for example. Just make change its name to what you want and tick the Stats - Hero Ability and uncheck the item ability. Or do this:

Create a dummy ability
then,

Events

A unit learns a skill

Conditions

(Ability being cast) Equal to Strength Bonus

Actions

Set Location = (Position of(Learning Hero))
Special Effect - Create a special effect at Location using animation
Hero - Modify Strength of Hero: Add 1

Thanks for the help, this also helped me.:grin:

+ rep:xxd:
 
Status
Not open for further replies.
Top