Save items And Load the items

Jeroen

New Member
Reaction score
0
Save items And Load the items (Complete)

hi
any one kown how to build a save and load item GUI?
What must it do:
i pick up 1-6 items i type: -save
so save the items that my hero carried and set it in a integer...

then when i type: -load
Create a unit and give the saved items to last created unit

(for player blue to)

Build it
test it
host it
love it

thank you
 

GenDeath

New Member
Reaction score
6
Jeroen use the system by AceHart all you have to do is add the custom script block thats in the header.
Just take a look at http://www.thehelper.net/forums/showthread.php?t=49392 and follow the instructions its really easy only using GUI even though it has jass.
There aren't going to be any just GUI systems because that would be an insanely huge list of custom scripts is all.
AceHart's is very VERY VERY!!! easy to edit.
 

Jeroen

New Member
Reaction score
0
Jeroen use the system by AceHart all you have to do is add the custom script block thats in the header.
Just take a look at http://www.thehelper.net/forums/showthread.php?t=49392 and follow the instructions its really easy only using GUI even though it has jass.
There aren't going to be any just GUI systems because that would be an insanely huge list of custom scripts is all.
AceHart's is very VERY VERY!!! easy to edit.

if it is so very easy for you build it!
i have tryed can't get out of it
 

Jeroen

New Member
Reaction score
0
got something but does not work wel
if i wan't to save that go's good but if i wan't to load then i get only the last picked up itemS back for what i saved help??
Trigger:
  • Untitled Trigger 005
    • Events
      • Player - Player 1 (Red) types a chat message containing -test as An exact match
    • Conditions
    • Actions
      • Unit - Create 1 Paladin for Player 1 (Red) at (Center of Rect 004 <gen>) facing Default building facing degrees
      • Set Player01 = (Last created unit)

Trigger:
  • Save Items
    • Events
      • Player - Player 1 (Red) types a chat message containing -save as An exact match
    • Conditions
    • Actions
      • Set Item_Number = (Number of items carried by Player01)
      • For each (Integer A) from 1 to 6. do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) Else do (Else Actions)
            • If - Conditions
              • (item-type of (Item carried by Player01 in slot (Integer A))) Not equal to (Item-type of no item)
              • (Item carried by Player01 in slot (Integer A)) is owned) Equal to True
            • Then Actions
              • Set TempItem = (Item carried by Player01 in slot (Integer A))
            • Else Actions

Trigger:
  • Load items
    • Events
      • Player - Player 1 (Red) types a chat message containing -load as An exact match
    • Conditions
    • Actions
      • Unit - Remove Player01 form the game
      • Unit - Create 1 Paladin for Player 1 (Red) at (Center of Rect 004 <gen>) facing Default building facing degrees
      • Set Player01 = (Last created unit)
      • For each (Integer A) from 1 to Item_Number, do (Actions)
        • Loop - Actions
          • Hero - Create (Item-type of TempItem) and give it to Player01

Code:
Variable Name		Variable Type	Initial Value
Player01		Unit		- None -
Item_Number		Integer		0 (Default)
TempItem		Item		- None -
 

xXGauntletXx

New Member
Reaction score
4
You need to find a way to parse a save string into things that mean something. If you don't know what I mean, look at some of the save/load codes in games. Basically it means turning a string like AAA-AAA-AAA-AAA-AAA-AAA into the 6 items represented in it.
 

tooltiperror

Super Moderator
Reaction score
231
In a nutshell, save/load systems work like this.

Code:
Item 1 ---> Aw6
Item 2 ---> B64

And then displaying to the user, Aw6B64.

Since you are a fairly large noob, you will probably not be able to make this system by yourself.

Instead, use Acehearts, and ask specific questions about that system.
 

Jeroen

New Member
Reaction score
0
Found it :p

Code:
Commands:
-save
-save blue
-load
-load blue
 

Attachments

  • SaveLoad Items Demo.w3x
    29.5 KB · Views: 95
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top