• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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