View Single Post
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