HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Abilities sticking when items removed.

08-20-2006, 01:49 AM#1
Moss
I just realized that removing a just-bought (or presumably just acquired) item with triggers causes its abilities to stick on the hero even though the item is gone. Is there a way to avoid this? Waiting 0 seconds doesn't help. I guess this could be an alternative exploit to adding invisible abilities with Spellbook. Does anybody know about this? Is there pros and cons?

Currently to avoid this problem I have to have "display" versions of the items in the stores with no actual abilities and then if the hero has the ingredients required for the item it is swapped with the real version of the item, otherwise the dummy item is removed with no abilities to stick. That is the best I can do but it is annoying to have two versions of all the items.
08-20-2006, 02:16 AM#2
Ignitedstar
I think that's how most RPG's do it. And AOS's. They created two versions of the same item. If the right conditions aren't met through triggers, then you get the "fake" version. If they are met, you get the real version.

Maybe- just to make sure, you can use the "Unit - Remove Ability" of that same ability to make sure the hero doesn't have it anymore?

I don't think it makes the game lag(or crash) if the ability isn't there in the first place.
08-20-2006, 02:26 AM#3
Moss
Removing the ability seemed to be buggy when I tried it, as in sometimes it had no effect, the ability stayed. And that could probably cause problems when the hero already does have that abilty from another item or something. Maybe it is best to just do it the way I am.
08-20-2006, 05:12 AM#4
karukef
How about making the hero DROP the item instead, and then remove the item upon the drop-event?
08-21-2006, 06:19 PM#5
Moss
Hey, that's worth a try.
08-22-2006, 06:10 PM#6
Moss
Ok actually the problem only occurs when the item is sold. I guess my triggers are removing the item before the hero actually acquires it which causes this strangeness. So I am trying to flag it to be remove once it is acquired rather then just removing it right away. That works fine except it is causing other complications with my recipe functions.