Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old April 19th, 2016, 12:16 PM
I am trying to find the fields (or array) that tracks how many spells a hero can cast per spell level.

ie: 5th level caster - 4 x 1st, 3 x 2nd, 2 x 3rd

I'm trying to create an item that grants +1 to the number of 1st level spells a hero can cast.

For example a hero who is a 5th level caster would have 5 x 1st, 3 x 2nd, 2 x 3rd with this item.

I've found a set of children on hero called: SlotHold1 through SlotHold9 that I thought would do the trick.Each has a field named MaxAllow that I thought could e incremented, but I've had no luck.

Here is the code I am using atm:

Phase: Post-Level, Priority: 21000

Quote:
~ If not equipped, get out now!
doneif (field[gIsEquip].value = 0)

~ If not attuned, get out now!
doneif (field[gIsAttuned].value = 0)

~ if not a spellcaster, get out now!
doneif (tagis[Hero.Caster] = 0)

~perform linkage[table].setfocus
~doneif (state.isfocus = 0)

var iLevel as number
iLevel = herofield[tMaxCaster].value

if (iLevel >= 1) then
hero.child[SlotHold1].field[MaxAllow].value += 1
endif

if (iLevel >= 3) then
hero.child[SlotHold2].field[MaxAllow].value += 1
endif

if (iLevel >= 5) then
hero.child[SlotHold3].field[MaxAllow].value += 1
endif

if (iLevel >= 7) then
hero.child[SlotHold4].field[MaxAllow].value += 1
endif
This items should add +1 to the number of spells that the wielder could cast per level of spells he can cast to a max of 4th level spells.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #1 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old April 19th, 2016, 12:19 PM
Forget it, I found my problem right after posting this. I was looking for tagis[hero.Caster] on the item, not on the hero . .. <bah.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 19th, 2016, 01:06 PM
Quote:
Originally Posted by Mergon View Post
Forget it, I found my problem right after posting this. I was looking for tagis[hero.Caster] on the item, not on the hero . .. <bah.
Rubber ducking debugging is working!

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   #3 Reply With Quote
daplunk
Senior Member
 
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294

Old April 19th, 2016, 02:34 PM
haha - the quickest way to solve any issue that i have found is to post it here and then /facepalm as you stare at the solution.
daplunk is offline   #4 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old April 19th, 2016, 02:38 PM
Tell me about it.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #5 Reply With Quote
Hollis
Senior Member
Lone Wolf Staff
 
Join Date: Aug 2012
Posts: 779

Old April 19th, 2016, 02:39 PM
I've never come across the term 'Rubber duck debugging' before, but I shall treasure it henceforth! Right up there with 'bit bucket.' (No, not the website. Think punch cards.)
Hollis is offline   #6 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old April 19th, 2016, 02:41 PM
<ack> Punch card.

The year is 1981, I just finished a 1200 card program. I'm takign the stairs from the building's cafeteria to the auditorium for a math course . . .

Card box slips and spills its contents does the stairs . . .

<cry>

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #7 Reply With Quote
Dark Lord Galen
Senior Member
 
Join Date: Jul 2012
Location: Texas
Posts: 707

Old April 19th, 2016, 05:35 PM
@ Mergon.... you're dating your self :O) ( I feel your pain by the way... ) only you left out the part where it was raining and the wind just blew the cards across campus... and AFTER your FINALLY gathered, replaced and resorted and debugged your cards your realize after many midnight hours in the computer lab (because no one had a computer then) ONE card was missing or has a crease the width of a hair that makes it a "null error"......

And since it is certain that some wont fully understand the Mergon Dilemma.....

Translation for all you Millennials...

Mom got tired of the way your room "looked" and shuffled and put all your magic, pokemon, baseball AND those special "foil cards" that are "collectors" into one box to get them "organized"...

And somewhere within that single box, is that "epic deck" you built for the tournament TONIGHT.

D&D> Pre 1e White Box Edition, 1e, 2e, 3.5 Currently, Set in the World of Greyhawk (The first, longest running and Best Campaign Setting)
Software>Extensive use of all forms of MS Products, Visual Studio 2012, DAZ 3d, AutoCAD, Adobe Products.
Gaming Specific>Campaign Cartographer, D20 Pro Alpha & BattleGrounds Beta Tester, World Builder, Dungeon Crafter, LWD Hero Lab, Realm Works, Inkwell Ideas Citybuilder & Dungeon Builder, Auto-Realm, Dundjinni
Contributing Writer for TSR, WOC, & Canonfire
Dark Lord Galen is offline   #8 Reply With Quote
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633

Old April 21st, 2016, 09:13 PM
Punch cards, you guys shouldn't carbon date yourselves online. I was perfectly fine listening to my professors discuss punch cards as a thing of the past while using Mathematica to run 2 lines of code of solve complex iterative method problems. My university still has punch card machines in a museum like display on the first floor of the computational sciences building though. Boo Fortran, Boo I say!

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.
RavenX is offline   #9 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old April 21st, 2016, 11:56 PM
PL/C ftw

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #10 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 12:54 AM.


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