sticker filters for area action in prototypes
Posted: Tue Feb 07, 2017 1:26 pm
Request: 2 additional attributes for "area" type action, one for selecting entities that only have the said stickers, the other one for selecting entities that DON'T have the said stickers.
AFAIK, for actions with type = "area", we already have "collision_mask", "force" and "entity_flags" to filter entities. I hope we can make use of the sticker system so that we can also filter entities according to the existence of stickers on entities.
The format may be like this:
so this will deal 999999 fire damage to the entities that have the sticker "death-fire" on them.
Or,
this will shoot "chained-lightning-beam-1" to the entities that don't have "chained-lightning" sticker. Imagine the beam will create the "chained-lightning" sticker on the target entity, and also shoot "chained-lightning-beam-2" and then 3 and 4.... with the same filter and effect. We can then create true chained lightning. 
AFAIK, for actions with type = "area", we already have "collision_mask", "force" and "entity_flags" to filter entities. I hope we can make use of the sticker system so that we can also filter entities according to the existence of stickers on entities.
The format may be like this:
Code: Select all
action =
{
type = "area",
perimeter = 11,
with_stickers = {"death-fire"},
action_delivery =
{
type = "instant",
target_effects =
{
type = "damage", damage = {amount = 999999, type = "fire"}
}
}
}
Or,
Code: Select all
action =
{
type = "area",
perimeter = 11,
without_stickers = {"chained-lightning"},
action_delivery =
{
type = "beam",
target_effects =
{
beam = "chained-lightning-beam-1",
max_length = 30,
duration = 20,
source_offset = {0, 0}
}
}
}
