WEU Save/Load Code Feature

Bunnyburn

New Member
Reaction score
8
Well, I heard WEU had a built in save/load thing, and I thought that would be a good idea for my map. Problem is, I have no idea where it is in WEU, or how to find it. If anybody could help me find/activate it, that would be pretty cool. Thanks
 
M

Mythic Fr0st

Guest
heh

I use it myself...

Action type is advanced ( Very Bottom )

LOL I remembered I deleted wc3 off pc, erm lolz

Any, Actiontype is advanced, look for, Multiplayer saveload code or somethin

Firstly do this,

CTRL + B ( Make a variable,name = MyHeroes var type = unit, array 12 )

However you get your heroes

Code:
set < Your Unit Var > = ( However you get your unit )
E.G set MyHeroes[Player Number Of Owner Of Sold Unit] = Sold unit etc... (that is, if ur units are bought from tavern)

Saving
Code:
Event - Player 1 red chat msg containing -save as an exact match
Conditions 
Actions - save Myheroes[Player Number of triggering player] for triggering player

repeat the event 11 more times, or for each player you have, ( Dont make a different trigger, it should be all 12 or 11 or 10 events in the one trigger

Load
Code:
Event - Player chat msg containing -load as a substring
condition
action - custom script - local string HEROCODE
if then else multiple functions
   if conditions substring entered chat string 6,6 equal to ( Put 1 space here )
   then actions - restore a hero for triggering player with the code HEROCODE
   else
if then else multiple functions
 if conditions number of living units owned by triggering player equal to 1
 then actions - set Myheroes[Player Number of triggering player] = last created unit
 else

I dont think thats it exactly, tell me if it works,

it may be last created unit, or last restored unit, or last replaced unit
 

Bunnyburn

New Member
Reaction score
8
wow, thats way simpler than this 6 page alpha number crap, only 1 thing i dont get, how does it know what to load? and is the custom string HEROCODE or whatever, that, or is it sumthin else?
 

Tom Jones

N/A
Reaction score
437
As a starter i would suggest you to NOT use WEU. It got flaws, and if you some day decide to make a spell, system, etc., which you wan't to share with the community, only people using WEU will benefit from it (that is of course if you got any WEU actions in the map). And you should be able to find the save/load actions under advanced, at the very buttom of your action menu in the WEU.
 

SFilip

Gone but not forgotten
Reaction score
634
You can also use vexorian's codemaker engine, if I remember correctly its the same thing and doesn't require any 3rd party software.
Or just read the README as Chocobo suggested.
 
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