Jump to content

detecting Stoneskin


Recommended Posts

Posted

I was made to understand by... something, I forget... that Stoneskins apply stat 88 to the affected person.  I would like to detect whether any skins are left, in order to make other aspects of the spell last as long as you have skins.  But when I casts Stoneskin and save the game, when I look at the creature in NI I don't see anything about stat 88.  There is an opcode 218 effect... is stat 88 implied?  My extra effects don't expire when you run out of skins, so I don't think it is. 

What about the other Stoneskin effect?  Could that be used for this?  Doesn't it have some kind of detectable aspect?

Posted

Most stats above #43 are not directly visible in-game or in the save file.

op218 maintains stat 88 to the amount of skins left.

op314 maintains stat 199 to the amount of skins left.

Posted (edited)

Huh. I have this:

- Add to spwi408 an effect with opcode 328: target 1, timing 0, duration 3600, param1 = [new_spellstate], special = 1

- Add to spwi408 an effect with opcode 177: target 1, timing 0, duration 3600, res ~d5stskn~

- d5stskn.eff = opcode 232, target 1, condition = hp < 102, res ~d5Nstskn~

- d5Nstskn.spl has:

...opcode 318, target 1, condition = stat 88 >= 1, res ~d5Nstskn~

...opcode 321, target 1, timing 1, res ~spwi408~

The idea is, when you run out of stoneskins stat 88 should drop to 0, and spwi408 should be canceled, and you should no longer have the new_spellstate. 

I have this sort of thing working perfectly with invisibility spells. But with the above setup the new_spellstate remains after all the skins are gone. (I know there should be a delay of a few seconds, but I tested to ~45 seconds out.)

Worth saying: the specific goal is to make a new “Improved Stoneskin” spell, which is stoneskin but which adds Protection from Missiles and blocks elemental/magic damage from melee weapons. I’ve got it working, just need to make sure those effects go away when you have no skins left. 

Edited by subtledoctor
Posted

condition = hp < 102 or condition = hp% < 102

Otherwise I don't know why it's failing for you - it works fine for me.

Testing it with op324(immunity feedback) instead of 318 might help locate the problem.

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...