Meta-Maps in WC3 -1 reply

Please wait...

SpaceDug2005

For the Emperor

50 XP

5th December 2005

0 Uploads

470 Posts

0 Threads

#1 12 years ago

Hi guys - its me again - the not-so-loveable-new-race-trying-to-work-dude! Ive been creating a new campaign for WC3, based on events in the 2nd War. Each map will contribute to Doomhammer's siege on the Capital City, so i was wondering how to incorperate this into the final map. [COLOR=red]BAsically it starts off with the Alliance forces have to saly 5 emmissaries of the Frostwolf Clan, who are plotting with the Blackrock clan to use thier forces as a decoy to draw the Alliance from the city, whilst Doomhammer destroys it. If the humans can kill all four emmissariews before their base is destroyed, there will be no Frostwolf forces in the final map.[/COLOR] [COLOR=deepskyblue]Also, inm a later map, the Elves of Silvermoon must hold back marauding trolls from destroying their city. every so often, the larger battle taking place (you only control a small amount of units) faulters, and you are pushed further back into the city. But basically, if Silvermoon falls within 30minutes, then the elves in the final battle will be halved, but if the trolls are defeated, then the elves will be able to offer more units to the fray.[/COLOR] [COLOR=black]So in the Final battle in Lordearon City, there is a random amount of forces in it. So, if the Alliance lost most of their fights, then there will be much more Orcs and Trolls attacking the city then there are Alliance forces defending. So how will i get this to work? ATM i am only just making the maps, there are no triggers, and now heroes (cept for in the final mission where the alliance has Lord Lothar, Khadgar, Turaylon and Uther, whislt the Horde has Doomhammer and his elite guard), so i dont need to worry bout that.[/COLOR] Thnx for any help you can give SpaceDug




Eleandor

No User title

50 XP

27th July 2004

0 Uploads

548 Posts

0 Threads

#2 12 years ago

small detail: you talk about 5 emmisaries, but the humans should only kill 4 emmisaries... kinda confusing

I've tried working with gamecache before, but I kinda screwed it up.

So basically what you should do is set a variable counting the # of killed emmisaries, then make a trigger that when the game ends (no false victory) you create new game cache and story the integer variable in it. Then, when loading the last map, you just us the action 'variable - set integer = Load integer value from game cache'. Then depending on that integer, you'll get many or less enemies.

*False victory: whenever you quit the game you leave the game (with victory I think... can be defeat too). So if you quit the game without finishing the map, the integer will be set anyway. Therefore you should detect if the map is finished (just open a campaign map, maybe you'll understand it better if you look into those triggers)




SpaceDug2005

For the Emperor

50 XP

5th December 2005

0 Uploads

470 Posts

0 Threads

#3 12 years ago

Okay, thanks for that, Ill have a go once I feel able enough to do it (I stared at the SCAR coding of my new race for too long - remember that folks - when editing game files, dont stare at it for more then a minute...)