Im making a map where the Heroes gain uppgrades/buffs or abilities based on their stats,
for example 5 strength increases speed of the hero by 20, and 10 Strength gives an extra +25hp.
It works just fine, but my problem is with Save/Load.
I use Triggerhappys Code System, but I have no idea how I can make Loaded heroes
get special abilities/Uppgrades since it is based on the Dialog buttons :S
Help much regarded!
Edit: Found a solution, I just had to put in a dialog after the load that when clicked (only 1 button
) added the right skills/uppgrades. 
for example 5 strength increases speed of the hero by 20, and 10 Strength gives an extra +25hp.
-
Assault Button
-
Events
-
Dialog - A dialog button is clicked for HeroAttributeDialog
-
-
Conditions
-
(Clicked dialog button) Equal to AssaultButton
-
-
Actions
-
Hero - Modify Strength of MarineHero[(Player number of (Triggering player))]: Add 1
-
Set Assault[(Player number of (Triggering player))] = (Assault[(Player number of (Triggering player))] + 1.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Assault[(Player number of (Triggering player))] Greater than or equal to 5.00
-
-
Then - Actions
-
Player - Set the current research level of Assault (5) to 1 for (Triggering player)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Assault[(Player number of (Triggering player))] Greater than or equal to 10.00
-
-
Then - Actions
-
Player - Set the current research level of Assault (10) to 1 for (Triggering player)
-
-
Else - Actions
-
-
-
I use Triggerhappys Code System, but I have no idea how I can make Loaded heroes
get special abilities/Uppgrades since it is based on the Dialog buttons :S
Help much regarded!

Edit: Found a solution, I just had to put in a dialog after the load that when clicked (only 1 button

Last edited: