View Single Post
SeeleyOne
Senior Member
 
Join Date: Nov 2009
Posts: 891

Old May 11th, 2016, 08:51 PM
I have been fixing up a modded version of the Hellfrost data. It looks like that I got the Disciple of Tiw working, where it allows for the character to treat Combat edges as one rank lower. I figure that there are uses for this in other settings/edges.

The timing is so that it will work for an Edge (as that is what the Disciple of Tiw is).

Initialization/2101
Code:
var rank as number
var target as number
rank = herofield[acRank].value
target = 0

if (rank <= 3) then
   rank += 1
   foreach thing in Edge where "EdgeType.Combat"
      target = eachthing.tagvalue[MinRank.?]
      if (rank = target) then
         var ignoretag as string
         ignoretag = "IgnoreRank." & eachthing.idstring
         perform hero.assignstr[ignoretag]
      endif
   nexteach
endif
Validation/100
Code:
var rank as number
var target as number
rank = herofield[acRank].value
target = 0

if (rank <= 3) then
   rank += 1
   foreach thing in Edge where "EdgeType.Combat"
      target = eachthing.tagvalue[MinRank.?]
      if (rank = target) then
         perform assign[Helper.IgnoreRank]
      endif
   nexteach
endif

Evil wins because good rolls poorly .... or the players are not paying enough attention to the game.
SeeleyOne is offline   #25 Reply With Quote