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

Only working scripts
Post Reply
mixers
Neophyte
Neophyte
Posts: 49
Joined: 03.10.2013 14:11

how to get current skill level

Post by mixers »

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.
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: how to get current skill level

Post by Vizit0r »

i think, change not real value :)
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Crome696
Novice
Novice
Posts: 67
Joined: 04.03.2012 18:57
Location: Germany
Contact:

Re: how to get current skill level

Post by Crome696 »

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
Post Reply