Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Jewrrick
Member
 
Join Date: Jan 2015
Posts: 34

Old April 5th, 2017, 09:45 AM
I'm trying to add this, and I am close but can't seem to get the drop down box to give me options.

Easy Metamagic
Type: Metamagic
Source: Dragon #325

One of your metamagic feats is easier to use.
Prerequisite: Any other metamagic feat.
Benefit: Choose a metamagic feat you already have. When preparing or casting a spell modified by that feat, lower the spell-slot cost by one. You can never reduce the spell-slot cost below one level higher than the spell's actual level. For example, taking this feat for the Quicken Spell feat reduces the spell slot cost of a quickened spell from four levels higher than the spell's actual level to three levels higher than the spell's actual level.
Special: You can gain this feat multiple times. Each time you take this feat, you must choose a new metamagic feat.

Here is what I have so far for the eval script:

Quote:
var Lvl as number
var LvlRed as number
var MMg as string
var nlvl as number
var BLvl as number

doneif (field[usrChosen1].ischosen = 0)

MMg = field[usrChosen1].chosen.field[mmAbbr].text

foreach pick in hero where "NeedHelper.CustomSpl"
~Grab current level of the customized spell
Lvl = eachpick.field[sLevel].value
LvlRed=0
~Need the level of the base spell; I anticipate that this foreach
~will only find one thing.

foreach pick in eachpick.gizmo from BaseSpell
BLvl=eachpick.field[sLevel].value
nexteach

~Look for the metamagic chosen within the gizmos
foreach pick in eachpick.gizmo from BaseMetamg
if (compare(eachpick.field[mmAbbr].text,MMg) = 0) then
LvlRed += 1
endif
nexteach

nlvl=maximum(Lvl-LvlRed,BLvl)
perform eachpick.delete[sLevel.?]

~Set the field.
eachpick.field[sLevel].value=nlvl

~Set the correct tag
if (eachpick.field[sLevel].value = 0) then
perform eachpick.assign[sLevel.0]
elseif (eachpick.field[sLevel].value = 1) then
perform eachpick.assign[sLevel.1]
elseif (eachpick.field[sLevel].value = 2) then
perform eachpick.assign[sLevel.2]
elseif (eachpick.field[sLevel].value = 3) then
perform eachpick.assign[sLevel.3]
elseif (eachpick.field[sLevel].value = 4) then
perform eachpick.assign[sLevel.4]
elseif (eachpick.field[sLevel].value = 5) then
perform eachpick.assign[sLevel.5]
elseif (eachpick.field[sLevel].value = 6) then
perform eachpick.assign[sLevel.6]
elseif (eachpick.field[sLevel].value = 7) then
perform eachpick.assign[sLevel.7]
elseif (eachpick.field[sLevel].value = 8) then
perform eachpick.assign[sLevel.8]
else
perform eachpick.assign[sLevel.9]
endif
nexteach


any ideas?

Last edited by Jewrrick; April 5th, 2017 at 10:10 AM.
Jewrrick is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old April 5th, 2017, 09:51 AM
Please include the text of the feat you're trying to implement, so we know what this script is trying to do, and please include the phase & priority you've assigned to this script, because when you're trying to accomplish this is important if you're trying to change the effective level of a spell.
Mathias is offline   #2 Reply With Quote
Silveras
Senior Member
 
Join Date: Aug 2010
Posts: 1,528

Old April 5th, 2017, 09:53 AM
You will probably get more help if you add what the Feat actually does to your post. Some don't have all of the old books, and others may not remember that particular feat or what book it is in. The more difficult it is to even know what you're trying to do, the more people who just don't have the time to try to figure that out before they can even think about answering.

And ninja'd
Silveras is offline   #3 Reply With Quote
Jewrrick
Member
 
Join Date: Jan 2015
Posts: 34

Old April 5th, 2017, 10:09 AM
appologies edited the OP
Jewrrick is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old April 5th, 2017, 11:06 AM
I recommend searching custom spells, and then searching inside them for the metamagic picks that match that particular metamagic, and then change the field on that, so that HL sees that this is a +1 effective level metamagic, instead of a +2, rather than trying to change the spell's level.

Changing it at the metamagic level also makes it easy to implement the "min +1" restriction - something = minimum(something - 1, 1)

You also haven't included the phase & priority, so I can't tell if your script is running at the right time.

Also, that script has nothing do to with whether the dropdown will give you options - that script is taking the result from the user's selection in the dropdown and doing things with it.
Mathias is offline   #5 Reply With Quote
Jewrrick
Member
 
Join Date: Jan 2015
Posts: 34

Old April 5th, 2017, 11:13 AM
Quote:
Originally Posted by Mathias View Post
I recommend searching custom spells, and then searching inside them for the metamagic picks that match that particular metamagic, and then change the field on that, so that HL sees that this is a +1 effective level metamagic, instead of a +2, rather than trying to change the spell's level.

Changing it at the metamagic level also makes it easy to implement the "min +1" restriction - something = minimum(something - 1, 1)

You also haven't included the phase & priority, so I can't tell if your script is running at the right time.

Also, that script has nothing do to with whether the dropdown will give you options - that script is taking the result from the user's selection in the dropdown and doing things with it.
It's already done in the d20(3.5) part of HL, I just need to figure out how to convert that to the Pathfinder side.

Phase is pre-levels and priority 5000

I have successfully added the feat to the program and can choose the feat from the list of feats. I am just lacking being able to choose a metamagic feat for Easy Metamagic to affect.

I'm not sure if I'm being clear but it should work similar to Spell focus where you choose a school and get +1 to DC. Except here you choose a Metamagic feat and get -1 to spell level not to go less than +1

Last edited by Jewrrick; April 5th, 2017 at 11:20 AM.
Jewrrick is offline   #6 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 5th, 2017, 11:20 AM
Quote:
Originally Posted by Jewrrick View Post
It's already done in the d20(3.5) part of HL, I just need to figure out how to convert that to the Pathfinder side.
You re-write the script from scratch. Pathfinder and d20 are two totally different HL game systems with almost NO similarity. I am not talking about rules I am talking about the scripts that are built on different components.

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   #7 Reply With Quote
Jewrrick
Member
 
Join Date: Jan 2015
Posts: 34

Old April 5th, 2017, 11:25 AM
Quote:
Originally Posted by ShadowChemosh View Post
You re-write the script from scratch. Pathfinder and d20 are two totally different HL game systems with almost NO similarity. I am not talking about rules I am talking about the scripts that are built on different components.
Well suck... I mean, I feel like I'm close but I'm not real sure where to go from here.
Jewrrick is offline   #8 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 5th, 2017, 11:32 AM
Quote:
Originally Posted by Jewrrick View Post
Well suck... I mean, I feel like I'm close but I'm not real sure where to go from here.
Is the above code copy/pasted from d20? It looks like most would work in Pathfinder.

I would follow what Mathias said above. He is saying to modify the selected Metamagic values instead of trying to modify the spells.

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   #9 Reply With Quote
Jewrrick
Member
 
Join Date: Jan 2015
Posts: 34

Old April 5th, 2017, 11:35 AM
Quote:
Originally Posted by ShadowChemosh View Post
Is the above code copy/pasted from d20? It looks like most would work in Pathfinder.

I would follow what Mathias said above. He is saying to modify the selected Metamagic values instead of trying to modify the spells.
it's c/p from d20 that I have started reworking to use in Pathfinder.
Jewrrick is offline   #10 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 06: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.