Easy trigger way to make an attribute system

BoterhaM

New Member
Reaction score
2
Hi folks. I want to have an attribute system for my new map. I know there are several ways to do so:

Currently I have: once a hero gains a level, you gain 3 "pickers" that can move to 3 beacons (STR/AGI/INT), but that's really lame, and.. ugly.

Is there a nice and easy way (trigger based, i dont have jASS exp) to allow a hero to use 3 skill points in STR/AGI/INT each level?

thanks in advance
 

Exide

I am amazingly focused right now!
Reaction score
448
Dialogs, maybe?
-I, personally, hate dialgos, though. :p
 

hasslarn

New Member
Reaction score
20
you could do like this

Create 3 new abillitys
Change the name of them to
Intelligence
Strength
Agillity

then trigger them like this

Code:
Int
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Intelligence 
    Actions
        Hero - Modify Intelligence of (Learning Hero): Add ((Intelligence of (Leveling Hero) (Include bonuses)) + 3)
        Unit - Remove Intelligence  from (Learning Hero)

Code:
agy
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Agillity 
    Actions
        Hero - Modify Agility of (Learning Hero): Add ((Agility of (Leveling Hero) (Include bonuses)) + 3)
        Unit - Remove Agillity  from (Learning Hero)

Code:
str
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Strength 
    Actions
        Hero - Modify Strength of (Learning Hero): Add ((Strength of (Leveling Hero) (Include bonuses)) + 3)
        Unit - Remove Strength  from (Learning Hero)


This will allow you to choose a abillity that adds +3 to one of your stats then it will remove it and you will be able to choose the same abillity agian!
 

Samael88

Evil always finds a way
Reaction score
181
You can easelly have it done with some kind of item system.
You have a dummy ability wich when it is clicked you store all item's in some place and adds a few items to the player. one for each stat to add Strenght, agility and intelligence, one item that is for exit that interface and one that shows how many points the player has left.

This does not require JASS at all, is not that hard to trigger, can give some headakes tho. And it look way better than a dialog that pops up in the middle of the screen every time you level:thup:
 

BoterhaM

New Member
Reaction score
2
you could do like this

Create 3 new abillitys
Change the name of them to
Intelligence
Strength
Agillity

then trigger them like this

Code:
Int
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Intelligence 
    Actions
        Hero - Modify Intelligence of (Learning Hero): Add ((Intelligence of (Leveling Hero) (Include bonuses)) + 3)
        Unit - Remove Intelligence  from (Learning Hero)

Code:
agy
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Agillity 
    Actions
        Hero - Modify Agility of (Learning Hero): Add ((Agility of (Leveling Hero) (Include bonuses)) + 3)
        Unit - Remove Agillity  from (Learning Hero)

Code:
str
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Strength 
    Actions
        Hero - Modify Strength of (Learning Hero): Add ((Strength of (Leveling Hero) (Include bonuses)) + 3)
        Unit - Remove Strength  from (Learning Hero)


This will allow you to choose a abillity that adds +3 to one of your stats then it will remove it and you will be able to choose the same abillity agian!

This would require 3 abilities in your hero abilities list (which has a max of 5)...
 

BoterhaM

New Member
Reaction score
2
You can easelly have it done with some kind of item system.
You have a dummy ability wich when it is clicked you store all item's in some place and adds a few items to the player. one for each stat to add Strenght, agility and intelligence, one item that is for exit that interface and one that shows how many points the player has left.

This does not require JASS at all, is not that hard to trigger, can give some headakes tho. And it look way better than a dialog that pops up in the middle of the screen every time you level:thup:

Could you show me then :p?
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Something like this:
Known bug; dont use the spell berserk twice, or do and watch...Just set a boolean value to true/false, and if berserk is being casts switch it, when a scroll of something is used, set it back.
IMO: you shouldnt use an ability for this, put use the event "player clicks Escape button"...
Player - Player 1 (Red) skips a cinematic sequence
Code:
Player - Player 1 (Red) skips a cinematic sequence
 

Attachments

  • itemtype.w3x
    19.1 KB · Views: 90

FireBladesX

Eating my wings!
Reaction score
123
If you use tomes, you need zero triggers...
Just make sure that you make a custom "select hero" ability, and give it 9999999 range.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top