![]() |
#1 |
User
|
![]() Introduction
This tutorial will tell you how to move units and other things from map to map. Remember that Game Caches can not be used on Battle Net, and are almost only ever used for campaigns. Creating the Game Cache The first thing you want to do is to create a variable for the Game Cache, go into the Variale editor and create a new Game Cache, like in the pictures bellow. ![]() ![]() Then when the Game Caches variable has been created use this trigger to create the Game Cache. Trigger: Storing Heros and Other Things Now i'll show you how to store things using a Game Cache. The following trigger can be used to store a hero. Trigger: Remember that you will have to create all the nesecary variables in order for the triggers to work. This next trigger will show you how to store a players gold or lumber. This will require a variable, unlike storing a hero. Trigger: This next trigger will show you how to store a heros proper name, and one of the ways it can be used in a different map. Trigger: This will also require a variable. Restoring things from the Game Cache I am now going to show you how to restore all these things in a different map. The first thing we need to do is the re-create all the variables. It makes it alot easier if the new variables in the new map are the same as in the old map. After all the required variables have been made make this trigger. Trigger: Now that the Game Cache has been re-created we can restore our heros, gold and hero names. This next trigger is used to restore the hero. Trigger: Now that our gold has been restored we can make a text message appear on the screen saying Your heros proper name is the last game was: and have the heros proper name appear. You can do this with almost anything. Heres the trigger for it. Trigger: Conclusion I hope you now find Game Caches alot easier, if you would like to ask me anything just private message me or email me at bob27dav@optusnet.com.au. If you need it you maybe download the demo Here. Last edited by Bob27 : 03-19-2006 at 08:10 AM. |
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#3 |
User
|
![]() No you can't use Game Caches for multiplayer or b.net, just singleplayer.
|
![]() |
![]() |
![]() |
#4 |
User
Join Date: Dec 2005
Posts: 7
![]() |
![]() You can use game caches in multiplayer games, what you not can do is save them to a different game.
Your spell should work as good in multiplayer as in single player. |
![]() |
![]() |
![]() |
#5 |
.
Respected User
|
![]() phyrex1an is right.
__________________Game caches works perfectly in multiplayer games, as long as you only want to use their contents in that game. |
![]() |
![]() |
![]() |
#6 |
User
Join Date: Mar 2006
Posts: 71
![]() |
![]() do game caches have any advantages over using global variables?
|
![]() |
![]() |
![]() |
#7 |
Banned
|
![]() i have a question, now a have two map and how to link them?, for example, when the hero go to a region, he will be moved to the second map and the game reload??
|
![]() |
![]() |
![]() |
#8 |
User
|
![]() heya :) umm ive made multiple game caches but i can never seem to get past the loading stage, when i load the next made it always says the message "Waiting for host" and it has the disconnect button available, but never loads..
any idea what could be wrong? |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|