1
0

boyfrend.qsrc 442 B

12345678910111213141516171819
  1. # boyfrend
  2. if $ARGS[0] = 'start':
  3. if arrsize('pcs_lovers') > 2:
  4. 'Hmm, you are already three lovers, why do you need a fourth?'
  5. else
  6. gs 'lover', 'add'
  7. end
  8. end
  9. !use $boyfriend_code = func('boyfrend','add',$npclastgenerated)
  10. !the function returns the string, that correspends npc identificator in B array
  11. if $ARGS[0] = 'add':
  12. gs 'npcpreservec', $ARGS[1]
  13. $result = $npclastsaved
  14. end
  15. --- boyfrend ---------------------------------