PDA

View Full Version : Checking that a certain knowledge skills is at the correct die type


Praetor
August 24th, 2011, 11:57 AM
CapedCrusader posted the way to find if a certain knowledge skill existed, but how would I find out if a certain knowledge skill was at the correct die type.

Such as PreReq of an edge is Knowledge "Battle" D6

Thanks

tatteredking
August 31st, 2011, 04:03 AM
let me check my code here....

This is an example of a Pre-req of Knowledge(Astronomy) d10+

foreach pick in hero where "thingid.skKnow"
if (compare(lowercase(eachpick.field[domDomain].text),"astronomy") = 0) then
validif (eachpick.field[trtFinal].value >= 5)
endif
nexteach

CapedCrusader
August 31st, 2011, 04:44 AM
Thanx, King...

Praetor
August 31st, 2011, 01:45 PM
Thanks much king I have saved this under my mechanics file.

tatteredking
September 1st, 2011, 03:19 AM
not a problem!