getskillvalue('resisting spells')
it's can get real skill level.
the skill value 100, now cast spell "protection", current skill value 66, if use getskillvalue, the value still keep 100.
Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
how to get current skill level
Re: how to get current skill level
i think, change not real value
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: how to get current skill level
mixers wrote:getskillvalue('resisting spells')
it's can get real skill level.
the skill value 100, now cast spell "protection", current skill value 66, if use getskillvalue, the value still keep 100.
Use Buff\Debuff Event => http://stealth.od.ua/Doc:Manual/Reference/Events
Whenever you activate a buff wich reduce your skills write it toa global variable within your program.
Whenever you deactivate a buff wich reduce your skills , reset the global variable.
Whenever Checking Skills wich could be affected reduce the cumulative realskill by the value of the global variable.
If value is 0 then as sample you have 100 - 0 = 100, if its 24 then you have 100 -24 = 76.
You can do same on Equipment. Scan Eqipment for the Cliloc for Magicweapon and write value to variable.Then same method to check but use the other variable.
Hope it helps..
Stealth Development Team & Support