Closed canerksk closed 2 weeks ago
You can control poison behaviour with SpellEffectTick trigger https://wiki.spherecommunity.net/index.php?title=@SpellEffectTick
Additional notes:
These triggers fires on the following spells and any custom spells with the SPELLFLAG_TICK:
Poison: You can now change the damage and damage type by changing the local.effect and local.damage value in these triggers.
Strangle and Pain Spike: You can now change the damage and damage type in these triggers.
Regeneration: A Sphere custom spell, you can change the healing value by changing the local.effect value.
Hallucination: A Sphere custom spell, you can change the duration of the hangover by using local.charges and local.delay.
Alchool: Unlike in real life, you can change the duration of the hangover by using local.charges and local.delay.
Custom Spells: Simply add SPELLFLAG_TICK to the spell spellflags. By default every spell memory starts with one charge.
Spells with SPELLFLAG_HARM and local.damagetype set will cause damage every local.delay seconds.
Spells with SPELLFLAG_HEAL will heal hitpoints every local.delay seconds.
Remember that is not mandatory to use SPELLFLAG_SCRIPTED to make a custom spell, you can just use a spell id higher than 1055, usually i choose 2000.
What is mentioned here is not the poison that hits the person, but the morez value remaining on the weapon. It is the number of morez that will decrease with each hit.
Technically if you want to customize poison level on every hit, you can just check if player has poison, and just do -morez for it, we really don't need to add local for this at all.
On=@Hit
IF (<FINDID.i_rune_poison>)
FINDID.i_rune_poison.MOREZ -= <R2>
ENDIF
When I hit a player with a sold weapon, I don't want to check the poison on the player, I want to check the remaining level in the weapon morez of the attacker.
pWeapon->m_itWeapon.m_poison_skill -= ReduceWeaponPoisonCharges;
Weapon m_poison_skill = weapon morez level
In other words, I want to adjust how much the poison level of that weapon will decrease when someone is shot with the weapon sold.
Closing as addressed.
This incident has always been a bleeding wound in the sphere. I put deadly poison on my weapon and with one hit the poison level (morez) would either drop to very ill or sickly. I think we should be able to adjust the amount of poison level that will drop ourselves.
eg;
under @Hit trigger
eg;
The codes here are purely examples. Although many have been tested, some may need to be rewritten.