I'm using the GURPS framework, which I think was made by someone named Winter way back now. Don't think that actually matters for my question though.
There is something that's bugging me. There is a "Success_Roll" macro, which has the following code:
Code: Select all
[h:SkillLevel=Skill_Level]
[h:Mod = Modifier]
[h:Skill = SkillLevel+Mod]
[h:Roll = 3d6]
[h:CritFailThreshold = if(Skill<16,min(Skill+10,17),18)]
[h:CritSuccessThreshold = max(min(Skill-10,6),4)]
[h:SuccessCheck = if(Roll <= min(Skill,16),1,0)]
[h:CritSuccessCheck = if(SuccessCheck && Roll <= CritSuccessThreshold,1,0)]
[h:CritFailureCheck = if(SuccessCheck < 1 && Roll >= CritFailThreshold,1,0)]
[h:MoS = Skill-Roll]
[h:BGColor=if(MoS>=0,"green","red")]
[h:dude=token.name]
[h:AbsResult = abs(MoS)]
<span style="font-size:12 pt"><i>{dude}</i> rolls 3d6 and gets <b>{Roll}</b> vs. Skill (<b>{SkillLevel}</b> with a modifier of {Mod})<br>
<table border="0" width=100%><tr bgcolor="{BGColor}"><td style='padding:0px 2px'; width=100%><center><span style="color:white;font-size:12 pt"><i>{dude}</i> {if(CritSuccessCheck,' <b><i>CRITICALLY SUCCEEDS</b></i> ',if(SuccessCheck, ' <b>SUCCEEDS</b> ' ,if(CritFailureCheck,' <b><i>CRITICALLY FAILS</b></i> ' , ' <b>FAILS</b> ' )))} by <b>{AbsResult}</span></center></b></td></table><br>
I'm a beginner at scripting, and I'm hoping this is just a small change to this macro, rather than a redesign from square one.
Thanks.