Jump to content

Recommended Posts

Posted

I'm trying to scale the damage of a spell with the player's Destruction and Intelligence using this function.

Sadly, when I try using it, it doesn't work. Can someone direct to or show me an example of this thing? I am puzzled.

Posted

Here's a script that will increase the damage of Flare (the player's starting spell) by 1 every time you press the period key.

 

scn testquestscript

float fquestdelaytime
float tempfloat

Begin GameMode

if (fquestdelaytime != 0.01)
	let fquestdelaytime := 0.01
endif

if (OnKeyDown 52)
	let tempfloat := GetNthEffectItemMagnitude StandardFireDamageTarget1Novice 0
	let tempfloat += 1
	SetNthEffectItemMagnitude tempfloat StandardFireDamageTarget1Novice 0
endif

End

Posted

Oh now I see my mistake. My spell was an ability 5 fire damage constant, and it had to be changed, so I set:

 

SetNthEffectItemMagnitude SomeGiantFactor MySpell 1

 

But for the CS, the first thing is 0 of course.

 

Thanks!

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...