Jump to content

Cloak of the Wolf - issue with Fixpack component "allow arbitrary return-to-human form from clock of the wuff"


Recommended Posts

The following Fixpack item:

// allow arbitrary return-to-human form from clock of the wuff
// see also clck04.itm, shapeshifting spell batch
COPY_EXISTING ~wolfm.itm~ ~override/cdwolfm.itm~
  LPF ADD_ITEM_EQEFFECT INT_VAR opcode = 60 target = 1 timing = 2 parameter1 = 100 END
  LPF ADD_ITEM_EQEFFECT INT_VAR opcode = 60 target = 1 timing = 2 parameter1 = 100 parameter2 = 1 END
  LPF ADD_ITEM_EQEFFECT INT_VAR opcode = 53 target = 1 timing = 2 parameter1 = 31488 END
  LPF ADD_ITEM_EQEFFECT INT_VAR opcode = 44 target = 1 timing = 2 parameter1 = 18 parameter2 = 1 END
  LPF ADD_ITEM_EQEFFECT INT_VAR opcode = 15 target = 1 timing = 2 parameter1 = 17 parameter2 = 1 END
  LPF ADD_ITEM_EQEFFECT INT_VAR opcode = 215 target = 1 parameter2 = 1 duration = 117 timing = 3 STR_VAR resource = sppolymp END
  LPF ADD_ITEM_EQEFFECT INT_VAR opcode = 215 target = 1 parameter2 = 1 duration = 117 timing = 3 STR_VAR resource = polyback END

is problematic on the classics because "Timing mode: Delay/Limited - 3" expects two parameters: one for the delay before applying the effect (set to 117 in the example above), and one to determine the effect's duration after applying. The classic engine does not allow for setting the latter, resulting in a bug whereby the visual effect for polymorphing into and from the wolf form keeps playing at regular (and frequent) intervals until you unequip the cloak (and keeps going for some time even after you do.)

The Enhanced Editions apparently do not suffer from the same bug, but it might be worth skipping this fix on the classics.

However there is a second bug with this cloak that affects classics and Enhanced Editions alike: if you save and reload while in wolf form, the engine re-scans item effects and reapplies them, thus duplicating the effects from CDWOLFM.ITM over and over. While the Enhanced Editions could fix this if someone were so inclined as to report this on their forums (I'm not), on the classics I would simply add a note to the readme that describes the bug and warns against saving and loading while in wolf form.

 

Huge thanks to Insomniator for looking into this bug and documenting the root causes.

Edited by Andrea C.
Link to comment

I would also suggest to add this to the list of the effect:

LPF ADD_ITEM_EQEFFECT INT_VAR opcode = 144 target = 1 timing = 2 parameter1 = 100 END

and point out in the item's description the duration of the transformation.

Edited by Salk
Link to comment

Well, we've got two ways to go here, and I'm open to feedback as the current solution isn't fully working.

  1. We can eliminate the option for the at-will return-to-natural-form shapeshifting. This brings the cloak a little more in line with its original specs and solves the current issues.
  2. We remove the time limit outright and treat it like a druid shapeshift, where the player stays in wolf form until they choose to return. From a coding perspective this is the easiest solution as it just turns the cloak into another item in the shapeshifting list. While it's a little bit more of a departure from the original item as-coded, it doesn't necessarily conflict with the item description.

In either case, we still move the relevant bonuses to the paw (since we still have the dispel magic vs. magically created weapons bug sans TobEx).

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...