boyfrend.tw 663 B

123456789101112131415161718
  1. :: boyfrend
  2. <<set $here = 'boyfrend'>>
  3. <<set $ARGS = $location_var[$here]>>
  4. <<warn "Usage of boyfrend is deprecated, use $npcs.datingStart() instead">>
  5. :: boyfrend_deactivated
  6. <<if $location_var[$here][0] == 'start'>>
  7. <<if arrsize('pcs_lovers') > 2>>
  8. <p>Hmm, you are already three lovers, why do you need a fourth?</p>
  9. <<else>>
  10. <<gs 'lover' 'add'>>
  11. <</if>>
  12. <</if>>
  13. <!-- !use $boyfriend_code = func('boyfrend','add',$npclastgenerated)-->
  14. <!-- !the function returns the string, that correspends npc identificator in B array-->
  15. <<if $location_var[$here][0] == 'add'>>
  16. <<gs 'npcpreservec' $location_var[$here][1]>>
  17. <<set $result = $npclastsaved>>
  18. <</if>>