123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- # initKik
- init = speed + react
- initKoef = init * 20 / 100
- initi = rand(initi - initKoef, initi + initKoef)
- initV = speedV + reactV
- initKoefV = initV * 20 / 100
- initiV = rand(initiV - initKoefV, initiV + 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
- '<font color="green">You take the initiative</font>'
- 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
- '<font color="red"><<$boydesc>> took the initiative</font>'
- 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
- '<font color="green">You take the initiative</font>'
- else
- hod = 1
- hodtimeV += 1
- '<font color="red"><<$boydesc>> took the initiative</font>'
- 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
- '<font color="green">You take the initiative</font>'
- else
- hod = 1
- hodtimeV += 1
- '<font color="red"><<$boydesc>> took the initiative</font>'
- end
- end
- --- initKik ---------------------------------
|