Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old November 20th, 2017, 06:11 PM
I am writing a pre-req script, this is what I have;

Code:
        var allowed as number
        var taken as number
        allowed = 1
        var classcheck as string
        var levels as number
        classcheck = "Gladiator"
I want to change the "allowed = 1" to "allowed = CON Modifier" but I am uncertain how to alter this script to do that, can anyone help?
ErinRigh is offline   #1 Reply With Quote
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old November 20th, 2017, 06:54 PM
If you recall one of my previous comments, you can "Enable Data File Debugging" from the "Develop" menu, then right-click on "CON" and select "Show Debug Fields for Constitution".

That will show you the various fields associated with Constitution.

Then you can view this link to see how to reference variables: http://forums.wolflair.com/showthread.php?t=21663
EightBitz is offline   #2 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old November 20th, 2017, 08:00 PM
Got it thanks mate
ErinRigh is offline   #3 Reply With Quote
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632

Old November 21st, 2017, 07:53 AM
So you can only take a number of levels in gladiator equal to your CON modifier? Thats an interesting concept. Kinda like it.
TobyFox2002 is offline   #4 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old November 21st, 2017, 08:34 AM
Actually, your Con modifier dictates how many times you can take the custom ability which indicates your bonus
ErinRigh is offline   #5 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 21st, 2017, 09:07 AM
Quote:
Originally Posted by ErinRigh View Post
Code:
        var allowed as number
        var taken as number
        allowed = 1
        var classcheck as string
        var levels as number
        classcheck = "Gladiator"
Do you have more to this script? Logically the above does well nothing.

Also are you calling the Ultimate Psionics Pre-Req procedure for a class that has nothing to do with Psionics?

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #6 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old November 21st, 2017, 03:57 PM
That piece of script was just to show what I was looking for, but yes apparently I am calling up Psionic Prereqs
ErinRigh is offline   #7 Reply With Quote
Reply

Thread Tools
Display Modes

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 02:58 AM.


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