Senior Member
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858
|
Very strange - since you indicated that it was working, I went back and put that if/then that I posted first and it did work. It does not work with a masterwork version of the weapon, though.
I know I was using a normal weapon when I was making the scizore version; it's entirely possible I was jumping the gun and using a masterwork version to test my original tries. Apologies for that. OK, so that first if/then works with the regular version of the weapon. Now how do I go about making it work with the masterwork/special material/bonded item versions? Here's the script I'm using in its entirety (Phase: Post-Attributes (Users), Priority 10000): Quote:
Last edited by Maidhc O Casain; May 23rd, 2011 at 11:50 AM. |
|
#11 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
Have you looked at other weapons with scripts? The lance, for example? There's a special way you have to reference things while a weapon is within a Custom/Magic weapon.
If you accidently left Total defense active at the end of a fight, and before the next fight you re-print your character sheet, do you want to see the effects of Total Defense? The printout is for the base version of the character, so all the things in the condtion tab turn off their effects when you're printing your character or a statblock. Those feats like two-weapon defense that depend on conditions should also check the same thing - otherwise, you'd add the benefits of the feat while fighting defensively, without the AC bonus of fighting defensively itself. |
#12 |
Senior Member
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858
|
re: Output Mode - Gotcha. Thanks for explaining that.
I'll take a look at the lance and see what I can puzzle out. |
#13 |
Senior Member
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858
|
OK, I think I've got it. I added the condition for the weapon being magic, and also cleaned up my original script a little to make it more elegant.
This seemed to work in my test - could you take a look and see if I covered everything? Quote:
|
|
#14 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
You said this weapon was two-handed. If it weren't - if it could be wielded in the off-hand, you'd also need to check if it was equipped in that hand:
Code:
field[gIsEquip].value + field[wIs2nd].value <> 0 Code:
container.parent.field[gIsEquip].value + container.parent.field[wIs2nd].value <> 0 |
#15 |
Senior Member
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858
|
Thanks again, Matthias!
|
#16 |
Thread Tools | |
Display Modes | |
|
|