Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
MardukBathory
Member
 
Join Date: Jan 2016
Posts: 61

Old February 7th, 2016, 08:06 PM
What about High elves, Dark Elves & Tieflings who aren't in these classes? It's unlikely they'll take this feat but they could.
Quote:
Originally Posted by daplunk View Post
War Caster

ADD Pre-reqs
Message: You must be able to cast at least one spell.
Is Error: Ticked
Highlight Panel: Ticked
Pre-requisite Script:

Quote:
var iTotal as number

iTotal = iTotal + #levelcount[Bard]
iTotal = iTotal + #levelcount[Cleric]
iTotal = iTotal + #levelcount[Druid]
iTotal = iTotal + #levelcount[Sorcerer]
iTotal = iTotal + #levelcount[Warlock]
iTotal = iTotal + #levelcount[Wizard]

if (#levelcount[Paladin] >1) then
iTotal = iTotal + #levelcount[Paladin]
endif
if (#levelcount[Ranger] >1) then
iTotal = iTotal + #levelcount[Ranger]
endif
@valid = 0
if (iTotal >0) then
@valid = 1
endif
MardukBathory is offline   #61 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 8th, 2016, 07:07 AM
Quote:
Originally Posted by MardukBathory View Post
What about High elves, Dark Elves & Tieflings who aren't in these classes? It's unlikely they'll take this feat but they could.
Then you're probably better off looking for at least one spell pick on the hero, than counting Classes tags.
Aaron is offline   #62 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old February 8th, 2016, 01:03 PM
Quote:
Originally Posted by MardukBathory View Post
What about High elves, Dark Elves & Tieflings who aren't in these classes? It's unlikely they'll take this feat but they could.
Here is updated code that checks to see if the race/subrace has a spell attack bonus. if so, then it passes the test.
What's nice about this code addon is that it will function for races not yet in Hero Lab.

Quote:
var iTotal as number

iTotal = iTotal + #levelcount[Bard]
iTotal = iTotal + #levelcount[Cleric]
iTotal = iTotal + #levelcount[Druid]
iTotal = iTotal + #levelcount[Sorcerer]
iTotal = iTotal + #levelcount[Warlock]
iTotal = iTotal + #levelcount[Wizard]

if (#levelcount[Paladin] >1) then
iTotal = iTotal + #levelcount[Paladin]
endif
if (#levelcount[Ranger] >1) then
iTotal = iTotal + #levelcount[Ranger]
endif
if (hero.child[RaceHelper].field[rSpAtk].value >0) then
iTotal = iTotal + 1
endif

@valid = 0
if (iTotal >0) then
@valid = 1
endif

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #63 Reply With Quote
MardukBathory
Member
 
Join Date: Jan 2016
Posts: 61

Old February 8th, 2016, 02:51 PM
Thanks, you're a legend!
MardukBathory is offline   #64 Reply With Quote
daplunk
Senior Member
 
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294

Old February 8th, 2016, 03:44 PM
Very nice - that worked for all the elemental adept feats too!
daplunk is offline   #65 Reply With Quote
blackbloodtroll
Junior Member
 
Join Date: Oct 2011
Posts: 14

Old February 9th, 2016, 11:49 PM
I would like to see if I can give a hand. I suck at using the editor, but I could maybe see what I can do. Can please someone send me, or somehow otherwise give me access to the .dat files?
blackbloodtroll is offline   #66 Reply With Quote
daplunk
Senior Member
 
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294

Old February 10th, 2016, 01:12 AM
At this stage we are in need of people with scripting skills and knowledgeable in the use of the editor.

Unfortunately we cannot give people access at this stage who cannot contributing in this way due to the legal restrictions imposed on us.
daplunk is offline   #67 Reply With Quote
blackbloodtroll
Junior Member
 
Join Date: Oct 2011
Posts: 14

Old February 10th, 2016, 01:35 AM
Well, that's too bad.
blackbloodtroll is offline   #68 Reply With Quote
Elindor
Member
 
Join Date: Feb 2013
Posts: 67

Old February 14th, 2016, 02:30 AM
Quote:
Originally Posted by Mergon View Post
Here is updated code that checks to see if the race/subrace has a spell attack bonus. if so, then it passes the test.
What's nice about this code addon is that it will function for races not yet in Hero Lab.
How about this? just check to see if there are any spells? That way, it will work for all classes and races, and will detect them when added by Feats

Code:
foreach pick in hero from BaseSpell where "!Helper.ItemSpell"
@valid = 1
done
nexteach
Correction, check for any spells which don't come from a magic item...

Last edited by Elindor; February 14th, 2016 at 02:45 AM. Reason: Added qualifier
Elindor is offline   #69 Reply With Quote
daplunk
Senior Member
 
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294

Old February 14th, 2016, 02:31 AM
Hi everyone,

We are very interested in talking to anyone has the following working:

Duel Wielder
Magic Initiate
Martial Adept
Medium Armor Master
Observant
Ritual Caster
Skilled
Spell Sniper
Tavern Brawler
Weapon Master
daplunk is offline   #70 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 08:04 AM.


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