-
Notifications
You must be signed in to change notification settings - Fork 31
Artifact Properties
To add major/minor beneficial/detrimental artifact properties to an item, you'll need to add a few tags, a bootstrap, and two eval scripts.
Everything is done in this order:
- Minor Beneficial
- Major Beneficial
- Minor Detrimental
- Major Detrimental
So when you see things below, assume the line is for that kind of property. You don't need to include all lines for all artifacts, just the corresponding lines for the type of property that artifact has.
Tags
<tag group="Custom" tag="5CAPEIB" name="Minor Beneficial Artifact Properties Eligible"/>
<tag group="Custom" tag="5CAPEAB" name="Major Beneficial Artifact Properties Eligible"/>
<tag group="Custom" tag="5CAPEID" name="Minor Detrimental Artifact Properties Eligible"/>
<tag group="Custom" tag="5CAPEAD" name="Major Detrimental Artifact Properties Eligible"/>
Bootstrap
Any artifact with the properties should have "cfg5CArtPrp" bootstrapped to it.
Eval Script 1
Run this at First phase, timing 100. Let X equal the number of that kind of properties the item has. Start the script out (regardless of the kind of properties) with:
perform hero.childfound[cfg5CArtPrp].setfocus
-
focus.field[cfgMax1].value += X
-
focus.field[cfgMax2].value += X
-
focus.field[cfgMax3].value += X
-
focus.field[cfgMax4].value += X
Eval Script 2
Run this at Final phase, timing 100. Let X equal the number of that kind of properties the item has.
1:
if (tagcount[Custom.5CAPIB] >= X) then
perform delete[Custom.5CAPEIB]
endif
2:
if (tagcount[Custom.5CAPAB] >= X) then
perform delete[Custom.5CAPEAB]
endif
3:
if (tagcount[Custom.5CAPID] >= X) then
perform delete[Custom.5CAPEID]
endif
4:
if (tagcount[Custom.5CAPAD] >= X) then
perform delete[Custom.5CAPEAD]
endif