Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old December 12th, 2010, 11:13 AM
I need to disable the effects of items suppressed by script:

I tried this:
foreach pick in hero from BaseEquip
if (each.field[gIsEquip].value <> 0) then
each.field[gIsEquip].value = 0
endif
nexteach

This didn't work because it said it was derived.

I also tried these:
perform each.assign[Helper.Suppress]
perform each.delete[thing.activated]
perform each.delete[Helper.ShowSpec]

None of these worked either. I think most of the scripts use gIsEquip to apply their effects, so I need a way to change the derived field gIsEquip on other items as long as the effect is activated from the template.

It works if I put "trustme" before, but when I remove the template there is nothing to re-equip the items that were unequipped.

1) Is there a better way to temporarily "unequip" an item until an effect causing the unequip event is removed?

2) Is there a way to run a script on the removal of a template?

Last edited by risner; December 12th, 2010 at 11:38 AM.
risner is offline   #1 Reply With Quote
 


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 01:54 AM.


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