How to implement level system and spells??

Wargus is a Warcraft 2 mod that allows you to play Warcraft 2 with the Stratagus engine.
Post Reply
francot514
Posts: 87
Joined: Wed May 21, 2014 6:26 am

How to implement level system and spells??

Post by francot514 »

Hey, i just was testing Wyrmsun this days, and want to know if there is a way of script to allow heroes level progression in Wargus, based on this:

-Get kills to increase level
-Each level you gain spelll/skill
-Some spells will need level requierements
User avatar
cybermind
Posts: 110
Joined: Sat Dec 31, 2011 11:43 pm

Re: How to implement level system and spells??

Post by cybermind »

Doom Wars heroes have that. Their abilities (or spells) increase in strength for each level gained (Doomer's spheres will increase their duration and Belial's abilities gain additional strength)
To control level gain, use OnEachSecond and OnEachCycle Lua callbacks for units (use DW heroes as reference)
For level requirements on buttons use Allowed = "check-unit-variable" in DefineButton (used in DW too)
francot514
Posts: 87
Joined: Wed May 21, 2014 6:26 am

Re: How to implement level system and spells??

Post by francot514 »

Ok, i can check those files but im still lose, how to use custom variable and implement it into the "ui", also there is a level system in wargus, but is currently only controlled by the number of upgrades for each unit, and i cannot figure out in the code where to control that, which scripts??
Post Reply