I am trying to create a game that has levelable hero attributes. Here is a list of what I am trying to do:
Create Agility, Intelligence, Strength button (know how to do this)
When hero gains a level, it gains an attribute point to spend (know how to create hero levels through veterency but don't know how once the hero gains a level to allow him to gain 1 attribute point to spend)
When an attribute point is spend on the Agility, Intelligence, Strength button, I want that attribute to increase something specific (ex: When agility button is clicked, I want it to increase agility. That will then cause the hero's attack speed and movement speed to increase by a specific amount that I set.)
I want to be able to upgrade these 5 times (I am pretty sure I know how to do this through counts and what not)
Would someone please help me or send me to a tutorial that explains how to do this. I have tried looking for tutorial and guilds but no luck.
How about this.....have three upgrades that apply to the hero. The agility upgrade increases unit movement speed (Add 1). The Intelligence upgrade increases Energy max and regen rate. The strength upgrade increases weapon damage and unit health. Would that work?
You can rename the custom resource to be attribute points if that's what you'r looking for.
I get what you mean by trying to do this way. But is there anyway that you could possible go into more detail. I am having a hard time putting your words into actions. Could you please help me I would really appreciate it.
Okay so in the upgrades tab, create three seperate upgrades......you can literally call them strength, intelligence and agility.
For each upgrade, click the add value button, select "Unit" value type ("weapon" for strength), then set what you want to modify. Example: Intelligence would be Unit -> (unit name here) -> Add (not set) -> energy maximum -> #.
Now you will 3 buttons....agility, strength and intelligence.
Then create a "research" type ability. In that ability set up research for those 3 upgrades and set a cost.
Back at your hero (or wherever you are setting these attributes) add those three buttons and the ability. You can connect them.
I would say look at the Undead Assault 3 map for some guidance. The author made some amazing stuff in it and he has made it public and wants people to learn from it. Good Luck!!
I pretty much don't understand how to do your method Tosswarrior. I don't understand how to create the upgrade for strength or other attributes. I don't want to create a weapon, I want the attribute to modify the unit. Also I was the cost to be gaining one level. If you could explain to me how to do this that would be great.
Make 3 Behavior - Attribute named what you want to name them (Strength, Agility, Intelligence)
Go to each behavior and set their Modifications field to something you want them to do to the unit. Ex. for agility if u want 1% atk speed bonus per point you put 1.01 in the attack speed multiplier. (you have to do some searching for the fields). Set each maximum stacks to 5.
Go to the Modifications field and set each of them to add 1 of their corresponding attribute. (you have to do some searching for the field). Then set each one's Maximum Stacks to 5.
Set each Effect's Behavior field to its corresponding Behavior - Buff, be sure its the Apply and not the actual Attribute. Make sure the target of the effect is caster.
Make 3 Buttons (Upgrade Strength, Upgrade Agility, Upgrade Intelligence)
Set their Tooltip and Icon fields to things you want.
Go to their Commands field and add their corresponding buttons, then go to their Effect field and add their corresponding Effect - Apply Behavior.
Final Step is to go to each Unit that needs these fields and add the attributes to their Behaviors field then add the Ability - Instant to their Abilities field then add the Button in their Command Card field.
If I missed anything do this first then I can help you implement the things I missed but I cant help you if you don't do it like this.
So I have pretty much done everything that you have asked but I got a little confused/stuck. I got confused on this part "Go to their Commands field and add their corresponding buttons, then go to their Effect field and add their corresponding Effect - Apply Behavior." Do you mean go to the units command field or the attribute or the buff? Also I am not sure how to do the later part of adding in the effects int he "Effect" section. When I try it only give me options for Birth, Death, Create, and Revive, and in those sub-sections I can only put one effect. Could you help me? By the way thank you very much I really appreciate it.
To put the corresponding button for the ability you have to go to the field Ability: Commands in the abilities and click Execute then set the Default Button Field in there to its corresponding button (From the 3 Buttons we made).
To add the corresponding Effect you have to go to the field Effect: Effect in the abilities and set it to the proper effect that we made earlier (The Effect - Apply Behavior)
Only the Final Step paragraph deals with the Unit itself.
Ok thank you very much. I did as you asked now could you help me with a couple of other things?
I want to make it so that every time a hero gains a level he has the options to spend an attribute point on one of the three skills that I have created. Can you help me out on doing this?
Also is there a way to prevent the buff from showing up on on the hero? And is there a way to show the buff and how it is effecting the unit? ( say if strength is increase, it will show that +50 damage next to the units damage?
Hello,
I am trying to create a game that has levelable hero attributes. Here is a list of what I am trying to do:
Would someone please help me or send me to a tutorial that explains how to do this. I have tried looking for tutorial and guilds but no luck.
Please some help me
How about this.....have three upgrades that apply to the hero. The agility upgrade increases unit movement speed (Add 1). The Intelligence upgrade increases Energy max and regen rate. The strength upgrade increases weapon damage and unit health. Would that work?
You can rename the custom resource to be attribute points if that's what you'r looking for.
I get what you mean by trying to do this way. But is there anyway that you could possible go into more detail. I am having a hard time putting your words into actions. Could you please help me I would really appreciate it.
Okay so in the upgrades tab, create three seperate upgrades......you can literally call them strength, intelligence and agility.
For each upgrade, click the add value button, select "Unit" value type ("weapon" for strength), then set what you want to modify. Example: Intelligence would be Unit -> (unit name here) -> Add (not set) -> energy maximum -> #.
Now you will 3 buttons....agility, strength and intelligence.
Then create a "research" type ability. In that ability set up research for those 3 upgrades and set a cost.
Back at your hero (or wherever you are setting these attributes) add those three buttons and the ability. You can connect them.
Just let me know where you are getting lost.
I would say look at the Undead Assault 3 map for some guidance. The author made some amazing stuff in it and he has made it public and wants people to learn from it. Good Luck!!
I pretty much don't understand how to do your method Tosswarrior. I don't understand how to create the upgrade for strength or other attributes. I don't want to create a weapon, I want the attribute to modify the unit. Also I was the cost to be gaining one level. If you could explain to me how to do this that would be great.
Here:
Make 3 Behavior - Attribute named what you want to name them (Strength, Agility, Intelligence)
Go to each behavior and set their Modifications field to something you want them to do to the unit. Ex. for agility if u want 1% atk speed bonus per point you put 1.01 in the attack speed multiplier. (you have to do some searching for the fields). Set each maximum stacks to 5.
Make 3 Behavior - Buff (Apply Strength, Apply Agility, Apply Intelligence)
Go to the Modifications field and set each of them to add 1 of their corresponding attribute. (you have to do some searching for the field). Then set each one's Maximum Stacks to 5.
Make 3 Effect - Apply Behavior (Upgrade Strength (Apply Behavior), Upgrade Agility (Apply Behavior), .....)
Set each Effect's Behavior field to its corresponding Behavior - Buff, be sure its the Apply and not the actual Attribute. Make sure the target of the effect is caster.
Make 3 Buttons (Upgrade Strength, Upgrade Agility, Upgrade Intelligence)
Set their Tooltip and Icon fields to things you want.
Make 3 Ability - Instant (Upgrade Strength, Upgrade Agility, Upgrade Intelligence)
Go to their Commands field and add their corresponding buttons, then go to their Effect field and add their corresponding Effect - Apply Behavior.
Final Step is to go to each Unit that needs these fields and add the attributes to their Behaviors field then add the Ability - Instant to their Abilities field then add the Button in their Command Card field.
If I missed anything do this first then I can help you implement the things I missed but I cant help you if you don't do it like this.
Just check out my choosable attribute system demo map.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
So I have pretty much done everything that you have asked but I got a little confused/stuck. I got confused on this part "Go to their Commands field and add their corresponding buttons, then go to their Effect field and add their corresponding Effect - Apply Behavior." Do you mean go to the units command field or the attribute or the buff? Also I am not sure how to do the later part of adding in the effects int he "Effect" section. When I try it only give me options for Birth, Death, Create, and Revive, and in those sub-sections I can only put one effect. Could you help me? By the way thank you very much I really appreciate it.
Go to the 3 Ability - Instant you made.
To put the corresponding button for the ability you have to go to the field Ability: Commands in the abilities and click Execute then set the Default Button Field in there to its corresponding button (From the 3 Buttons we made).
To add the corresponding Effect you have to go to the field Effect: Effect in the abilities and set it to the proper effect that we made earlier (The Effect - Apply Behavior)
Only the Final Step paragraph deals with the Unit itself.
Ok thank you very much. I did as you asked now could you help me with a couple of other things?
I want to make it so that every time a hero gains a level he has the options to spend an attribute point on one of the three skills that I have created. Can you help me out on doing this?
Also is there a way to prevent the buff from showing up on on the hero? And is there a way to show the buff and how it is effecting the unit? ( say if strength is increase, it will show that +50 damage next to the units damage?
Also is there a way to show how many buffs they have used on the hero? Like if they have upgraded strength twice it will show next to Strength 2.