Page 1 of 1
changing entire sides during game play?
Posted: Tue Sep 26, 2006 6:45 am
by Aussie_Irishman
ok, well for the following question, i'm going to put down one of my concept ideas down, so that its easier to understand what i'm asking.
basically i'm going to do a battle of the Pellenor Fields, from lord of the rings....
what i want to do is have the gondor/rohan units available to spawn, and have a timer running during gameplay....when that timer hits zero, i want to stop the rohan/gondor units being available, and then change them to be units of the army of the dead....
is such a thing possible, or is it just a dream?
Cheers,
AJay
RE: changing entire sides during game play?
Posted: Tue Sep 26, 2006 9:49 am
by Aussie_Irishman
another idea i had, is instead of going on a timer, going by reinforcements....have it so that when ur count drops to like 30 left, thats when the changes occur, and u get a heep more to ur reinforcement count...
AJay
RE: changing entire sides during game play?
Posted: Tue Sep 26, 2006 12:27 pm
by [RDH]Zerted
Are these gondor/rohan units human players or just AI?
RE: changing entire sides during game play?
Posted: Tue Sep 26, 2006 7:26 pm
by Aussie_Irishman
human players....basically the map will come in the two stages...once that one stage is completed, it will unlock the army of the dead units...
AJay
RE: changing entire sides during game play?
Posted: Tue Sep 26, 2006 8:36 pm
by [RDH]Zerted
You can use the event response OnCharacterDeath() to track the reinforcement count. GetReinforcementCount( [team number] ) returns the reinforcements left on the given team.
You can use AddUnitClass() to add more units to the selection screen, but I don't know how you could remove ones you already added.
AddReinforcements( [team number], [amount to add] ) also sounds useful to you.
RE: changing entire sides during game play?
Posted: Tue Sep 26, 2006 8:43 pm
by Aussie_Irishman
thanx man, that'll be very helpful for me...lol i've already had four people say that if i pull this off, they will make sure their clans play it regularly...
AJay
RE: changing entire sides during game play?
Posted: Wed Sep 27, 2006 2:16 am
by [RDH]Zerted
Lord of the Rings maps sound fun.
RE: changing entire sides during game play?
Posted: Wed Sep 27, 2006 2:17 am
by Aussie_Irishman
well because its only early stages yet i am unable to post info yet, but i am planning a 3-map series on it.
AJay
RE: changing entire sides during game play?
Posted: Wed Sep 27, 2006 2:44 am
by Qdin
you can do alot of scripting in the .lua files.
But the best I give you as an advice, is that you pan on EXACTLY you want a certain event to happen and why.
some of what Zerted said, would activate when the player dies... but if you want a defending map so you have to wait for the reinforcements or new spawns etc. you sohuld make that completely clear for your scripter
