12345678910111213141516171819202122232425 |
- # sexcontraprio
- !{Function that when given 2 different contraception types, returns the "higher priority" of the two. In brief, if PC had sex with the same guy twice with any two random contraceptive methods, which one would she think was the reason she got pregnant?}
- killvar 'conprio'
- conprio[0] = 0 !{No contraception}
- conprio[1] = 1 !{Lied about the pill}
- conprio[2] = 4 !{Condom broke}
- conprio[3] = 5 !{Condom fell off}
- conprio[4] = 7 !{You sabotaged the condom}
- conprio[5] = 6 !{Someone else sabotaged the condom}
- conprio[6] = 2 !{You were on the pill}
- conprio[7] = 8 !{Precum had sperm in it}
- i = 0
- :cumarrputecl
- if i < arrsize('conprio'):
- if ARGS[0] = conprio[i] or ARGS[1] = conprio[i]:
- RESULT = conprio[i]
- else
- i += 1
- jump 'cumarrputecl'
- end
- end
- --- sexcontraprio ---------------------------------
|