• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Plz tell my y this wont work!?!??!

Status
Not open for further replies.
Level 10
Joined
Aug 2, 2004
Messages
703
ok this is the save trigger

Events
Player - Player 1 (Red) types a chat message containing -save as An exact match
Conditions
Actions
Trigger - Run Hmmm <gen> (ignoring conditions)
Game Cache - Create a game cache from EC II.w3v
Game Cache - Store Code[1] as Code[1] of Codes in (Last created game cache)
Game Cache - Store Hero as Hero1 of Heros in (Last created game cache)
Game Cache - Save (Last created game cache)
Game - Display to (Player group((Triggering player))) for 90.00 seconds the text: (Your Code is: |c00990000 + (Code[1] + |r))
Game - Set the next level to Maps\Download\My Maps\Save Load System.w3x

and this is the load trigger

Load
Events
Player - Player 1 (Red) types a chat message containing -load as A substring
Conditions
(Length of (Entered chat string)) Greater than or equal to 6
(Length of (Entered chat string)) Less than or equal to 25
Actions
Set GameCache_Name[1] = (Substring((Entered chat string), 7, 25))
Game - Display to (Player group((Triggering player))) the text: Your Code Was Corre...
Game Cache - Create a game cache from EC II.w3v
Game Cache - Create a game cache from (Load GameCache_Name[1] of Codes from (Last created game cache))
Game Cache - Restore Hero1 of Heros from (Last created game cache) for Player 1 (Red) at (Center of (Playable map area)) facing 0.00

this is "hmmm"

Hmmm
Events
Conditions
Actions
Set Code[1] = ((String((Random integer number between 1000 and 9999))) + (- + ((String((Random integer number between 1000 and 9999))) + (- + ((String((Random integer number between 1000 and 9999))) + (- + (String((Random integer number between 1000 and 9999)))))))))

and Mr.Maestro DO NOT post ur stupid little trigger FAQ lol cuz that doesnt work /w wat im trying to do
___________________________________________________
o ya and another thing, the "random integer" is always the same how can u fix that?
 
Level 9
Joined
Nov 27, 2004
Messages
465
Ok.. try to delfet "1" at:
Game Cache - Store Hero as Hero1 of Heros in (Last created game cache)
make it like
Game Cache - Store Hero as Hero of Heros in (Last created game cache)

you always test your map at WE and at WE options there is a button clicked: fix random seed .. unclick that button...

And this trigger is .. Emm why do you need code if you'll play alone ?
 
Level 9
Joined
Nov 27, 2004
Messages
465
i just didn't have any problems with save\load..even at versions before RoC(Ehh good old 1.01)

you just need to save file at the same name... i always, for example , have same name of game cache saving string and his catalog and it always work...

just look tutorials .... rip them ;)~
 
Level 9
Joined
Nov 27, 2004
Messages
465
hero thing?
Ohh you mean spellbook?
it works with mage.. but not at tutorial ;)~

i just couldn't understand why you do this , because no one woudn't enter password lke xxxxxxxxx-xxxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxx-xxxxx-xxx-xxx-x

they will just enter: hero 1
and if they are correct 8)

it's not working for multiplayer as good as it could be..of course at home LAN it could work, but not at b.net

you are trying to mix 2 diffenrent ways of saving...
 
Level 2
Joined
Jul 20, 2005
Messages
11
I want too save the the text. In the next game it will load.
it works if u save it and then load it in the same game, but if u exit, it doesnt WHY!!!!!?




save full text display
Events
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
Conditions
Actions
Set Text__save = (Text__save + ( + (Entered chat str





save spy display
Events
Player - Player 1 (Red) types a chat message containing -save txt as An exact match
Conditions
Actions
Game Cache - Create a game cache from (Name of Player 1 (Red))
Game Cache - Store Text__save as Code_my[1] of Codes in (Last created game cache)
Set GameCache = (Last created game cache)
Game Cache - Save GameCache



load spy display
Events
Player - Player 1 (Red) types a chat message containing -load txt as An exact match
Conditions
Actions
Game Cache - Create a game cache from (Name of Player 1 (Red))
Game - Display to (Player group((Triggering player))) for 30.00 seconds the text: (Load Code_my[1] of Codes from (Last created game cache))
 
Status
Not open for further replies.
Top