The ability penalties applied to the player at the beginning of Mask of the Betrayer are achieved by equipping a 'creature hide' on the PC. That prevents resting or restoration spells from removing the penalties. It also has the side effect of causing an exported character to continue to have the penalties, unless you wait until the cutscene that destroys the 'creature hide'.
Hi DannJ,
I can't comment on the MotB method, but adding Extraordinary or Supernatural to the effect as a link will do what you say there too. I would be interested to see what happens and may look at their code at some point. From my own experience, I can confirm adding skins causes the issues I mention ... and are repeatable.
Lance,
to get spellhooking to work on non-player controlled characters, set X2_L_WILD_MAGIC = TRUE on the area-object.
ps. Here's some more goodies for spellhooksGetSpellId(); // returns the SPELL_* constant of the spell cast GetSpellTargetObject(); // returns the targeted object of the spell, if valid GetSpellTargetLocation(); // returns the targeted location of the spell, if valid GetLastSpellCastClass(); // gets the class the PC cast the spell as GetSpellCastItem(); // if an item cast the spell, this function gets that item GetSpellSaveDC(); // gets the DC required to save against the effects of the spell GetCasterLevel(OBJECT_SELF); // gets the level the PC cast the spell as
Hi KevL,
That wild magic point is good to know ... I will try to remember that. Also noted your other hooks.
re: Never add skins to PCs... erm, ooops. Oh well, i'm screwed then. I've used creature hides in a number of places for different effects over the years.
It certainly may explain some strange things that happen with our Lycanthrope playable races : https://github.com/A...rs-PW/issues/86
Hi Loki_999,
I can't say for sure whether it had any effect on what you did. My only suggestion would be to try to do what you intended without PCs wearing skins and see if it does indeed fix the issue you were experiencing.
Cheers,
Lance.





Retour en haut






