home *** CD-ROM | disk | FTP | other *** search
/ Singles (French) / Singles-FrenchVersion-Win95.iso / data1.cab / Script / globals.lua < prev    next >
Text File  |  2004-03-05  |  11KB  |  318 lines

  1. -- convenience abbreviations for mike's and elaine's character IDs
  2. NOBODY = CharacterGOResource.NOBODY    
  3. MIKE = CharacterGOResource.MIKE
  4. ELAINE = CharacterGOResource.ELAINE
  5.  
  6. -- conditions
  7. NEED_NONE = CharacterGOResource.NEED_NONE
  8. NEED_HUNGER = CharacterGOResource.NEED_HUNGER
  9. NEED_COMFORT = CharacterGOResource.NEED_COMFORT
  10. NEED_HYGIENE = CharacterGOResource.NEED_HYGIENE
  11. NEED_TIREDNESS = CharacterGOResource.NEED_TIREDNESS
  12. NEED_FUN = CharacterGOResource.NEED_FUN
  13. NEED_RELATIONSHIP = CharacterGOResource.NEED_RELATIONSHIP
  14. NEED_LIBIDO = CharacterGOResource.NEED_LIBIDO
  15. NEED_APARTMENT = CharacterGOResource.NEED_APARTMENT
  16. -- hidden conditions
  17. NEED_HYGIENE_BODY = CharacterGOResource.NEED_HYGIENE_BODY
  18. NEED_HYGIENE_MOUTH = CharacterGOResource.NEED_HYGIENE_MOUTH
  19. NEED_HYGIENE_HAND = CharacterGOResource.NEED_HYGIENE_HAND
  20.  
  21. NEED_LIBIDO_EROTIC = CharacterGOResource.NEED_LIBIDO_EROTIC
  22. NEED_LIBIDO_SEX = CharacterGOResource.NEED_LIBIDO_SEX
  23. NEED_RELATIONSHIP_FRIENDSHIP = CharacterGOResource.NEED_RELATIONSHIP_FRIENDSHIP
  24. NEED_RELATIONSHIP_ROMANTIC = CharacterGOResource.NEED_RELATIONSHIP_ROMANTIC
  25. NEED_JUSTICE = CharacterGOResource.NEED_JUSTICE
  26. NEED_WORK = CharacterGOResource.NEED_WORK 
  27. NEED_TROUBLE = CharacterGOResource.NEED_TROUBLE
  28. NEED_BLADDER = CharacterGOResource.NEED_BLADDER
  29. NEED_TIDINESS_OBJECTS = CharacterGOResource.NEED_TIDINESS_OBJECTS         
  30. NEED_TIDINESS_FLOOR = CharacterGOResource.NEED_TIDINESS_FLOOR       
  31. NEED_TIDINESS_PLATES = CharacterGOResource.NEED_TIDINESS_PLATES       
  32. NEED_TIDINESS_TRASH = CharacterGOResource.NEED_TIDINESS_TRASH       
  33.  
  34. -- relationship conditions
  35. REL_NONE = CharacterGOResource.REL_NONE
  36. REL_ROMANTIC = CharacterGOResource.REL_ROMANTIC
  37. REL_FUN = CharacterGOResource.REL_FUN
  38. REL_FRIENDSHIP = CharacterGOResource.REL_FRIENDSHIP
  39. REL_SEX = CharacterGOResource.REL_SEX
  40. REL_EROTIC = CharacterGOResource.REL_EROTIC
  41. REL_TROUBLE = CharacterGOResource.REL_TROUBLE
  42.  
  43. -- character conditions
  44. CHAR_NONE = CharacterGOResource.CHAR_NONE
  45. CHAR_EXTROVERTEDNESS = CharacterGOResource.CHAR_EXTROVERTEDNESS
  46. CHAR_PLAYFULLNESS = CharacterGOResource.CHAR_PLAYFULLNESS
  47. CHAR_TIDINESS = CharacterGOResource.CHAR_TIDINESS
  48. CHAR_FRIENDLYNESS = CharacterGOResource.CHAR_FRIENDLYNESS
  49. CHAR_NEUROTIC = CharacterGOResource.CHAR_NEUROTIC
  50. CHAR_MESSY = CharacterGOResource.CHAR_MESSY -- hidden
  51. CHAR_CHAOTIC = CharacterGOResource.CHAR_CHAOTIC -- hidden
  52.  
  53. -- Archtypes
  54. NOTYPE = CharacterGOResource.NOTYPE
  55. -- (female archtypes)
  56. BOSS = CharacterGOResource.BOSS
  57. SEDUCTRESS = CharacterGOResource.SEDUCTRESS
  58. SPUNKY_KID = CharacterGOResource.SPUNKY_KID
  59. FREE_SPIRIT = CharacterGOResource.FREE_SPIRIT
  60. INNOCENT_GIRL = CharacterGOResource.INNOCENT_GIRL
  61. SCIENTIST = CharacterGOResource.SCIENTIST
  62. ACTIVIST = CharacterGOResource.ACTIVIST
  63. NURSE = CharacterGOResource.NURSE
  64. -- (male archtypes)
  65. CHIEF = CharacterGOResource.CHIEF
  66. BAD_BOY = CharacterGOResource.BAD_BOY
  67. BEST_FRIEND = CharacterGOResource.BEST_FRIEND
  68. CHARMER = CharacterGOResource.CHARMER
  69. LOST_SOUL = CharacterGOResource.LOST_SOUL
  70. PROFESSOR = CharacterGOResource.PROFESSOR
  71. SWASHBUCKLER = CharacterGOResource.SWASHBUCKLER
  72. WARRIOR = CharacterGOResource.WARRIOR
  73.  
  74. -- Outfits
  75. ARCHTYPE = CharacterGOResource.ARCHTYPE
  76. STANDARD = CharacterGOResource.STANDARD
  77. TOWEL = CharacterGOResource.TOWEL
  78. SWIMMING = CharacterGOResource.SWIMMING
  79. UNDERWEAR = CharacterGOResource.UNDERWEAR
  80. NOTHING = CharacterGOResource.NOTHING
  81. NOTHING_SEX = CharacterGOResource.NOTHING_SEX
  82.         
  83. -- emoticons
  84. EMOTICON_ANGRY = CharacterGO.EMOTICON_ANGRY
  85. EMOTICON_CANNOT = CharacterGO.EMOTICON_CANNOT
  86. EMOTICON_DUNNO = CharacterGO.EMOTICON_DUNNO
  87. EMOTICON_HAPPY = CharacterGO.EMOTICON_HAPPY
  88. EMOTICON_INLOVE = CharacterGO.EMOTICON_INLOVE
  89. EMOTICON_NEGATIVE = CharacterGO.EMOTICON_NEGATIVE
  90. EMOTICON_NEUTRAL = CharacterGO.EMOTICON_NEUTRAL
  91. EMOTICON_POSITIVE = CharacterGO.EMOTICON_POSITIVE
  92. EMOTICON_SAD = CharacterGO.EMOTICON_SAD
  93. EMOTICON_SLEEPING = CharacterGO.EMOTICON_SLEEPING
  94. EMOTICON_SLEEPY = CharacterGO.EMOTICON_SLEEPY
  95. EMOTICON_SMILE = CharacterGO.EMOTICON_SMILE
  96. EMOTICON_DELAY = CharacterGO.EMOTICON_DELAY
  97. EMOTICON_NOPATH = CharacterGO.EMOTICON_NOPATH
  98. EMOTICON_NOSEAT = CharacterGO.EMOTICON_NOSEAT
  99. EMOTICON_SHY = CharacterGO.EMOTICON_SHY
  100. EMOTICON_NOSOFA = CharacterGO.EMOTICON_NOSOFA
  101. EMOTICON_SMELL = CharacterGO.EMOTICON_SMELL
  102. EMOTICON_APARTMENT = CharacterGO.EMOTICON_APARTMENT
  103. EMOTICON_WAIT = CharacterGO.EMOTICON_WAIT
  104. EMOTICON_EROTIC = CharacterGO.EMOTICON_EROTIC
  105. EMOTICON_JUSTICE = CharacterGO.EMOTICON_JUSTICE 
  106.  
  107. EMOTICON_BLADDER = CharacterGO.EMOTICON_BLADDER 
  108. EMOTICON_HUNGER = CharacterGO.EMOTICON_HUNGER 
  109. EMOTICON_NOAPARTMENT = CharacterGO.EMOTICON_NOAPARTMENT 
  110. EMOTICON_NOFUN = CharacterGO.EMOTICON_NOFUN 
  111. EMOTICON_NOCOMFORT = CharacterGO.EMOTICON_NOCOMFORT 
  112.  
  113. EMOTICON_HOBBY = CharacterGO.EMOTICON_HOBBY
  114. EMOTICON_COMFORT = CharacterGO.EMOTICON_COMFORT
  115. EMOTICON_COMPLIMENT = CharacterGO.EMOTICON_COMPLIMENT
  116. EMOTICON_RELATION = CharacterGO.EMOTICON_RELATION
  117. EMOTICON_ARGUE = CharacterGO.EMOTICON_ARGUE
  118. EMOTICON_SMALLTALK = CharacterGO.EMOTICON_SMALLTALK
  119. EMOTICON_JOKE = CharacterGO.EMOTICON_JOKE
  120. EMOTICON_TEASE = CharacterGO.EMOTICON_TEASE
  121. EMOTICON_GOSSIP = CharacterGO.EMOTICON_GOSSIP
  122.  
  123.  
  124. CONDITION_POSE_PAUSE = 10000
  125. CONDITION_POSE_PROB = 0.5
  126.  
  127. -- keys for entries in pie menu button
  128. ACTIVITY = PieButtonDescription.ACTIVITY
  129. DONTQUEUE = PieButtonDescription.DONTQUEUE
  130. USERACTION = PieButtonDescription.USERACTION
  131. ALWAYS_USERSELECTABLE = PieButtonDescription.ALWAYS_USERSELECTABLE
  132. HIDE_IF_UNSELECTABLE = PieButtonDescription.HIDE_IF_UNSELECTABLE
  133. NO_AI = PieButtonDescription.NO_AI
  134. GRAYED_OUT = PieButtonDescription.GRAYED_OUT
  135. NO_NEGATIVE_ICON = PieButtonDescription.NO_NEGATIVE_ICON
  136.  
  137. -- return values for activity.isPossible()
  138. -- the activity is possible
  139. POSSIBLE = Activity.POSSIBLE
  140. -- not possible because the object is broken    
  141. OBJECT_BROKEN = Activity.OBJECT_BROKEN
  142. -- not possible because the activity was already done too often this day or week
  143. MAX_COUNT = Activity.MAX_COUNT
  144. -- not possible because a skill is missing    
  145. NO_SKILL = Activity.NO_SKILL
  146. -- not possible the sum of needs (conditions) is not fulfilled
  147. NO_SATISFACTION = Activity.NO_SATISFACTION
  148. -- not possible because a need (condition) is not fulfilled    
  149. NO_CONDITION = Activity.NO_CONDITION
  150. -- not possible the sum of needs (conditions) of partner is not fulfilled
  151. NO_PARTNERSATISFACTION = Activity.NO_PARTNERSATISFACTION
  152. -- not possible because a need (condition) of a partner is not fulfilled    
  153. NO_PARTNERCONDITION = Activity.NO_PARTNERCONDITION
  154. -- not possible because a relationship condition is not fulfilled
  155. NO_RELATIONSHIPCONDITION = Activity.NO_RELATIONSHIPCONDITION
  156. -- not possible because a relationship condition with non-partner character is not fulfilled
  157. NO_TARGETRELATIONSHIPCONDITION= Activity.NO_RELATIONSHIPCONDITION
  158. -- not possible because activity is being started out of time slot
  159. TIMESLOT = Activity.TIMESLOT
  160. -- not possible because not enough money
  161. NO_MONEY = Activity.NO_MONEY
  162. -- not possible for unknown reasons
  163. UNKNOWN = Activity.UNKNOWN
  164.  
  165. RIGHT_HAND = 0
  166. LEFT_HAND = 1
  167.  
  168. -- the polling time for cancelling an activity
  169. CANCEL_POLLING_INTERVAL = 1000
  170.  
  171. -- how long a picture will be showed
  172. TV_ANIM_FRAME_DURRATION = 100;
  173. TV_ACTIVITIES = {"watchSitcom", "watchAction", "watchNews", "watchRomantic", "watchHorror"};
  174. STEP_SOUNDS = {"", "Grass", "Wood", "Barefoot"};
  175.  
  176. PC_ACTIVITIES = {"playComputer", "chatComputer"};
  177. PC_PROGRAMS = {"play", "chat"};
  178.  
  179.  
  180. -- dirt types
  181. DIRT_FOOTSTEP = DirtServer.DIRT_FOOTSTEP;
  182. DIRT_BIGDIRT = DirtServer.DIRT_BIGDIRT;
  183. DIRT_SMASHED = DirtServer.DIRT_SMASHED;
  184. DIRT_TRASH = DirtServer.DIRT_TRASH;
  185.  
  186. -- dirt probability
  187. WALK_DIRT_PROBABILITY = 0.05
  188. WALK_DIRT_SIZE = 0.1
  189.  
  190. -- hoover stuff
  191. HOOVER_RADIUS_BONUS = 0.3
  192. STANDARD_HOOVER_RADIUS = 0.5
  193.  
  194.  
  195. -- how far away from the dirt schould we stand when cleaning floor
  196. DIRT_DISTANCE = 0.5;
  197.  
  198. -- don create new dirs on this floor types
  199. NO_DIRT_FLOOR_TYPES = {"Grass"}
  200.  
  201.  
  202. -- max facing and distance for watching objects (like tv)
  203. MAX_WATCH_FACING = -0.7;
  204. MAX_WATCH_DISTANCE = 6.0;
  205.  
  206.  
  207. -- time to clean one dish
  208. DISH_CLEAN_TIME = 20000;
  209.  
  210. -- week days
  211. MONDAY = GameDate.MONDAY
  212. TUESDAY = GameDate.TUESDAY
  213. WEDNESDAY = GameDate.WEDNESDAY
  214. THURSDAY = GameDate.THURSDAY
  215. FRIDAY = GameDate.FRIDAY
  216. SATURDAY = GameDate.SATURDAY
  217. SUNDAY = GameDate.SUNDAY
  218.  
  219. -- outside world
  220. CITY = GameObjectServer.CITY
  221. COUNTRY = GameObjectServer.COUNTRY
  222.  
  223. -- factor to speed up sex animations
  224. SEX_SPEEDUP = 2.0;
  225. -- factor to speed up walking
  226. WALK_SPEEDUP = tonumber(readConfig("Game", "walkSpeedUp", "1.5"));
  227. RUN_SPEEDUP = tonumber(readConfig("Game", "runSpeedUp", "1.0"));
  228.  
  229. WAIT_INTERACTION_ACTIVE = 30000;
  230. WAIT_INTERACTION_PASSIVE = 10000;
  231.  
  232.  
  233. STAIRS_DOWN_SPEEDUP = 1.5;
  234. STAIRS_UP_SPEEDUP = 1.5;
  235.  
  236. -- how long schould cooked food stay on the oven
  237. OVEN_FOOD_REMAIN_TIME = 3*60*1000;
  238.  
  239. -- default life time for objects that have the autoDestruct state machine
  240. -- individual life times can be defined in the config/game: lifeTime<resource name> = <life time in ms>
  241. DEFAULT_LIFE_TIME = 5*60*1000;
  242.  
  243.  
  244. QUEST_REQUEUE_TIME = 5*1000;
  245.  
  246.  
  247.  
  248. -- how long it takes until a stand pose says actionComplete()
  249. -- waring: complete time + fade out time must be >= fade in time
  250. -- currently it is 700 + 300 >= 1000
  251. STAND_POSE_COMPLETE_TIME = 700
  252. -- how long to fade betweeen stand pose anims
  253. STAND_POSE_FADE_TIME = 1000
  254.  
  255. -- how long it takes until a emo pose says actionComplete()
  256. EMO_POSE_COMPLETE_TIME = 700
  257. -- how long to fade betweeen emo pose anims
  258. EMO_POSE_FADE_TIME = 1000
  259. SHY_POSE_COMPLETE_TIME = 1000
  260.  
  261.  
  262. --DLG_POSES = {"Wonder", "Smile", "Sigh", "Shy", "Sad", "Flirt", "Bored", "Angry"}
  263.  
  264.  
  265.  
  266.  
  267. -- how long to fade betweeen sex anims
  268. SEX_FADE_TIME = 1000
  269. SEX_GROAN_GAP = 8000;
  270.  
  271.  
  272. -- trash stuff
  273. MAX_STINK_RATE = 1.0;
  274. MIN_STINK_RATE = 0.5;
  275. FULL_TRASHCAN_DIRTINESS = 1.0
  276. TRASH_TO_DIRT = 1.0;
  277.  
  278. -- oven stuff
  279. MAX_OVEN_DAMP_RATE = 0.1;
  280.  
  281.  
  282. -- dirty objects stuff
  283. CLEAN_PER_LOOP = 0.1; -- * clean effectiviness
  284. DIRTIFY_PER_BATH = 0.3; -- * (messy level / 10)
  285. DIRTIFY_PER_SIT_TOILET = 0.3; -- * (messy level / 10)
  286. DIRTIFY_PER_TABLE_EAT = 0.1; -- * (messy level / 10)
  287.  
  288.  
  289.  
  290.  
  291. -- room types
  292. LIVINGROOM = Room.LIVINGROOM;
  293. KITCHEN = Room.KITCHEN;
  294. WORKSPACE = Room.WORKSPACE;
  295. BEDROOM = Room.BEDROOM;
  296. BATHROOM = Room.BATHROOM;
  297. OUTSIDE = Room.OUTSIDE;
  298.  
  299. -- state object ID that is never used by a state object
  300. NO_OBJECT_ID = tonumber(StateObjectServer.NO_OBJECT_ID);
  301.  
  302. -- audio categories
  303. MUSIC = GameObjectServer.MUSIC;
  304. SOUND = GameObjectServer.SOUND;
  305. SPEECH = GameObjectServer.SPEECH;
  306.  
  307. -- update trigger message
  308. UPDATE_TRIGGER_MESSAGE = StandardGO.UPDATE_TRIGGER_MESSAGE
  309. REPAIR_COMMAND = StandardGO.REPAIR_COMMAND
  310. REPAIR = StandardGO.REPAIR
  311. PM_REPAIR = StandardGO.PM_REPAIR
  312.  
  313. -- day times
  314. MORNING = GameObjectServer.MORNING
  315. DAY = GameObjectServer.MORNING
  316. EVENING = GameObjectServer.MORNING
  317. NIGHT = GameObjectServer.MORNING
  318.