Junior Member
Join Date: Dec 2017
Posts: 7
|
I am currently adding some functionality to the rifts savage worlds files.
The upgrade edge lets you select a piece of cyberware and add it to your character. I already have the drop down content but need help adding the "usrChosen1" to the cyberware list of the hero. <thing id="edgSRUpgade" name="Upgrade" description="..." compset="Edge" summary="Add a new piece of cyberware of your choice"> <fieldval field="usrCandid1" value="component.Cyberware"/> <usesource source="SavRiftC"/> <tag group="ChooseSrc1" tag="Thing" name="All Things" abbrev="All Things"/> <tag group="MinRank" tag="1" name="Seasoned" abbrev="Seasoned"/> <tag group="EdgeType" tag="Iconic"/> <eval phase="PreTraits" priority="5000"><![CDATA[ doneif (field[usrChosen1].ischosen = 0) <!-- NEED TO add field[usrChosen1].chosen to cyberware list--> ]]></eval> <evalrule phase="Validate" priority="5000" message="May only be taken once per rank" summary="May only be taken once per rank"> <![CDATA[validif (herofield[acRank].value + 1 >= hero.tagcount[Edge.edgSRUpgade])]]></evalrule> <exprreq message="Combat Cyborg or M.A.R.S. required."> <![CDATA[(hero.tagcount[Group.grpSRCoCyb] + hero.tagcount[Rifts.MARS]) >= 1]]></exprreq> <exprreq message="Seasoned required."> <![CDATA[herofield[acRank].value >= 1]]></exprreq> </thing> |
#1 |
|
|