Page 3 of 4
Re: Turning my attention to OOB's, and VP locations.
Posted: Sat Jul 16, 2011 6:23 am
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.
Re: Turning my attention to OOB's, and VP locations.
Posted: Sat Jul 16, 2011 6:52 am
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...
Re: Turning my attention to OOB's, and VP locations.
Posted: Sat Jul 16, 2011 6:55 am
by born2see
Thank you. Glad I could be of help.
Re: Turning my attention to OOB's, and VP locations.
Posted: Sat Jul 16, 2011 7:17 am
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.
Re: Turning my attention to OOB's, and VP locations.
Posted: Sat Jul 16, 2011 7:36 am
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.
Re: Turning my attention to OOB's, and VP locations.
Posted: Sat Jul 16, 2011 7:46 am
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.

Re: Turning my attention to OOB's, and VP locations.
Posted: Sat Jul 16, 2011 8:07 am
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.
Re: Turning my attention to OOB's, and VP locations.
Posted: Sat Jul 16, 2011 8:15 am
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!
Re: Turning my attention to OOB's, and VP locations.
Posted: Sat Jul 16, 2011 8:21 am
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:
Re: Turning my attention to OOB's, and VP locations.
Posted: Sat Jul 16, 2011 8:32 am
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.