T
Twyddli
Guest
I have created a system that allows each player to increase their heroes Strength, Intelligence and Agility manually, so that they can choose what type of hero they want, a strong one a smart one, or a quick one.
Here is how it works.
When your hero levels, it will gain one skill point, and then it adds 3 more. You can use these 4 Skill points to level abilities or stats, I think if you level just abilities with these then when you get to level 10 you will still have many skill points left, that you can put into stats.
When you learn a skill it checks if you have 1 skill point or less, if so it disables the three stat abilities. making it so that you can only put up 3 stat levels per hero level.
I will put up some the triggers and what ever is Red can be changed.
There is one Unit Variable array in this map. Heroes[1-12] You change the array to how many players you have. You will have to set the variable in the game when you get your hero.
This trigger increases your agility when you increase the skill change the green 1 to any number, this is the amount of Agi your hero gets when it levels agility (agi +1) ability. Agility (Agi +1) is a custom ability, based on attribute point, i nulled all its effects though.
This trigger does the exct same as the first one, only for strength
Same as this one, but for Intelligence.
This one is how many attribute points you get when you level. Change the green 3 to what ever you want.
When you make your unit, and you want it to have these abilities, you have to put them in the hero abilities part of the object editor and then after .01 seconds has passed, it will disable them, until you level.
To test this map, while in the game, type -level and it will increase the level of the hero by 1.
There is only one problem i have found with this system... You can then only have 2 hero abilities.
I would love to hear your feedback, and ideas on how to improve it.
Good luck! Have fun!
Edit: I fixed something in the map, should be better now.
Here is how it works.
When your hero levels, it will gain one skill point, and then it adds 3 more. You can use these 4 Skill points to level abilities or stats, I think if you level just abilities with these then when you get to level 10 you will still have many skill points left, that you can put into stats.
When you learn a skill it checks if you have 1 skill point or less, if so it disables the three stat abilities. making it so that you can only put up 3 stat levels per hero level.
I will put up some the triggers and what ever is Red can be changed.
There is one Unit Variable array in this map. Heroes[1-12] You change the array to how many players you have. You will have to set the variable in the game when you get your hero.
This trigger increases your agility when you increase the skill change the green 1 to any number, this is the amount of Agi your hero gets when it levels agility (agi +1) ability. Agility (Agi +1) is a custom ability, based on attribute point, i nulled all its effects though.
Code:
Agi
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Agility (Agi +1)
Actions
Hero - Modify Agility of (Triggering unit): Add [COLOR="Red"]1[/COLOR]
Unit - Decrease level of Agility (Agi +1) for (Triggering unit)
Unit - Remove Agility (Agi +1) from (Triggering unit)
This trigger does the exct same as the first one, only for strength
Code:
Str
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Strength (Str +1)
Actions
Hero - Modify Strength of (Triggering unit): Add [COLOR="Red"]1[/COLOR]
Unit - Decrease level of Strength (Str +1) for (Triggering unit)
Unit - Remove Strength (Str +1) from (Triggering unit)
Same as this one, but for Intelligence.
Code:
Int
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Intelligence (Int +1)
Actions
Hero - Modify Intelligence of (Triggering unit): Add [COLOR="Red"]1[/COLOR]
Unit - Decrease level of Intelligence (Int +1) for (Triggering unit)
Unit - Remove Intelligence (Int +1) from (Triggering unit)
This one is how many attribute points you get when you level. Change the green 3 to what ever you want.
Code:
Hero Levels
Events
Unit - A unit Gains a level
Conditions
Actions
Hero - Modify unspent skill points of (Triggering unit): Add [COLOR="Red"]3[/COLOR] points
Player - Enable Agility (Agi +1) for (Owner of (Triggering unit))
Player - Enable Intelligence (Int +1) for (Owner of (Triggering unit))
Player - Enable Strength (Str +1) for (Owner of (Triggering unit))
When you make your unit, and you want it to have these abilities, you have to put them in the hero abilities part of the object editor and then after .01 seconds has passed, it will disable them, until you level.
To test this map, while in the game, type -level and it will increase the level of the hero by 1.
There is only one problem i have found with this system... You can then only have 2 hero abilities.
I would love to hear your feedback, and ideas on how to improve it.
Good luck! Have fun!
Edit: I fixed something in the map, should be better now.