• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Help me to edit CodeGen 1.0.2 can save&load hero's modified stats

Status
Not open for further replies.
Level 3
Joined
Apr 8, 2016
Messages
58
hey guys, i need help for edit this save/load system http://www.hiveworkshop.com/threads/codegen-1-0-2.177395/ to able save/load hero's modified stats

case:

hero stats:
str+5
agi+5
int+5

then i buy Tome of Strength+1, so my hero stats now
str+6
agi+5
int+5

then i save my hero and load it again..
my hero's stats when i load it:
str+5
agi+5
int+5


can someone help me to edit that save/load system to able save and load hero's modified stats??
sorry for my bad english & thankyou!!
 
Level 3
Joined
Apr 8, 2016
Messages
58
wooaaaa, thx burhhh!!
but,
if i want to save all stat(str, agi, int) the trigger will be like this?? (sorry im noob for trigger)
  • -------- Save heroes stats --------
  • Set SaveCount = (SaveCount + 1)
  • Set Save[SaveCount] = (Strength of Hero (Exclude bonuses))
  • Set SaveCount = (SaveCount + 1)
  • Set Save[SaveCount] = (Agility of Hero (Exclude bonuses))
  • Set SaveCount = (SaveCount + 1)
  • Set Save[SaveCount] = (Intelligence of Hero (Exclude bonuses))
  • -------- -------------------- --------
  • -------- Load heroes stats --------
  • -------- -------------------- --------
  • Set LoadCount = (LoadCount + 1)
  • Hero - Modify Strength of Hero: Set to Load[LoadCount]
  • Set LoadCount = (LoadCount + 1)
  • Hero - Modify Agility of Hero: Set to Load[LoadCount]
  • Set LoadCount = (LoadCount + 1)
  • Hero - Modify Intelligence of Hero: Set to Load[LoadCount]
edit:
and one again.. how to make player can -load when they didn't have hero?? and if they already have hero, they can't -load
 
Last edited:
Status
Not open for further replies.
Top