Aller au contenu

Photo

Preventing Poisons from Stacking and Freebie Q


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Midgetface

Midgetface
  • Members
  • 78 messages
 Hey, I'm trying to make a mod to balance poisons and prevent them from stacking, but I can't really find a way to do the latter.

I did find this code in the toolset: Ability_PreventAbilityEffectStacking

How would I go around using that? In an ideal world, it would work like:

Ability_PreventAbilityEffectStacking = Poison

and it would prevent all abilities with "= Poison" from stacking with each other, but I'm not getting my hopes up.


Another Q: does ATTRIBUTE_WIL exist as a shortcut for willpower?

#2
Midgetface

Midgetface
  • Members
  • 78 messages
Figured this out on my own :3

#3
Xeddicus_Xor

Xeddicus_Xor
  • Members
  • 3 messages
Mind telling what you edit to change the duration of the poisons?

Figured I'd update this in case anyone else was looking for this information: The durations are in item_constants_h.

I found them doing the following:

Open up item_singletarget.nss in the toolset, do a search for a partial poison name, something to find the poison section ("venom" for example). Once you find an entry for a poison the 2nd line will start with "ApplyEffectOnObject". Find the XXXXX_DURATION ("VENOM_DURATION" in this case) variable. Left click to make sure the cursor is actually over the XXXX_DURATION or just highlight the entire thing, then right click it and pick "Go to definition." and there it is. change it to whatever you'd like then just export item_singletarget and put it in your override folder.

Modifié par Xeddicus_Xor, 10 janvier 2010 - 09:06 .