Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   Goliath Weapon & the editor (http://forums.wolflair.com/showthread.php?t=59831)

Redjack December 28th, 2017 06:02 PM

Goliath Weapon & the editor
Over the Christmas break I've dug into the editor and made a fair bit of headway in a number of areas. I have one that I'm scratching my head on:

I have a Warhammer +1, attunement optional. Null sheen.

I want to have it so that if a Goliath attunes it, it becomes a +2 warhammer instead. How would I make that work?

dungeonguru December 29th, 2017 05:13 AM

This is a basic script to do this to a magic weapon that has the Bonus set to 1 (as a default). The script only runs if the weapon is equipped and attuned and the hero is a Goliath. (Hint: To find a given race tag, you need to go into the Develop menu -> Floating Info Windows -> Show Hero Tags. If you type IsRace in the debug window you can see what race is applied to a hero.)


~ quit if not equipped
doneif (field[gIsEquip].value = 0)
~ quit if not attuned
doneif (field[gIsAttuned].value = 0)
~ quit if not Goliath
doneif (hero.tagis[IsRace.r5CEEGolia] = 0)

~ if we got past the quit options, add +1 to the weapon bonus
field[Bonus].value += 1

Timing Wise, you can put this post-attribute/10000, which is after attributes are calculated, but before final bonuses are calculated for magic weapons (which if i remember is in final phase).

Redjack December 29th, 2017 10:11 AM

Thanks so much! That worked perfect.

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

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