hello, sorry for replying a 3 year old post, but im very interested about learning more about set effects and i want to understand this part of the code
local Check_Nianshou = CheckItem_Nianshou ( ATKER ) ------ this check if the set is equiped
if Check_Nianshou == 1 then ---- this says it is on
local P_R = 0.1 ---- local numeric definition for p_r?
local job = GetChaAttr( ATKER , ATTR_JOB ) ---- ask for the class of the attacker?
if job == 5 then ----- if class is ... herbalist?
P_R = 0.03 ---- another definition?
local Percentage = Percentage_Random ( P_R ) ---- confused about this part
if Percentage == 1 then
AddState ( ATKER , DEFER , STATE_XY , 1 , 1 ) ---- STATE_XY this mean stun? where i can check other states?
SystemNotice ( ATKER , "Recieved blessing from Goddess. Knock out target for 1 sec")
Check_Ys_Rem ( ATKER , DEFER) ------dont get this part
Also, where is the hp recover fuction? this seems only to be for the mini stun, but kylin set also heals u by a small chance from taking hits.
I want to understand the already made effects so i can create my owns more effectively