Question from a newbie

Everything related to modding

Question from a newbie

Postby Dr. Jones » Sun Dec 24, 2017 5:27 am

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
User avatar
Dr. Jones
 
Posts: 253
Joined: Tue Feb 17, 2015 12:03 pm

Re: Question from a newbie

Postby demeggy » Thu Jan 11, 2018 3:43 pm

targetId: *whatever

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

Give that a whirl.
demeggy
 
Posts: 5
Joined: Sun Jan 07, 2018 12:28 pm

Re: Question from a newbie

Postby riadd » Wed Jan 17, 2018 12:57 pm

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.
User avatar
riadd
Curious Dev
Curious Dev
 
Posts: 824
Joined: Thu May 22, 2014 11:36 am
Location: Berlin


Return to Modding

Who is online

Users browsing this forum: No registered users and 1 guest
cron