READ ME.txt 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // :CATEGORY:XS Pets
  2. // :NAME:XS Pet Robot
  3. // :AUTHOR:Ferd Frederix
  4. // :KEYWORDS: Pet,XS,breed,breedable,companion,Ozimal,Meeroo,Amaretto,critter,Fennux,Pets
  5. // :CREATED:2013-09-06
  6. // :EDITED:2014-01-30 12:24:20
  7. // :ID:988
  8. // :NUM:1517
  9. // :REV:0.50
  10. // :WORLD:Second Life, OpenSim
  11. // :DESCRIPTION:
  12. // XS Pet Instructions
  13. // :CODE:
  14. Current rev is 0.50 due to addition of a updater prim.
  15. //////////// NEW UPDATE PROCEDURE ***** USE AT YOUR OWN RISK /////////////////
  16. Put a RESET male and female pet and a RESET egg inside a new prim
  17. Add the Updater.lsl script.
  18. Place the prim within 100 meters of any living pet and touch the prim.
  19. All pets within that radius should update to the new pet.
  20. !!! Test this at your own risk!!!!!
  21. !! if your new pet fails to live, all the pets in that area will die !!!
  22. //////////////////////////////////////////////////////////////////////////
  23. Revision history is stored in REVISIONS.txt.
  24. Individual files have revs that show the last thing done to them.
  25. Global Tunable numbers are located in /Debug/Global Constants.txt.
  26. The global file MUST be modifed and copied and pasted into all scripts in the places indicated when you modify an animal.
  27. To recreate a new XS pet or to modify the scripts inside a pet, you must do them in a certain sequence:
  28. Rez the Homing Object (Flag), Egg (Nut and Bolt), egg cup, (Toolbox), and crate (Transport UFO). DO NOT rez a Robot.
  29. Click the create and unpack a Robot
  30. Reset the scripts in the Robot.
  31. Delete the "Nut and Bolt" and "Troubot" in the "XS CryoCrate" aka "Transport UFO", and toolbox and any eggs or robots inside "Troubot"
  32. The pet Troubot should have ONLY a Homing Object (the flag) and the scripts.
  33. Modify any scripts you wish to modify.
  34. The pet must have certain scripts running or it will die and delete the scripts. There is a new switch thaty turns off this behavious, but it happens with old scripts.
  35. If it dies, replace the scripts and reset the xs_brain script.
  36. Take a copy of the "Nut and Bolt" Egg
  37. Put the copy inside the Spaceship and and the Transport UFO. Do not put one in your pet Troubot! It will get a copy of itself and an egg from the UFO or Toolbox or Egg.
  38. Take a copy of the FRESHLY RESET Robot. This will not work with a living one, so reset the Robot and take a copy.
  39. Put the copy inside the crate and the egg cup
  40. Put the copy inside the Spaceship and and the Transport UFO
  41. Rez the copied Nut and Bolt. It should change color.
  42. Click the Nut and Bolt and package it. The Toolbox will rename itself "Toolbox: S:0 G:0% <0.00,1.00,0.00>/<0.00,1.00,0.00>"
  43. You may store the Toolbox in your inventory
  44. The Nut and Bolt egg inside the Toolbox is ready to be hatched.
  45. Make sure you have the Home Object (Flag) rezzed and nearby.
  46. It MUST have a number in the description that is the distance the pet will wnder within.
  47. Click the toolbox and unpack it. A Nut and Bolt will re-appear
  48. Click the Nut and Bolt and hatch it. A Robot will appear.
  49. It should move. If it does not move, check your Home Flag!
  50. Touch the Robot for a menu
  51. Click the Package Option
  52. The Spaceship will change to the pet colors and the Robot will disappear.
  53. The Spaceship will rename itself to "Transport UFO: Troubot"
  54. You may store the crate in your inventory
  55. Click the "Transport UFO" Spaceship
  56. Click Unpack and your Robot will live again
  57. //////////// GENERIC UPDATE PROCEDURE /////////////////
  58. Package up a living pet in the xs_cryocrate
  59. Take a copy of the xs_cryocrate to inventory.
  60. Unpack the pet.
  61. Change whatever script or prims are needed in the pet.
  62. Reset all scripts in the pet
  63. Take copy of the pet to inventory. This is the new, reset pet that goes in the xs_cryocrate and xs_eggcup.
  64. Stop all scripts in pet
  65. Take copy of stopped pet to inventory. I use this to work on future pets as it can be rezzed without whining. Just start the scripts up.
  66. Rez the saved xs_cryocrate again.
  67. Replace the pet with the reset pet from your inventory
  68. Shift-Copy this package
  69. Reset the scripts in this xs_cryocrate.
  70. Take this reset xs_cryocrate to inventory. This is the "update" for people to update their pet.
  71. Unpack the pet from the remaining xs_cryocrate. it should should grow to the correct size for it's age.
  72. Rez the xs_eggcup
  73. Reset the script in the xs_eggcup
  74. Put a copy of the new, reset pet in the xs_eggcup and take to inventory as the new xs_eggcup
  75. /////////////////////// NOTES ////////////////////
  76. Breeding:
  77. A male will be capable of breeding at 7 days age. maxAge variable
  78. A male will look for a female to breed with every 3 hours
  79. A female will be capable of breeding at 7 days age.
  80. Breeding begins when the timer in the xs_breeding script times out 7 days after birth, plus every 3 hours.
  81. The male bird will chat that he has a gleam in his eye
  82. The male timer broadcasts a LINK_SEEK_FEMALE
  83. The male xs_brain hears this and send a chat message of MALE_BREED_CALL
  84. A female that hears this will trigger a LINK_MALE_BREED_CALL
  85. The link message will cause her to "blushes then bobs her head up and down"
  86. This triggers a LINK_SIGNAL_ELIGIBLE
  87. The female chats back a FEMALE_ELIGIBLE
  88. A male that hears this checks to see if they share the same Home location
  89. The male then triggers a LINK_FEMALE_ELIGIBLE
  90. The male remembers the mothers ID, then sends a LINK_CALL_MALE
  91. The male says a MALE_ON_THE_WAY to the female
  92. The female checks that the makle is heading to her
  93. The female then sends the link message LINK_MALE_ON_THE_WAY
  94. The female then sends the chat message FEMALE_LOC with her coordinates
  95. The female then sets a timeout of 20 minutes for the male to get to her
  96. The female then stops moving for 15 minutes
  97. If the male fails to mate within that time, the female sends a LINK_BREED_FAIL
  98. The female then broadcasts a BREEDING_FAIL and the breeding has ended
  99. If the male hears the FEMALE_LOC, it triggers a LINK_FEMALE_LOCATION
  100. The male then remembers the location and sets sex_dest
  101. When the male reaches that position, he sends a LINK_RQST_BREED
  102. If another male has not yet impregnated her, she sends a LINK_CALL_MALE_INFO
  103. The male responds with MALE_INFO with his breeding characteristics
  104. This triggers two actions: a chatted MALE_INFO and a LINK_MALE_INFO
  105. The female remembers the male info and becomes pregnant
  106. A female will be pregnant for 48 hours (2 days), then lay an egg
  107. A female can get pregnant again in 5,000 seconds, or 1.39 hours
  108. Eating:
  109. Animals scan for a food bowl every 30 minutes, +/- 30 seconds, controlled by FOOD_BOWL_SCAN_INTERVAL in xs_brain
  110. Animals get hungry in 4 hours
  111. if hungry, they eat every hour
  112. Specials:
  113. Xs_special script is for adding text to an animal to make it a special. You change in the xs_egg script the string :
  114. string SPECIAL = "Normal";
  115. to come other string. This string is saved in the egg cup and pet crate.
  116. The string will be sent to xs_special. What you do with it is up to you.