Skip to main content

Temp Beta Msg

Based on game build 714014 | Last updated: 2026-03-07

Overview

temp_beta_msg is an in-game item prefabricated for use during Rifts events. It functions as a mutable message display object that holds and updates descriptive text about boss encounter timers (killtime). It integrates with the inspectable component for dynamic description updates, inventoryitem for visual representation, and fuel for burnability. This item is not persistent across saves without explicit serialization via OnSave/OnLoad logic.

Usage example

local inst = CreateEntity()
inst:AddComponent("inspectable")
inst:AddComponent("inventoryitem")
inst:AddComponent("fuel")

-- Set up description and fuel behavior like the prefab does
inst.components.inspectable:SetDescription(STRINGS.TEMP_BETA_MSG.RIFTS6_BASIC)
inst.components.inventoryitem:ChangeImageName("mapscroll")
inst.components.fuel.fuelvalue = TUNING.SMALL_FUEL

-- Update kill timer for a boss
inst.SetKillTime = rifts5_SetKillTime
inst:SetKillTime(120, "wagboss_robot_possessed")

Dependencies & tags

Components used: inventoryitem, inspectable, fuel, erasablepaper, smallburnable, smallpropagator, hauntablelaunch
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
verstring"rifts6"Version marker for save/load compatibility.
killtimenumber0Encoded kill timer value (seconds, rounded to nearest integer).
bossstringnilName of the boss associated with the message.
SetKillTimefunctionrifts5_SetKillTimeMethod to dynamically update description with boss name and kill time.
OnSavefunctionOnSaveSerialization handler for killtime, boss, and ver.
OnLoadfunctionOnLoadDeserialization handler to restore description and state.

Main functions

SetKillTime(killtime, prefabname)

  • Description: Updates the killtime and boss values and recalculates the inspectable description using localized strings and format substitution. Typically called during rifts boss initialization or save migration.
  • Parameters:
    killtime (number) — Approximate time in seconds before boss death, rounded to nearest integer.
    prefabname (string | nil) — The prefab name of the boss; used to look up the display name in STRINGS.NAMES.
  • Returns: Nothing.
  • Error states: Uses string.upper(prefabname or "wagboss_robot_possessed") as fallback; no explicit error handling for invalid strings.

Events & listeners

  • Listens to: None
  • Pushes: imagechange — triggered indirectly via inventoryitem:ChangeImageName("mapscroll") during prefabrication.