Page 1 of 1

Question from a newbie

PostPosted: Sun Dec 24, 2017 5:27 am
by Dr. Jones
I was playing with the mod tools and I tried to create a perk called "Fearless". I copied the coding for the "pure mind" blessing but instead of removing the status with the ailment flags I designated another new flag I had created, "phobia". So, the code for now is this:

{
id: st-fearless
title: txt-st-fearless-title
important: true
debugCategory: Modding
description: txt-st-fearless
sprite: res_status_pureMind.png
dayEvents: {reqAge: 1.., removeStatusWithFlags: +phobia}
}

Also, I have tried to target de id of the ailments in order to add to them the flag "phobia" in this way:

{
targetId: *:st-paranoid*
flags: +ailment +phobia
}
{
targetId: *:st-lepidopterophobia*
flags: +ailment +phobia
}
{
targetId: *:st-claustrophobic*
flags: +ailment +phobia
}
{
targetId: *:st-acrophobia*
flags: +ailment +phobia
}
{
targetId: *:st-dendrophobia*
flags: +ailment +phobia
}
{
targetId: *:st-superstitious*
flags: +ailment +phobia
}


And... of course it doesn't work. if it worked I would not be here asking you. :lol:

Does anyone know what I am doing wrong? It's getting frustrating

Re: Question from a newbie

PostPosted: Thu Jan 11, 2018 3:43 pm
by demeggy
targetId: *whatever

That's how I believe it should be written - no * at the end or :

Give that a whirl.

Re: Question from a newbie

PostPosted: Wed Jan 17, 2018 12:57 pm
by riadd
You can use "*" at the end as well, but it is using "regular expression" syntax so it is not working as you think in this case. If you want to have a wildcard that matches every word end combination use ".*" instead.