• 🏆 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!

Save/Load code help.

Status
Not open for further replies.
Level 2
Joined
Feb 23, 2006
Messages
11
I am currently using Emergenzys Save/Load code system. His system supports 12 heroes, but he said you can increase the number of heroes. So I did this:
Set_SaveHero[13]= blahblah(heroname)
And I set up all 3 random codes for the hero code generator under where it says
Set_CodeHeroCode01[13]=afb
Set_CodeHeroCode02[13]=nbs
Set_CodeHeroCode03[13]=dfs

When I tested this in game, it doesnt show up as an invalid code, but it doesn't load the hero either.
Do I have to edit any triggers in the main Save trigger or main load trigger to allow it to load my hero?
 
Level 11
Joined
Jul 2, 2004
Messages
471
Remember to do this:
untitled12et.gif
 
Level 2
Joined
Feb 23, 2006
Messages
11
-=Emergenzy=- said:
It's nice to see people use my system.

Remember also to do this or it wont check your hero type.

Thanks man, also do you know a trigger I can use so that people cannot load multiple times? Like when I load my character I can keep loading it an infinate ammount of times :oops:
 
Level 11
Joined
Jul 2, 2004
Messages
471
New Variable

Load_OnlyOneTime Boolean Array

Add this trigger to the start of the load trigger:

If (All Conditions are True) then do (Then

Actions) else do (Else Actions)
If - Conditions
Load_OnlyOneTime[(Player number of (Triggering player))] Equal to True
Then - Actions
Skip remaining actions
Else - Actions


And add this trigger at the end of the load trigger:

Set Load_OnlyOneTime[(Player number of (Triggering player))] = True



This should do it. I have not tested it, but i should work. Good luck.
 
Status
Not open for further replies.
Top