• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Attribute gained Abilities & save/load system problem

Status
Not open for further replies.
Level 1
Joined
Oct 13, 2009
Messages
5
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.

  • 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
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!:cry:

Edit: Found a solution, I just had to put in a dialog after the load that when clicked (only 1 button :p) added the right skills/uppgrades. :thumbs_up:
 
Last edited:
Status
Not open for further replies.
Top