Campaign events triggering at wrong scenario

Moderators: Order of Battle Moderators, The Artistocrats

Post Reply
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Campaign events triggering at wrong scenario

Post by Erik2 »

Here's an extract from the data.cmp file (last two scenarios in the campaign).
I've checked the Lamao scenario, it is set up correctly.
Why do the cabcaben event title/txt/graphic trigger at the end of the Lamao scenario instead of the Cabcaben scenario?
The game then moves to the last scenario, Cabcaben.

[Lamao]
location = -1.879, -6.692
scenario = Lamao
result = -2,-2,-2,12,12

[Cabcaben]
location = -2.983, -7.099
scenario = Cabcaben
result = -2,-2,-2,-1,-1
event = event_cabcaben_title, event_cabcaben_text, event_cabcaben

Thanks
Erik
adherbal
The Artistocrats
The Artistocrats
Posts: 3900
Joined: Fri Jun 24, 2005 6:42 pm
Location: Belgium

Re: Campaign events triggering at wrong scenario

Post by adherbal »

Defined like this, the event should pop up when the Cabcaben branch is reached. Is that not what it's doing?
Image
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Campaign events triggering at wrong scenario

Post by Erik2 »

Nope, I want the events to trigger after the last scenario has ended with a minor/major victory.
The event concludes the campaign.
adherbal
The Artistocrats
The Artistocrats
Posts: 3900
Joined: Fri Jun 24, 2005 6:42 pm
Location: Belgium

Re: Campaign events triggering at wrong scenario

Post by adherbal »

I've tested this again and as far as I can tell it's working as intended.

But if you want different outcome messages you have to use different (negative) result values and assign different text & image to these.
Image
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Campaign events triggering at wrong scenario

Post by Erik2 »

I need some help here, how do I set up the event items to trigger after the last scenario has finished?
adherbal
The Artistocrats
The Artistocrats
Posts: 3900
Joined: Fri Jun 24, 2005 6:42 pm
Location: Belgium

Re: Campaign events triggering at wrong scenario

Post by adherbal »

You just want different outcome messages depending on minor/major victory I assume? Those pop up automatically if the next branch number is a negative value.

This stuff was explained here:
http://www.slitherine.com/forum/viewtop ... me#p592394
Unless it still isn't clear? The negative number is just a value used in the outcome and text entry and image filename (with the minus removed). it's up to you to decide what that text says and what the image shows.
Image
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Campaign events triggering at wrong scenario

Post by Erik2 »

Nope. I want one set of event items to trigger for minor/major defeat & draw and another one for minor/major victory.
The main point is I want them to trigger after the last scenario is finished, and I don't know where to put these events since they are triggered at the start of the scenario they're attached too.

I find the juggling of positive/negative numbers in the editor and in txt files confusing.
I try to glean some info from the stock campaigns, but the game has a habit of doing something different than expected whenever I try to edit campaign stuff.
Sorry, the old thread was confusing to me the first time and a re-read didn't help :(
Too bad, since the editor is usually quite intuitive (with a bit of event stuff thrown in).
adherbal
The Artistocrats
The Artistocrats
Posts: 3900
Joined: Fri Jun 24, 2005 6:42 pm
Location: Belgium

Re: Campaign events triggering at wrong scenario

Post by adherbal »

Code: Select all

[Cabcaben]
location = -2.983, -7.099
scenario = Cabcaben
result = -1,-2,-3,-4,-5
This will create an event with image outcome_1, outcome_2, outcome_3, outcome_4, outcome_5 + text message outcome_1_title/text, outcome_2_title/text, outcome_3_title/text, outcome_4_title/text, outcome_5_title/text for major defeat, minor defeat, draw, minor victory and major victory respectively.
Image
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Campaign events triggering at wrong scenario

Post by Erik2 »

Thanks, I'll experiment some more.
uran21
Panzer Corps Map Designer
Panzer Corps Map Designer
Posts: 2318
Joined: Thu Dec 02, 2010 8:34 pm

Re: Campaign events triggering at wrong scenario

Post by uran21 »

Erik by reading this conversation I think I know where the source of confusion comes from.

Events associated to scenarios pop up at scenario start and are defined in data.cmp file.

Outcomes should be defined in text_english.txt file.
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Campaign events triggering at wrong scenario

Post by Erik2 »

Yes, you're right.
I had modeled the campaign info on my last Philippines scenario on your last WInter War, but only in the data-file.
Post Reply

Return to “Order of Battle : World War II - Scenario Design”