I want to edit the true strike spell.
I want to make it depending on GetCasterLevel.
I assume I will have to make some "if" conditions like
if GetCasterLevel(OBJECT_SELF)..........
but how do I have to script it correct?
I tried smt like:
int nCasterLvl = GetCasterLevel(OBJECT_SELF);
if (nCasterLvl =< 5 )
{ ....... and so on}
but then I got an error message.
How can I tell the script that when nCasterLvl is 5 or less than do this
and when nCasterLvl is 6 or between 6 and 10 then do this and so on...
:blink: :blink:
[snapback]15177[/snapback]
Post the script here. For the bonus you get depending on the casterlevel I would use a calculation. Something like int ab = GetCasterLevel(OBJECT_SELF) *2;
This makes 20 ab on level 10 wiz/sorc (can't go over 20), 10 ab on level 5 sorc/wiz, and so on. This is just a example.
Also this makes the script shorter, you only have to use the variable ab in the function that aplly the ab effect.
(This is reply on made on less than a minute :P I'm busy)
-Mel