- Joined
- Sep 12, 2008
- Messages
- 657
The triggers basicly save a game cache when you write -save, then when you write -load it loads it.. for some reason i cant make it work if i leave game, then i load..
if im wrong at the trigger, or it shouldn't be used as game cache, please say me =]
(single player campaign)
load trigger
if im wrong at the trigger, or it shouldn't be used as game cache, please say me =]
(single player campaign)
load trigger
-
Load
-
Events
-
Player - Player 1 (Red) types a chat message containing -load as An exact match
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
Unit - Remove (Picked unit) from the game
-
-
-
Unit - Create 1 Paladin for Player 1 (Red) at (Center of Region 000 <gen>) facing Default building facing degrees
-
Hero - Set (Last created unit) Hero-level to (Load Level of Save from SaveCache), Hide level-up graphics
-
Hero - Set (Last created unit) experience to (Load Exp of Save from SaveCache), Hide level-up graphics
-
Hero - Modify Strength of (Last created unit): Set to (Load Str of Save from SaveCache)
-
Hero - Modify Agility of (Last created unit): Set to (Load Agi of Save from SaveCache)
-
Hero - Modify Intelligence of (Last created unit): Set to (Load Int of Save from SaveCache)
-
-
-
Save
-
Events
-
Player - Player 1 (Red) types a chat message containing -save as An exact match
-
-
Conditions
-
Actions
-
Game Cache - Create a game cache from MapName.w3v
-
Set SaveCache = (Last created game cache)
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
Set HeroType = (String((Unit-type of (Picked unit))))
-
Game Cache - Store HeroType as Hero of Save in SaveCache
-
Game Cache - Store (Hero level of (Picked unit)) as Level of Save in SaveCache
-
Game Cache - Store (Hero experience of (Picked unit)) as Exp of Save in SaveCache
-
Game Cache - Store (Strength of (Picked unit) (Exclude bonuses)) as Str of Save in SaveCache
-
Game Cache - Store (Agility of (Picked unit) (Exclude bonuses)) as Agi of Save in SaveCache
-
Game Cache - Store (Intelligence of (Picked unit) (Exclude bonuses)) as Int of Save in SaveCache
-
-
-
Game Cache - Save SaveCache
-
-
-
Test
-
Events
-
Player - Player 1 (Red) types a chat message containing Str as A substring
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
Hero - Modify Strength of (Picked unit): Add (Integer((Substring((Entered chat string), 4, 9))))
-
-
-
-