changing entire sides during game play?
Moderator: Moderators
-
Aussie_Irishman
changing entire sides during game play?
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
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
-
Aussie_Irishman
RE: changing entire sides during game play?
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
AJay
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
RE: changing entire sides during game play?
Are these gondor/rohan units human players or just AI?
-
Aussie_Irishman
RE: changing entire sides during game play?
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
AJay
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
RE: changing entire sides during game play?
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.
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.
-
Aussie_Irishman
RE: changing entire sides during game play?
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
AJay
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
RE: changing entire sides during game play?
Lord of the Rings maps sound fun.
-
Aussie_Irishman
RE: changing entire sides during game play?
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
AJay
-
Qdin
- Old School Staff
- Posts: 2059
- Joined: Wed Feb 23, 2005 9:54 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: changing entire sides during game play?
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
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
