Skip to content

Debugging update: Random Actors and Objects

Hachem_Muche requested to merge Hachem_Muche/t-engine4:DebuggingUpdate into master

Added the copy keybinding (ctrl-c) to the Textbox ui element.

The multiButtonPopup takes a default choice, the choice function is optional, and only valid choices can be focused.

engine.zone:addEntity will not apply actor_adjust_level more than once

Updated resolvers.talented_ai_tactic to work correctly after multiple calls (solves an upvalue issue)

AdvanceActor dialog: Stat values are split into base and bonus values, and base (maximum allowed by level) and bonus stat values (estimated, +40 at level 50) and are automatically updated when the character level is updated.

Check boxes enable/disable character level and stat values independently.

By default, the actor (player) level is set to 50 and all stats are forced to 60 base, 40 bonus (100 Total), matching standard scaling limits.

Added a new Dialog: RandomActor accessible as (" Random Actor") from the SummonCreature dialog: Randomly generates actors based on an input filter or Randombosses based on generation data and the current random actor (if available).

Added a new Dialog: RandomObject accessible as (" Random Object") from the CreateItem dialog: Randomly generates objects based on an input filter, randomly generates base objects ready for conversion to Randarts, and creates Randarts based on the base object (if available or random) plus generation data.

The new dialogs include context sensitive help and allow generated actors and objects to be previewed via tooltip, character sheet, and lua inspect. Keybinds ctrl-c and ctrl-v allow Filters and Data (text) to be copied and pasted to/from the appropriate dialog inputs, facilitating development and testing of source code.

Entity generation for the new dialogs uses the current zone's npc and object lists and runs in the Lua Console environment.

The destination of objects created in the debugging dialogs can be selected from either Player Inventory (default), Drop at player position, or NPC inventory for a target actor.

The debug dialogs are not cancelled when placing creatures or objects, allowing multiple entities to be created without reopening them.

Merge request reports