Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old December 19th, 2016, 04:42 AM
Quote:
Originally Posted by alucardu View Post
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
Sendric is offline   #11 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:31 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.