HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Campaigns: Transferring heroes from one chapter to the next

06-26-2004, 10:20 PM#1
OneWinged4ngel
Almost all campaigns do this: they transfer heroes from one chapter to the next. I looked in The Coming of The Horde for it but I didn't see any triggers for transferring the heroes....
someone help please, I'm guessing it has something to do with caches but I've never used those before as this is my first project not designed for Bnet
06-26-2004, 10:58 PM#2
-={tWiStÄr}=-
You store all of the data you want into a game cache right, so first you take hero #1 and set his level to some integer and then store it in a cache. then you do this to everything you want so maybe if theres multiple heroes thier levels, if you want to carry over certain units store how many you want to carry over in a var and maybe items but most campaigns dont carry over items. then in the next game you load up all those numbers and set everything to what its supposed to be like levels and all.
06-26-2004, 11:04 PM#3
Rafael Br
To store the Hero, first create a game cache, with the same name of your map, then store your hero there(do this at the end of the map)
then save your game cache.
To load your hero on the other map:
Use the create game cache action, use the same name that used before, the reload all data form game cache and restore your hero( use the same label and category that you used to store it before).
To find this actions, use search fo text--> game cache.
06-27-2004, 03:08 AM#4
OneWinged4ngel
Quote:
Originally Posted by Rafael Br
To store the Hero, first create a game cache, with the same name of your map, then store your hero there(do this at the end of the map)
then save your game cache.
To load your hero on the other map:
Use the create game cache action, use the same name that used before, the reload all data form game cache and restore your hero( use the same label and category that you used to store it before).
To find this actions, use search fo text--> game cache.

Thanks Rafael. Oh and to the other guy... I haven't seen any campaigns that didn't transfer items or already learned hero abilities and just transferred levels... :\
06-27-2004, 03:20 AM#5
-={tWiStÄr}=-
ok well i dont play that many custom campaigns but im pretty sure but prolly wrong that wc3 didnt transfer items. or maybe i just didnt get any. and i took a look at one of the extra orc campaign maps and it loaded the hero really wierd. Also i was thinking more about how you save units over b.net maps so i was in wrong mindset. and i dont like the thumbs down smilie, it makes me feel unappreciated :(
07-03-2004, 04:59 PM#6
OneWinged4ngel
Okay on my map I got this... but it doesn't seem to work...
here's the triggers:

on 1st map:
Save Heroes
Events
Conditions
Actions
Game Cache - Create a game cache from The Chronicles of Falar.w3v
Game Cache - Store Arrianna Ryvern (Bow) 0007 <gen> as arribow of Hero in (Last created game cache)
Game Cache - Store Arrianna Ryvern (Moonscythe) 0008 <gen> as arrimoon of Hero in (Last created game cache)
Game Cache - Store Arrianna Ryvern (Runeblade) 0009 <gen> as arrirune of Hero in (Last created game cache)
Game Cache - Store Falar Gallant (Axe and Hammer) 0004 <gen> as falaraxe of Hero in (Last created game cache)
Game Cache - Store Falar Gallant (Gun) 0005 <gen> as falargun of Hero in (Last created game cache)
Game Cache - Store Falar Gallant (Stave) 0006 <gen> as falarstave of Hero in (Last created game cache)
Game Cache - Save (Last created game cache)
Game - Set the next level to TCOF chapter 1a.w3x
Game - Show custom campaign button 2
Game - Victory Player 1 (Red) (Show dialogs, Show scores)

(this is initialized by a run trigger after the ending cutscene)

Map 2
Load Heroes Copy
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Game Cache - Create a game cache from The Chronicles of Falar.w3v
Game Cache - Restore arribow of Hero from (Last created game cache) for Player 1 (Red) at (Center of HeroStorage <gen>) facing 225.00
Set Arribow = (Last restored unit)
Game Cache - Restore arrimoon of Hero from (Last created game cache) for Player 1 (Red) at (Center of HeroStorage <gen>) facing 225.00
Set Arrimoon = (Last restored unit)
Game Cache - Restore arrirune of Hero from (Last created game cache) for Player 1 (Red) at (Center of HeroStorage <gen>) facing 225.00
Set Arrirune = (Last restored unit)
Game Cache - Restore falaraxe of Hero from (Last created game cache) for Player 1 (Red) at (Center of HeroStorage <gen>) facing 225.00
Set FalarAxe = (Last restored unit)
Game Cache - Restore falargun of Hero from (Last created game cache) for Player 1 (Red) at (Center of HeroStorage <gen>) facing 225.00
Set FalarGun = (Last restored unit)
Game Cache - Restore falarstave of Hero from (Last created game cache) for Player 1 (Red) at (Center of HeroStorage <gen>) facing 225.00
Set FalarStave = (Last restored unit)
Set FalarAxe = Falar
Set Arrianna = Arribow

This SHOULD bring back the six heroes from the revious level and set them to variables and place them in their respective locations... and all being owned by player 1. Instead... I get... no heroes loaded. :( :( :( WHY DOESN'T THIS WORK

P.S. Twistar you are completely wrong... the normal WC3 campaign transfers the hero and everything about the hero.
07-10-2004, 12:47 AM#7
OneWinged4ngel
Why doesn't this work?
bump
07-10-2004, 02:29 AM#8
Rafael Br
Add action-Reload all data from game cache(or something like,this, you will know when you see) before loading the heroes and after creating the game cache(on the second map).
07-10-2004, 02:55 PM#9
-={tWiStÄr}=-
Quote:
Originally Posted by OneWinged4ngel
P.S. Twistar you are completely wrong... the normal WC3 campaign transfers the hero and everything about the hero.

yeah.. i know i was thinking B.net.
07-24-2004, 11:34 PM#10
OneWinged4ngel
Quote:
Originally Posted by Rafael Br
Add action-Reload all data from game cache(or something like,this, you will know when you see) before loading the heroes and after creating the game cache(on the second map).

thanks Rafael, I'll try that...
and, as your sig suggests, I'll take some time to add a rep point for you bothering to answer my stupid noob question lol :D