Big Money Sylvia
New member
I just intuitively tried to assign a record using a literal. I learned that is not a thing, but veracity suggested making it into a feature request.
The example syntax in my not-currently-working code looks like this:
The example syntax in my not-currently-working code looks like this:
JavaScript:
exp_buff_score[int] scores;
if(my_primestat() == $stat[muscle]) {
exp_buff_score[int] scores = {
0: new exp_buff_score {
buff: $effect[Quiet Determination],
buffing_skill: $skill[Quiet Determination],
availability: have_skill($skill[Quiet Determination]),
score: scaling_monster ? my_basestat($stat[muscle]) / 32 * mainstat_gain_multiplier : 0,
},
1: new exp_buff_score {
buff: $effect[Patient Smile],
buffing_skill: $skill[Patient Smile],
availability: have_skill($skill[Patient Smile]),
score: 1 * mainstat_gain_multiplier,
},
};
}
Last edited: