Aller au contenu

Photo

a stoneskin like spell that will not let you access the inventory? (like a polymorph)


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Antares

Antares
  • Members
  • 51 messages

hello,

I am editing some spells. Now my stonesking grants a +5 natural armor bonus, and a 10 damage resistance against all weapons for 5 minutes. I move at half speed.

Since it does not disappear when an amount of damage is reached, I'd like to balance the spell preventing the characters from accessing the inventory (all on the pc loofs of stone, after all)

I tried some Polymorph effects, with no actual shapechange,

Immagine_h.jpg

it works, but when the pc is engaged in melee combat, or casts an offensive spell against targets, he can access again the inventory (the purple icon that indicates the pc is subject to polymorph, is still next to the pc portrait, but I don't have anymore the option to cancel the polymorph effect)

 

Is this possible?



#2
Psionic-Entity

Psionic-Entity
  • Members
  • 195 messages

It depends on how far down the rabbit hole you're willing to go.

 

For starters you could try some tweaks to the polymorph effect. My first go-to would be to create new appearances to which you get polymorphed. Start with say, Human. Make a new appearance.2da row for the human and see if you can tweak some settings so that polymorphing to that appearance works.

 

If you can't make it work with appearance.2da it's still possible but a lot more difficult. It's easy enough to edit the inventory UI to make it not open while you're under certain state effects, but you'd also need to copy every spell script in the game to your module and edit the spellhook if you really wanted to disable things like potion use. For item equipping issues you'd also have to write something in to the equip hooks to prevent hotbar equipping. All in all a very patchwork solution.


  • Antares aime ceci