wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 03-16-2008, 06:44 PM   #1
Malfurion
User
 
Malfurion's Avatar
 
Join Date: May 2006
Posts: 18

Malfurion has little to show at this moment (0)

Default Game Cache - hero store

I want to make my own campaign, but I have one problem:
I want to store my Hero into a Game-Cache, but when the next map loads, he hero didn't appear :(
It looks like this:

Event:
Player 1 leaves game with victory
Condition:
Action:
Game Cache - Create game-cache form something.w3v
Set SomeVariable = (last created game cache)
G C - Store someunit as somelable of somecategory in somevariable (I tried it without variable too)
G C - save somevariable

on the next map:

Event:
map initialization
Condition:
Action:
G C - Create Game Cache from something.w3v
G C - Restore somelable of somecategory from (last created game cache) for player 1 at (center of area xxxx)
set herovariable = (last restored unit)

what did I wrong?
Should I use special names for the Lable, category, variable and game cache?

And my map changeover looks like this
Event:
map initialization
Condition:
Action:
Game - set next level to map002.w3x

In my campaign editor it now looks like this:
__________________
Veni, vidi, vici.
Malfurion is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 03-17-2008, 02:18 AM   #2
TheSecretArts
Galaxy Scripter
 
TheSecretArts's Avatar
 
Join Date: Mar 2007
Posts: 1,077

Submissions (2)

TheSecretArts will become famous soon enough (38)TheSecretArts will become famous soon enough (38)

Send a message via AIM to TheSecretArts Send a message via MSN to TheSecretArts Send a message via Yahoo to TheSecretArts
Default

try restoring the unit after it is saved BEFORE you end the game the game to make sure it saved.
__________________
I have officially moved exclusively to Starcraft 2 mapmaking.
Project: Escape Velocity: Nova Reloaded
Don't expect me to finish this project lol...
TheSecretArts is offline   Reply With Quote
Old 03-17-2008, 09:30 AM   #3
RolePlaynGamer
User
 
RolePlaynGamer's Avatar
 
Join Date: Feb 2008
Posts: 199

Submissions (1)

RolePlaynGamer is on a distinguished road (20)

Send a message via MSN to RolePlaynGamer
Default

Also try using "Time Elapsed 0.01" instead of Map Initialization, because Map Initialization doesn't always work.
__________________
Give +rep to people that helps you!
Curent project: Everwood ORPG
Team:
Yohobofire: Terraining
RolePlaynGamer: Scripting, modeling
Darkenneko_003: Texturing
RolePlaynGamer is offline   Reply With Quote
Old 03-17-2008, 07:37 PM   #4
Malfurion
User
 
Malfurion's Avatar
 
Join Date: May 2006
Posts: 18

Malfurion has little to show at this moment (0)

Default

hmm... after i imported some music I got a kompilation-failure or something like this. Now my map won't open again :( but I wont give up and make a new one ^^ but could someone post with this trigger-function of the forum the whole correct trigger for the unit-storing gamecache?
thank you
__________________
Veni, vidi, vici.
Malfurion is offline   Reply With Quote
Old 03-17-2008, 09:10 PM   #5
RolePlaynGamer
User
 
RolePlaynGamer's Avatar
 
Join Date: Feb 2008
Posts: 199

Submissions (1)

RolePlaynGamer is on a distinguished road (20)

Send a message via MSN to RolePlaynGamer
Default

The save trigger

Trigger:
Collapse Events
Player - Player 1 (Red) leaves the game with a victory
Conditions
Collapse Actions
Game Cache - Create a game cache from Everwood.w3v
set GameCache = (last created game cache)
Game Cache - Store Thrall 0000 <gen> as thrall of hero in GameCache

And then the load trigger

Trigger:
Collapse Events
Time - elapsed game time is 1.00 seconds
Conditions
Collapse Actions
Game Cache - Restore thrall of hero from GameCache for Player 1 (Red) at (Player 1 (Red) start location) facing 0.00
__________________
Give +rep to people that helps you!
Curent project: Everwood ORPG
Team:
Yohobofire: Terraining
RolePlaynGamer: Scripting, modeling
Darkenneko_003: Texturing
RolePlaynGamer is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 08:37 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2020, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services