boost??
Posted: Sun Mar 02, 2008 5:55 pm
ok, with 100 magery i boost my stats with agility of 10!.. then, i boost my magery to 1000 and i boost of 10 too!! did someone know why? (its the same thing with all boost spell)
Code: Select all
var magery := GetEffectiveSkill(caster, SKILLID_MAGERY);
var mod_amount := GetModAmount(magery);
var duration := GetModDuration(magery);
if(CanMod(cast_on, "str"))
DoTempMod(cast_on, "str", mod_amount, duration);
endif
if(CanMod(cast_on, "dex"))
DoTempMod(cast_on, "dex", mod_amount, duration);
endif
if(CanMod(cast_on, "int"))
DoTempMod(cast_on, "int", mod_amount, duration);
endif
Code: Select all
var magery := GetEffectiveSkill(caster, SKILLID_MAGERY);
var mod_amount := 10 * GetModAmount(magery);
var duration := GetModDuration(magery);
if(CanMod(cast_on, "str"))
DoTempMod(cast_on, "str", mod_amount, duration);
endif
if(CanMod(cast_on, "dex"))
DoTempMod(cast_on, "dex", mod_amount, duration);
endif
if(CanMod(cast_on, "int"))
DoTempMod(cast_on, "int", mod_amount, duration);
endif
Code: Select all
function GetModAmount(magery)
var mod_amount := CInt(RandomInt(3) +(magery/10));
if(mod_amount > 10)
mod_amount := 10;
endif
return mod_amount;
endfunction