|
Member
Join Date: Feb 2013
Posts: 76
|
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? RW Projects: Shadowrun, Earthdawn, 3x D&D5 Games: D&D5, SR5, Baker Street, Numenera, Alternity, Dresden Files, Earthdawn |
#1 |
Senior Member
Join Date: May 2016
Posts: 608
|
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.)
Code:
~ 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 |
#2 |
Member
Join Date: Feb 2013
Posts: 76
|
Thanks so much! That worked perfect.
RW Projects: Shadowrun, Earthdawn, 3x D&D5 Games: D&D5, SR5, Baker Street, Numenera, Alternity, Dresden Files, Earthdawn |
#3 |
Thread Tools | |
Display Modes | |
|
|