so basically right now with the data Editor you can only give a minimum of 1 point per Level, but that's to much,
how would I go about with triggers to add +1 point every 5 levels to my Hero's Level Behavior?
so that way he can only learn a new spell every 5 levels.
I have had to do this in my game... Only a point with 2 level, you cannot make a learn give a point every several levels but there is a workaround that i came up with... There are a few parts to it...
First make an upgrade Call it somthing like "Learn Available", then make a requirement that requires the player to have the "Learn Available" upgrade...
Go to your learn ability, and set the initial points to like 5000, and the points per level to 0, then go to each index for abilities in the learn ability and set the requirement on them to "Learn Available"
Go to the command card on your hero, and whatever button you have for the learn submenu, take off the "Learn Ability" and set it to none, this way the number of points you have wont show on the learn button in game, but other than that it will work the same
Next you have to make triggers to manually research and unresearch "Learn Available" for each player, just do somthing like increment a variable for a player when a hero levels up and his level is evenly divisable by 5, and decrement the variable when your hero uses a learn ability, whenever you change the variable check to see if it is = to 0, if it is =0 unresearch the "Learn Availabe" for that player, and if not research it... Also, it adds a nice effect if,when you research learn available for the player, turn the ability hilight for your learn ability on, and turn it off when it is not researched... that way ur learn button will flash when you have available points...
Hope that Helps!
hey thanks allot :P you wouldn't happen to have a demo map would you?
im pretty bad with triggers , if not ill try hard , hehe
Ummm atm it is only implemented in my main project... however, it shouldent be hard for me to make a tutorial for it... and upload a demo map there... Ill do it tomorrow, its late now, im going to sleep lol
too bad we cant just put .2 in the points per level place :P
Well I threw it up on the editor suggestions thread to be able to add points in decimal form :D
my maps will always be Free. and Available to the public at the earliest possible date.
If you need a tester feel free to ask IShadowWolf.258
You can also catch me on the IRC most times.
I just implemented a level functionality to my leveling library (see signature).
All you'd need to do is validate that the level is a factor of 5 and that this "point" has not been given already.
If you need help, feel free to PM me. :)
My Addition to All Those Leveling Assets Out There.
My Website which contains a list of notable SCII Maps and FtP games and my Journal.
You must login to post a comment. Don't have an account? Register to get one!