Jump to content
Age of History
  • 0
CzarnyJudasz

Event with decisions

Question

I have a problem. I am creating a sequence of events and I have created an event that has two decisions. One is to burn the city, the other is not to burn the city. I want each of these decisions to have their own events. By 1 the city was burned and by 2 the city was not burned. But I don't know how to do it. I used the has_variable command, but this command works on the event id and decisions in events do not have an id. I don't know what to do. I'm stuck.I need to know what to do so that a separate decision in an event triggers another event dedicated to this decision

 

thx for help

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

In the burn outcome, put add_variable=cityburn_accepted ; In the no burn outcome, put add_variable=cityburn_rejected

Then create two new .txt in the events folder, cityburn_accepted and cityburn_rejected (the names I used are an example, can be any name)

Share this post


Link to post
Share on other sites

  • 0
3 minutes ago, Iceman said:

In the burn outcome, put add_variable=cityburn_accepted ; In the no burn outcome, put add_variable=cityburn_rejected

Then create two new .txt in the events folder, cityburn_accepted and cityburn_rejected (the names I used are an example, can be any name)

Yes, like that outcomes but in next events as triggers you need to use:

has_variable=cityburn_accepted
has_variable=cityburn_rejected

The next two event files don't need to be named cityburn_accepted and cityburn_rejected.

Share this post


Link to post
Share on other sites

  • 0

still not working. I started creating someting else.I made two simple events in which Spain rejects Italian demands. But Italy gets nothing. The last event is not displayed at all. Why? What's wrong?the rest of my events don't work either

id=spa1
title=Italy demands control of the Balerian Islands!
desc=T
mission_desc=Description in the missions view! Hi!

image=87.png

show_in_missions=true
mission_image=2

only_once=true

trigger_and
next_and
is_civ=spa
trigger_and_end

option_btn
name=I agree, it's not worth the war
add_variable=italian_demands_accepted
ai=0
option_end

option_btn
name=We will never agree to this!
add_variable=italian_demands_rejected
ai=100
option_end

 

 

id=ita.9 Not working!
title=The Spanish government reject our demands!
desc=Madrid rejected our demands for the Baler Islands.Franco has no intention of risking being recognized by the UN as our ally.What should we do now?
mission_desc=Description in the missions view! Hi!

image=89.png

show_in_missions=true
mission_image=2

only_once=true

trigger_and
next_and
is_civ=ita
next_and
has_variable=italian_demands_rejected
next_and
exact_day=30=1=1949
trigger_and_end

option_btn
name=Threaten them with Regia Marina!
ai=0
option_end

option_btn
name=Let's start negotiations and reach a deal
ai=100
option_end

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Age of History Games