changing entire sides during game play?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Aussie_Irishman

changing entire sides during game play?

Post 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
Aussie_Irishman

RE: changing entire sides during game play?

Post 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
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: changing entire sides during game play?

Post by [RDH]Zerted »

Are these gondor/rohan units human players or just AI?
Aussie_Irishman

RE: changing entire sides during game play?

Post 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
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: changing entire sides during game play?

Post 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.
Aussie_Irishman

RE: changing entire sides during game play?

Post 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
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: changing entire sides during game play?

Post by [RDH]Zerted »

Lord of the Rings maps sound fun.
Aussie_Irishman

RE: changing entire sides during game play?

Post 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
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: changing entire sides during game play?

Post 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 :wink:
Post Reply