![]() Type ID for the entity type name.Hyperspace is the state of existence used by star-ships to achieve faster than light (FTL) travel. This is important because (eq? 'a "a") -> #f It will return a STRING if the random element it finds is a symbol. Random element from listA NOTE: Be aware that rand-from-list will not return any Symbol if you give it a list of symbols. Be aware when using it to get nth-of from a list involving symbols. 0 is the first element NOTE: nth-of will (perhaps unexpectedly) return strings from a list of symbols. (sublist (list "a" 'b "c") 0 2) -> `("a" "b")Ī list of sorted elements of listA. Be aware when using it to get a sublist involving symbols. NOTE: sublist will (perhaps unexpectedly) return strings from a list of symbols. Answers: Is a less than OR equal to b?Ī list of the elements of listA beginning at offset and continuing to the end of listA OR to &length elements if provided. Answers: Is a Greater than OR equal to b? Takes at least 2 parameters.īasic division function. Answers: Is a Greater than b?īasic multiplication function. Evaluates as a - b - c - d … or a - (sum b…n) ![]() Takes at least 2 numbers.īasic subtraction function. See Persistent Variables for usage notes.īasic addition function. Session is the interaction between a PC and a scripted entity. This is a persistent variable in the context of the current *session*. See Persistent Variables for usage notes. This is a persistent variable in the context of self & character. ![]() This is a persistent variable in the context of self. The character interacting with the object running the script. The object running the script (NPC, item.). Where possible, the syntax, required&optional parameters and example usage & evaluation are included. Some of these may not be synced to Main yet. This is the latest posting of functions and constants available to Custom NPCs. they may not be available when the NPC cannot reliably determine the information without godmodding - for example location whilst in hyperspace). Entries with a "Yes*" may have some limitations on their use (e.g. Ship, Vehicle, City, Planet, Space StationĬhecks if the entity is in any room at all, as opposed to outside on the surfaceĮntries with a "Yes" are available for custom NPCs. the ship or vehicle standing inĬurrent container entity type, e.g. (get-entity-type-name (get-container self))Ĭurrent container type, e.g. "Ground (3,4) at (4,7) on Corellia" (if heading to ground outside a city) ||Unknown ||Yes*Ĭhecks if the character is traveling or notĬurrent container name, e.g. "Ground (3,4) of city Cityname on Corellia" (if heading to ground in city) "Atmosphere (3,4) of Corellia" (if heading in atmo) "Corellia planet" (if heading in sublight) "Corellia system" (if heading to that system) (faction-website (get-entity-faction character))Įmpty string if special owner (Market, None) (faction-leader (get-entity-faction character)) (faction-type (get-entity-faction character)) (get-name (get-entity-faction character)) Is Character badly wounded?- requires (load "swclib") Is Character wounded? - requires (load "swclib") Is Character slightly wounded? - requires (load "swclib") Is Character unharmed? - requires (load "swclib") Is NPC badly wounded?- requires (load "swclib") Is NPC wounded?- requires (load "swclib") Is NPC slightly wounded?- requires (load "swclib") Is NPC unharmed? - requires (load "swclib") Wildcards (OLD SWC Script Syntax) SWC Lisp
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |