# initKik
init = pcs_agil + pcs_react
initKoef = init * 20 / 100
initi = rand(init - initKoef, init + initKoef)
initV = speedV + reactV
initKoefV = initV * 20 / 100
initiV = rand(initV - initKoefV, initV + initKoefV)
if initi > initiV and hodtime < 3 and ionce = 0 or hodtimeV >= 3 and ionce = 0:
hod = 0
hodtime += 1
if hodtimeV >= 3:hodtimeV = 0
'You take the initiative.'
ionce = 1
elseif initi < initiV and hodtimeV < 3 and ionce = 0 or hodtime >= 3 and ionce = 0:
hod = 1
hodtimeV += 1
if hodtime >= 3:hodtime = 0
'<<$boydesc>> took the initiative.'
ionce = 1
elseif initi = initiV and hodtime < 3 and hodtimeV < 3 and ionce = 0:
ionce = 1
inrand = rand(0, 1)
if inrand = 0:
hod = 0
hodtime += 1
'You take the initiative.'
else
hod = 1
hodtimeV += 1
'<<$boydesc>> took the initiative.'
end
elseif initi = initiV and hodtime >= 3 and ionce = 0 or initi = initiV and hodtimeV >= 3 and ionce = 0:
hodtime = 0
hodtimeV = 0
ionce = 1
inrand = rand(0, 1)
if inrand = 0:
hod = 0
hodtime += 1
'You take the initiative.'
else
hod = 1
hodtimeV += 1
'<<$boydesc>> took the initiative.'
end
end
--- initKik ---------------------------------