Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Easy Metamagic feat from 3.5 (http://forums.wolflair.com/showthread.php?t=58081)

Jewrrick April 5th, 2017 09:45 AM

Easy Metamagic feat from 3.5
 
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?

Mathias 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.

Silveras 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 :)

Jewrrick April 5th, 2017 10:09 AM

appologies edited the OP

Mathias 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.

Jewrrick April 5th, 2017 11:13 AM

Quote:

Originally Posted by Mathias (Post 247450)
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

ShadowChemosh April 5th, 2017 11:20 AM

Quote:

Originally Posted by Jewrrick (Post 247452)
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. :)

Jewrrick April 5th, 2017 11:25 AM

Quote:

Originally Posted by ShadowChemosh (Post 247454)
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.

ShadowChemosh April 5th, 2017 11:32 AM

Quote:

Originally Posted by Jewrrick (Post 247457)
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.

Jewrrick April 5th, 2017 11:35 AM

Quote:

Originally Posted by ShadowChemosh (Post 247459)
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.


All times are GMT -8. The time now is 03:08 AM.

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