Hopefully this will be the last one I need for Weird War Rome (it should be). I'm trying to set-up a conditional bootstrap on a Character Creation Edge where I set up the Thing: as "skKnow" for my knowledge skill; FieldId: domDomain, Value: Occult, Assign; Condition, Setup, 1100, Tag Expression: !hero#Edge.edgWRLegK1 | !hero#Edge.edgWRLegA1 | !hero#Edge.edgWRLeJK1 | !hero#Edge.edgWRLeJR1 | !hero#Edge.edgWRLeJT1
That expression is because if the character has any of those Edges then I don't want to assign this skill to them. (The reason is because those Edges will have already assigned the Knowledge (Occult) skill to the character so I don't want to assign it again. Since this is character creation we don't really need to worry about it already existing (unless the player did it on their own, but they shouldn't have if they have this particular Edge anyway so I'm not going to bother trying to trap for it.)
So far so good, except that when I try to compile I get the following error:
Thing 'edgWRLeJF1' - Conditional bootstrap is not allowed with value assignment on 'user' field 'domDomain'
So it looks like it won't allow me to assign a domain to the skill, at least not with the Bootstrap. So how can I set the domDomain on that Knowledge skill? Of note, I also have an Eval script that run at Pre-Traits/5000 to search for an occult domain in the Knowledge fields to bump it up a die, so presumably I'd need to be able to make the assignment before then.
So my thought would be an Eval script at Pr-Traits/4500 set up something like:
Although that doesn't exactly work (I get a reference to undeclared variable "eachpick"). I've tried several variations but I'm not sure what syntax I should be using here.
That expression is because if the character has any of those Edges then I don't want to assign this skill to them. (The reason is because those Edges will have already assigned the Knowledge (Occult) skill to the character so I don't want to assign it again. Since this is character creation we don't really need to worry about it already existing (unless the player did it on their own, but they shouldn't have if they have this particular Edge anyway so I'm not going to bother trying to trap for it.)
So far so good, except that when I try to compile I get the following error:
Thing 'edgWRLeJF1' - Conditional bootstrap is not allowed with value assignment on 'user' field 'domDomain'
So it looks like it won't allow me to assign a domain to the skill, at least not with the Bootstrap. So how can I set the domDomain on that Knowledge skill? Of note, I also have an Eval script that run at Pre-Traits/5000 to search for an occult domain in the Knowledge fields to bump it up a die, so presumably I'd need to be able to make the assignment before then.
So my thought would be an Eval script at Pr-Traits/4500 set up something like:
Code:
foreach pick in hero where "thingid.skKnow"
if (compare(lowercase(eachpick.field[domDomain].text),"") = 0) then
trustme
~This will assign Occult
var occult as string
occult = "Occult"
eachpick.field[domDomain].string = occult
endif
nexteach
Although that doesn't exactly work (I get a reference to undeclared variable "eachpick"). I've tried several variations but I'm not sure what syntax I should be using here.