Map design - TRIGGERS (eg. if the hero dies)

Stratego (dev)
Site Admin
Posts: 15750
Joined: Fri Apr 25, 2014 9:28 pm

Re: Map design - TRIGGERS (eg. if the hero dies)

Post by Stratego (dev) »

posted in first post 2 videos about triggers
Stratego (dev)
Site Admin
Posts: 15750
Joined: Fri Apr 25, 2014 9:28 pm

Re: Map design - TRIGGERS (eg. if the hero dies)

Post by Stratego (dev) »

change in text (in game texting) about "You will lose conditions"
-----------------

Objectives:

You can define a trigger to be "Objective" meaning its description will appear in the map datasheet like this:

Objectives
Showing the
a) progress if you have finished the given Objective or not (in games you are still playing in)
OR
b) showing the "You will lose if..." cases, eg. "Your Hero must survive" objective.
User avatar
b2198
Posts: 798
Joined: Mon Aug 30, 2021 5:48 pm
Location: Brazil

Re: Map design - TRIGGERS (eg. if the hero dies)

Post by b2198 »

Stratego (dev) wrote: Fri May 20, 2022 7:59 pm change in text (in game texting) about "You will lose conditions"
-----------------

Objectives:

You can define a trigger to be "Objective" meaning its description will appear in the map datasheet like this:

Objectives
Showing the
a) progress if you have finished the given Objective or not (in games you are still playing in)
OR
b) showing the "You will lose if..." cases, eg. "Your Hero must survive" objective.
This one is big. I often found myself playing some maps by deleting units until I lost to see which of them I had to keep alive. Displaying this info in the objectives is imo a very intuitive way to properly guide the player through the maps. Nice :ok_hand:
Green is the correct color, other colors are "less correct".
Stratego (dev)
Site Admin
Posts: 15750
Joined: Fri Apr 25, 2014 9:28 pm

Re: Map design - TRIGGERS (eg. if the hero dies)

Post by Stratego (dev) »

yes i also want to make all maps show that but for that
a) we need all maps that has such condition (in theory it is searchable tru files)
- i looked them up in aos: viewtopic.php?f=4&t=12774
- i looked them up in aof: viewtopic.php?f=28&t=12775
- i looked them up in aow: viewtopic.php?f=57&t=12776
- i looked them up in aog: viewtopic.php?f=141&t=12777
- i looked them up in aomw: viewtopic.php?f=303&t=12778
b) fixing them by setting those triggers to be condition type, naming them nicely.
Stratego (dev)
Site Admin
Posts: 15750
Joined: Fri Apr 25, 2014 9:28 pm

Re: Map design - TRIGGERS (eg. if the hero dies)

Post by Stratego (dev) »

new type:
transient public static final int TRIGGER_EFF_SET_DECOR = 1047; //Sets a decoration to location(s), decor ID is in Message field numerically
User avatar
Puss_in_Boots
Posts: 3211
Joined: Fri Apr 21, 2017 1:23 am
Location: New Jersey

Re: Map design - TRIGGERS (eg. if the hero dies)

Post by Puss_in_Boots »

Is it possible to have a trigger that removes permanent effects from units that start with them? Let's say I want to remove lifelink from Puss In Boots himself or a vampire in my own maps.

If it is already possible I haven't figured out how.
OLÉ
Post Reply

Return to “Map Design”