|ALTERING STATS FOR NOOBS|
|~Created by Archange1|
The purpose of this tutorial is to show you how to add stats from a hero using a variety of methods.
This is different from the normal green text that you'll see next to a hero's stats.
This is a PERMANENT bonus.
Despite the title, I WILL be showing other methods of doing such things with simple ease.
I'll also be explaining how to remove stats and possibly re-add the stat points to the hero. OVERALL DIFFICULTY - EASY [/td][/tr]
|METHOD ONE - Adding Stats Using Hero Abilities||METHOD TWO - Adding Stats Using Dialog Buttons|
|~Method Difficulty - EASY||~Method Difficulty - EASY|
With this method, every time an ability is learned by the hero, their chosen stat will increase by X,
with X being a number of your choosing to increase the stats by.
To start, you'll want to create 3 dummy abilities based off of Attribute Bonus.
The base ability doesn't HAVE to be attribute bonus, simply one that can be 'hidden'.
Next, set the max level of each ability to the game's max hero level divided by 3.
If you don't set the max level high enough, some stat points may be lost.
To avoid this, have enough total available levels to exceed the maximum hero level.
Next you'll create a trigger similar to this, changing values as needed.
Now let me explain this a little bit.
This part is used for making sure the trigger isn't fired every time a unit gains an ability.
It saves on memory a little bit, but really isn't required.
This next part is used for ensuring it's choosing the correct stat.
That part IS required, so don't miss it.
After that, we go through the actualy setting of the stats, and the removal of the ability.
Now, obviously here, "Stat" is the stat that you want to increase.
It corresponds to the ability you used to trigger the increase.
If you want to be able to SUBTRACT stats from the hero, simply change "Add" to "Subtract" like the example below.
If you want to refund the Attribute Point back to the hero create the following action.
You'll need to associate this with a seperate ability, likely just a copy with a different name/description.
This method is STRICTLY an example, and can easily be improved upon.
It's used more to show you the things to consider when making your own system.
This system essentially does the same thing as method one,
without tying up the option to use hero abilities.
It creates a simple dialog with four buttons allowing you to gain stats a different way.
The downside to this is it requires more than one trigger to function.
To start, you should create a few variables that I've listed for you below.
After creating all the variables, you'll need to configure your dialog similar to this.
"Hero" is the unit you want to gain the stats.
You don't have to set it here, but keep in mind it will be used later.
Next you want to create the trigger that will show the dialog.
Again, this is a really simple version, and can easily be improved upon.
With this, when the trigger player presses ESC then the dialog will be shown.
It's really as simple as that, although you can put more into it.
Now, before we go into the dialog buttons, we'll need to create a counter.
The example below is an EXTREMELY basic counter but it works well enough.
Every time your hero gains a level, they'll get one more point to spend.
Next you'll want to create the handle for the buttons.
This will make the dialog buttons actually do something when they're clicked.
This will work, but I must express that this is only a BASIC model of the function.
|OTHER TUTORIALS & SYSTEMS|
|These are related, and may be of some use to those seeking out this sort of information.|