Kingdoms of Amalur: Reckoning
0 of 0

File information

Last updated

Original upload

Created by

tmt01

Uploaded by

tmt01

Virus scan

Safe to use

Tags for this mod

About this mod

This mod adds a simple Lua console to the game. Working in the game's Lua environment, it has full access to the scripting engine and can be utilized for various needs.

Permissions and credits
Changelogs
If the mod doesn't work, try optional no-dlc patch. This game behaves differently depending on what packages are loaded.

Description


This mod adds a simple Lua console to the game. Working in the game's Lua environment, it has full access to the scripting engine and can be utilized for various needs.

This mod is experimental and relies on a lot of hacks. Playtesting and bug reports are appreciated :)


Overview

First of all, I should say that this game uses Havok Script as it's scripting engine. It's not a standard Lua and it's really hard to find any documentation on in, but it is Lua 5.1-compatible, so any code written for this version of Lua should work in KoAR.

To open the console, press F1 at any point after loading the game world. Press Esc or type q as a command to close.


Now, let's talk about what this console allows you to do. Here's a list of commands:


help - displays a list of available commands with short descriptions.

cheatmenu
- opens a cheat menu with a lot of features. This menu was left in the game by the developers. Some of the options don't seem to work, but most of them do. (For people who had used cheatmenu before: I patched the function that opens cheatmenu to open the console instead. Cheatmenu can still be accessed via the console and it no longer requires developer mode.)

additem
[simtype] [count=1]
- gives player an item by its simtype name. Count is optional and defaults to 1.

Example: additem wpn_staff_ofruin

spawn
[simtype] [distance=500]
- spawns an actor in front of the player by its simtype name. Distance is optional and defaults to 500 (about a distance of a dodge roll).

Example: spawn obj_clowncar

lua
[code]
- executes everything entered after the command as Lua code.

Example: lua PLAYER.set_player_name("Custom name")

run [script_name] [arguments] - executes a Lua script from the "_scripts/console"  folder with a name [script_name].lua. Everything after the script name is passed as arguments to the script.

Example: run addgold 10000

clear - clears the output area of the console.

q - closes the console.


Installation

Unpack the contents of the archive into the game.


Additional information

A table that lists every simtype in the game can be found in optional downloads. It only contains ids and names, so it can be hard to tell which simtype name is required to spawn a specific item or actor. Besides, some simtypes may break the game if spawned. Hopefully I'll be able to compile a more informative list in the future.

weaaddar compiled a more informative list with all equipment items in the game: Google Docs