Quote:
Originally Posted by alucardu
Is there a resource I can see for how to code something? I find it very hard (coming from a Java background...)
I just want to add 4 skill points to the total skill point pool when a certain flaw has been selected.
Through the Skill Point total I found this:
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ Get the class index of the class we selected
var index as number
index = field[pChosen].chosen.field[cClsIndex].value
~ Add skill points appropriately
herofield[tSkTotals].arrayvalue[index] += field[pAdjust].value
But I can't figure out how to change this code to just adding 4 skill points to the current skill point pool.
// edit. Found an older post > http://forums.wolflair.com/showthrea...t=skill+points which showed the code. I would still like to see if there's an source with code examples though.
// edit2. It seems that choosing a flaw automatically adds a feat, is there a way to turn this of?
|
Searching the forums or finding things in core or the community set with similar function is typically your best bet. That said, there are some resources to help out. ShadowChemosh has links to some of these resources in his signature.
In any case, you can control the total feats pretty easily. To reduce the feats by 1, use:
Code:
herofield[tFeats].value -= 1