SphereCommunity
Spell strength - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Spell strength (/Thread-Spell-strength)



Spell strength - WRWR - 09-04-2012 10:30 PM

Spell strength, have one question about it
i want to make fixed value to effect but use it in calculation in @SPELLEFFECT

now if i set value EFFECT=5
calculation ARGN2 in @SPELLEFECT just ignored, and effect always 5 Confused


RE: Spell strength - darksun84 - 09-04-2012 11:35 PM

Where do you check the new value of effect?


RE: Spell strength - WRWR - 09-05-2012 03:10 AM

ingame
For example
if i set effect=5
and add to
@SPELLEFFECT
ARGN2 *=100
its just ignore calculation


RE: Spell strength - darksun84 - 09-05-2012 04:12 AM

Spell Strenght even if you set it, it's still influenced by your intelligence value and magery.

In fact if we try with int 0, magery 10.0 (that the minimum for magic arrow )

20:11:50 Effect Before 100
20:11:50 Effect After 1000 //multiplied by 10
20:11:100 Effect Spell : 1000
20:11:(WL_Combat.scp,74)Damage 1000

This test was done with spellflag_scripted btw!

Instead, without spellflag_scripted, magery and intelligence influence the effect in a different way.

If we have a base value of effect = 10 no matter of how much we modify the effect , the result will be always 10(with damage_god flag)

But if we have 10,15 as base value effect, more the strenght of spell is higher (argn2) more the chance we will get a value near 15!

This is the proof
Test 1 :

Int 0(so no bonus on spellstrenght) , Magery 100.0
Magic Arrow base Effect : 10,15

20:32:50 Effect Before 1000 -> Spell Strenght : magery of 100.0
20:32:50 Effect After 100 -> Spell Strenght set to 10.0, the minum magery requested for magic arrow
20:32:100 Effect Spell : 100-> How Spell Strenght appear on @Effect
20:32:(WL_Combat.scp,74)Damage 10 <- the minum damage for magic arrow

Test 2
Int 0 (as before), Magery 10.0
Magic Arrow base Effect : 10,15

20:40:50 Effect Before 100 -> Magery 0f 10.0
20:40:50 Effect After 1000 -> Argn2 set to 100.0
20:40:100 Effect Spell : 1000 -> As Before
20:40:(WL_Combat.scp,74)Damage 14 <- More Spell Strenght more is the chance we will get a value near 15!

Test 3

Int 0 , Magery 10.0 Magic Arrow Effect : 10,15

20:43:50 Effect Before 100 -> Mine magery of 10.0
20:43:50 Effect After 100 -> This time ARGN2 is not changed
20:43:100 Effect Spell : 10 -> As written above
20:43:(WL_Combat.scp,74)Damage 10 -> We will get always the minimum damage