Turning my attention to OOB's, and VP locations.

This is where our experts try to teach you the very flexible modding system for our previous release - SOW Gettysburg and its add-ons. It's powerful, but dangerous. Post your tips and your questions.
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Turning my attention to OOB's, and VP locations.

Post by born2see »

mikesla wrote:
Okay so this would be placed in the "battlescript.csv" then?
Yep. To use my favorite example, "Lost Avenue"

evtfighting OOB_U_49_NY loadscreen:courier:REB_Message2

- This says if the 49th NY starts fighting then display REB_Message2 which spanks the CSA player for entering into a general engagement warned of in REB_Message1. Both of which are defined in the screen.txt file.

evtdeath OOB_U_THNeill endscenario:EndPlayerDie

- This says if the Union Commander dies then end the scenario and show the "Too Bad the Commander is Dead. Scenario Over" screen. In this case it would be a CSA victory.

So all you would have to do is couple the evtintrouble command with a showunit command and you'd be there.
Last edited by born2see on Sat Jul 16, 2011 6:27 am, edited 1 time in total.
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
Michael Slaunwhite
Reactions:
Posts: 4358
Joined: Fri Jan 08, 2010 8:15 am

Re: Turning my attention to OOB's, and VP locations.

Post by Michael Slaunwhite »

mikesla wrote:
Okay so this would be placed in the "battlescript.csv" then?
Yep. To use my favorite example, "Lost Avenue"

evtfighting OOB_U_49_NY loadscreen:courier:REB_Message2

- This says if the 49th NY starts fighting then display REB_Message2 which spanks the CSA player for entering into a general engagement warned of in REB_Message1. Both of which are defined in the screen.txt file.

evtdeath OOB_U_THNeill endscenario:EndPlayerDie

- This says if the Union Commander dies then end the scenario and show the "Too Bad the Commander is Dead. Scenario Over" screen. In this case it would be a CSA victory.

So all you would have to do is couple the evtintrouble command with a showunit command and you'd be there.
Hi.

Wow, you will never know what you might come across. Just to change the subject for one second here. What you wrote just explained a way to make something work that I have been trying to do for close to a year now (Death of Your Commander). I always was under the impression it could not be done, but there it is...in black & white.

I actually understand everything you wrote :). You have a talent for explaining the complicated, and making it easy to understand....well I have copied, and pasted this into a text file for safe keeping.

Thanks born2see, you have been a bigger help than you will know. :)

Cheers...
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Turning my attention to OOB's, and VP locations.

Post by born2see »

Thank you. Glad I could be of help.
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
User avatar
RebBugler
Reactions:
Posts: 4252
Joined: Sun Aug 03, 2008 12:51 am
Location: Ouachita Mountains, Arkansas

Re: Turning my attention to OOB's, and VP locations.

Post by RebBugler »

evtdeath OOB_U_THNeill endscenario:EndPlayerDie
This is an odd script, never have used it, or seen it, the ending:'EndplayerDie', is totally unnecessary.
Bugles & Flags Gettysburg - Toolbar, Flags, Scenarios, and More...
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Turning my attention to OOB's, and VP locations.

Post by born2see »

RebBugler wrote:
This is an odd script, never have used it, or seen it, the ending:'EndplayerDie', is totally unnecessary.

SOW-GB_SDK v106.pdf Page 81.


"evtdeath This event is triggered when the commander defined in ID Name column:has died.
Events Always are placed After all clocked functions are complete.

evtdeath OOB_U_Smith endscenario:EndPlayerDie"



Also note it's inclusion in the battlescript.csv file, Line 31 for "Lost Avenue" in the Brigade Scenario Pack by Little Powell.

evtdeath OOB_U_THNeill endscenario:EndPlayerDie




Don't know either but whoever wrote the docs included it.
Last edited by born2see on Sat Jul 16, 2011 7:45 am, edited 1 time in total.
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
User avatar
RebBugler
Reactions:
Posts: 4252
Joined: Sun Aug 03, 2008 12:51 am
Location: Ouachita Mountains, Arkansas

Re: Turning my attention to OOB's, and VP locations.

Post by RebBugler »

I think I know, but I'm staying mum. :whistle:

Of course, there may be a reason for that ending, but I'm clueless. The scenario has ended with the endscenario command...Why kill the Player, ME, who 99 per cent of the time is the 2nd entry here, and he's already dead, that's why the scenario is ending. It's gotta be an error, the SDK is still a work in progress. :blush:
Bugles & Flags Gettysburg - Toolbar, Flags, Scenarios, and More...
User avatar
RebBugler
Reactions:
Posts: 4252
Joined: Sun Aug 03, 2008 12:51 am
Location: Ouachita Mountains, Arkansas

Re: Turning my attention to OOB's, and VP locations.

Post by RebBugler »

Never friggin mind, cause I've lost mine. I just checked one of my battlescripts, and I use it. I saw that End Player Die and just keyed in on it thinking just the endscenario command completed this script. Man, I gotta get more sleep. :sick:

FYI The 'End Player Die' brings up the Tragedy Obit screen. Endscenario can stand alone, I use it frequently...it brings up the normal End Screen and also is used for the timed ending.
Last edited by RebBugler on Sat Jul 16, 2011 8:25 am, edited 1 time in total.
Reason: Added Info
Bugles & Flags Gettysburg - Toolbar, Flags, Scenarios, and More...
Michael Slaunwhite
Reactions:
Posts: 4358
Joined: Fri Jan 08, 2010 8:15 am

Re: Turning my attention to OOB's, and VP locations.

Post by Michael Slaunwhite »

Hi.

Quick Question.

Thanks again guys I'm learning allot (maybe more than my button brain can handle).

Okay, I am wondering to use the battle script, can I use this script without having a scenario? I'm wanting to create a particular battlescript which would only work with a particular sandbox oob.

If I can do this, where would I place the battlescript?

I have to go to bed, I think I may have hurt myself. :blink:

Cheers guys!
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Turning my attention to OOB's, and VP locations.

Post by born2see »

mikesla wrote
can I use this script without having a scenario?
I defer to RebBugler on that one. I have no idea. :unsure:
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
User avatar
RebBugler
Reactions:
Posts: 4252
Joined: Sun Aug 03, 2008 12:51 am
Location: Ouachita Mountains, Arkansas

Re: Turning my attention to OOB's, and VP locations.

Post by RebBugler »

Battlescript can only be used in a scenario folder, the scenario.csv is it's oob, which calls an oob in the OOBs folder.
Bugles & Flags Gettysburg - Toolbar, Flags, Scenarios, and More...
Post Reply