Save/Load Problem

bryanEX1993

New Member
Reaction score
0
Urgent! +Rep! This code is unable to be saved into 1.24b. I do not know why either. I think it has to do with the custom script section. Help please.

Save
Events
Player - Player 1 (Red) types a chat message containing -save as An exact match
Player - Player 2 (Blue) types a chat message containing -save as An exact match
Player - Player 3 (Teal) types a chat message containing -save as An exact match
Player - Player 4 (Purple) types a chat message containing -save as An exact match
Player - Player 5 (Yellow) types a chat message containing -save as An exact match
Player - Player 6 (Orange) types a chat message containing -save as An exact match
Player - Player 7 (Green) types a chat message containing -save as An exact match
Player - Player 8 (Pink) types a chat message containing -save as An exact match
Conditions
Actions
Set SaveCount = 0
Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
Loop - Actions
Set SaveCount = (SaveCount + 1)
Set TempUnit = (Picked unit)
Custom script: set udg_Save[udg_SaveCount] = SaveLoad_Unit2Integer( udg_TempUnit )
Set SaveCount = (SaveCount + 1)
Set Save[SaveCount] = (Hero level of (Picked unit))
Custom script: set udg_Code = SaveLoad_Encode()
Quest - Display to (Player group((Triggering player))) the Secret message: Your Code :
Game - Display to (Player group((Triggering player))) the text: Code


It keeps saying (Custom script: set udg_Save[udg_SaveCount] = SaveLoad_Unit2Integer( udg_TempUnit ) ) has error.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
OMFG !!!! Triple post within 20 mins !!!!

There's a "Bump-Rule" here on the forum (Please read the rules !!) which says that you can't double post within 24 hours...
AND YOU TRIPLE POSTED WITHIN 20 MINS !

Anyways, to your problem.
Where can the code be found which contains the function:
[ljass]SaveLoad_Unit2Integer[/ljass]

?

Have you imported any systems/snippets to you map ?
 

bryanEX1993

New Member
Reaction score
0
Sorry, but its reallllly urgent :(
Anyway, this system was copied off word for word from Acehart's /SaveLoad System. I am not sure where the SaveLoad_Unit2Integer went to because its not a variable in his map nor a unit.
 

DarkRevenant

Mad Scientist
Reaction score
13
In your code, SaveLoad_Unit2Integer is written like a function call. In other words, you didn't copy the entire code from the system, since the custom function in the map header (in trigger editor, click the map file on the top) should be defined, which it currently is not based on what you're saying.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top