Warcraft III resources & community, 2003–2006 · archived

Save/Load code help.

5 posts
#1

Save/Load code help.

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?
#4
-=Emergenzy=-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:
#5
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.