You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/NPCs.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -934,8 +934,6 @@ Example | Description
934
934
`"u_val": "strength_base"` | Player character's strength. Replace `"strength_base"` with `"dexterity_base"`, `"intelligence_base"`, or `"perception_base"` to get such values.
935
935
`"u_val": "var"` | Custom variable. `"var_name"`, `"type"`, and `"context"` must also be specified. If `global_val` is used then a global variable will be used. If `default` is given as either an int or a variable_object then that value will be used if the variable is empty. If `default_time` is the same thing will happen, but it will be parsed as a time string aka "10 hours". Otherwise 0 will be used if the variable is empty.
936
936
`"u_val": "time_since_var"` | Time since a custom variable was set. Unit used is turns. `"var_name"`, `"type"`, and `"context"` must also be specified.
937
-
`"u_val": "hour"` | Hours since midnight.
938
-
`"u_val": "moon"` | Phase of the moon. MOON_NEW =0, WAXING_CRESCENT =1, HALF_MOON_WAXING =2, WAXING_GIBBOUS =3, FULL =4, WANING_GIBBOUS =5, HALF_MOON_WANING =6, WANING_CRESCENT =7
939
937
`"u_val": "allies"` | Number of allies the character has. Only supported for the player character. Can be read but not written to.
940
938
`"u_val": "cash"` | Amount of money the character has. Only supported for the player character. Can be read but not written to.
941
939
`"u_val": "owed"` | Owed money to the NPC you're talking to.
@@ -965,7 +963,11 @@ Example | Description
965
963
`"u_val": "anger"` | Current anger level, only works for monsters.
966
964
`"u_val": "friendly"` | Current friendly level, only works for monsters.
967
965
`"u_val": "vitamin"` | Current vitamin level. `name` must also be specified which is the vitamins id.
966
+
`"u_val": "age"` | Current age in years.
967
+
`"u_val": "height"` | Current height in cm. When setting there is a range for your character size category. Setting it too high or low will use the limit instead. For tiny its 58, and 87. For small its 88 and 144. For medium its 145 and 200. For large its 201 and 250. For huge its 251 and 320.
968
968
`"distance": []` | Distance between two targets. Valid targets are: "u","npc" and an object with a variable name.
969
+
`"hour"` | Hours since midnight.
970
+
`"moon"` | Phase of the moon. MOON_NEW =0, WAXING_CRESCENT =1, HALF_MOON_WAXING =2, WAXING_GIBBOUS =3, FULL =4, WANING_GIBBOUS =5, HALF_MOON_WANING =6, WANING_CRESCENT =7
0 commit comments