View Single Post
schenn
Member
 
Join Date: Aug 2015
Posts: 32

Old August 31st, 2015, 11:42 AM
If it would work better in the shadowrun forum, then yea. I wasn't sure where to put the thread.

Thanks for your help!

I'm able to get the the attribute values just fine, it's more of an issue of the tracker becoming dynamic and determining when to do math one way and when to do it the other..

This is what I currently have:
Quote:
trustme
var sanity as number
var current as number
var mythos as number

current = field[trkUser].value
if (current <> 0) then
~ How to do equality comparison? The wiki only shows greater than less than and == throws an error
else
sanity = 15 + ((#trait[attrWil] + #trait[attrEssenc]) * 5)
field[trkUser].value = sanity
else
~ The character already had a recorded sanity value.. Let's see if I can figure out what I 'should' do here...
~ We may still be in character creation, in which case we should re-determine the maximum.
~ We may be playing, in which case we should just apply the current value.. This doesn't work as it prevent's the sanity value from changing at all
~ We may be playing in which case, maybe we should re-calculate the current value from a stored starting sanity and a lost sanity tracker?
endif

~ This can be run anytime as the mythos should only be 0 at char creation.
mythos = hero.childfound[trkCthulhu].field[trkUser].value
if (mythos <> 0) then
field[trkMax].value -= mythos
endif

Last edited by schenn; August 31st, 2015 at 11:49 AM.
schenn is offline   #9 Reply With Quote