Helper functions and proxy methods / continued
Earlier edition reference / Current 0.86.4.0 checked action IDs > p. 95
Helper functions and proxy methods / continued#
Clamp(value, minimum, maximum)
Lerp(from_value, to_value, weight)
RandomInteger(minimum, maximum)
Randomize(seed_value = -1)
RandomFloat(minimum = 0.0, maximum = 1.0)
RandomInt(minimum, maximum)
RandomNumber(minimum = 0.0, maximum = 1.0)
Choose(values, fallback = nil)
Shuffle(values)
Distance(first, second)
Format(template, values = {})
ToJSON(value, indent = "")
FromJSON(text_value, fallback = nil)
IsValid(value)
TypeOf(value)
registry:Get(record_id)
registry:Has(record_id)
registry:IDs()
record:Get(property_path, default_value = nil)
record:Set(property_path, value)
record:Exists()
record:ToDictionary()
record:AddInventory(inventory_id, amount = 1)
record:RemoveInventory(inventory_id, amount = 1)
record:AddDestinationPath(x, y = nil, z = nil, ignore_navigation_mesh_rules = false)
record:ClearDestinationPath()
record:WalkPath(speed = 0.0) · use AwaitCall for completion
record:WalkTo(position_value, speed = 0.0, ignore_navigation = false) · use AwaitCall for completion
record:Teleport(position_value)
record:ChangeRoom(room_id, position_value = nil, spawn_point_or_edge = "", facing = nil) · use AwaitCall for completion
record:FaceCharacter(target_id)
record:FaceCoordinates(position_value)
record:Say(text, portrait_id = "", voice_asset_id = "", voice_key = "") · use AwaitCall for completion
