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: 88

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.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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