Page 1 of 1
Campaign events triggering at wrong scenario
Posted: Fri Apr 29, 2016 11:04 am
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
Re: Campaign events triggering at wrong scenario
Posted: Fri Apr 29, 2016 11:56 am
by adherbal
Defined like this, the event should pop up when the Cabcaben branch is reached. Is that not what it's doing?
Re: Campaign events triggering at wrong scenario
Posted: Fri Apr 29, 2016 3:26 pm
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.
Re: Campaign events triggering at wrong scenario
Posted: Fri Apr 29, 2016 4:35 pm
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.
Re: Campaign events triggering at wrong scenario
Posted: Fri Apr 29, 2016 4:53 pm
by Erik2
I need some help here, how do I set up the event items to trigger after the last scenario has finished?
Re: Campaign events triggering at wrong scenario
Posted: Fri Apr 29, 2016 7:11 pm
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.
Re: Campaign events triggering at wrong scenario
Posted: Fri Apr 29, 2016 8:22 pm
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).
Re: Campaign events triggering at wrong scenario
Posted: Fri Apr 29, 2016 9:17 pm
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.
Re: Campaign events triggering at wrong scenario
Posted: Sat Apr 30, 2016 10:04 am
by Erik2
Thanks, I'll experiment some more.
Re: Campaign events triggering at wrong scenario
Posted: Sun May 01, 2016 9:43 am
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.
Re: Campaign events triggering at wrong scenario
Posted: Sun May 01, 2016 9:46 am
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.