SmoothSpatula-ChatConsole icon

ChatConsole

Adds chat commands (launch in multiplayer)

Last updated a week ago
Total downloads 197
Total rating 1 
Categories Mods Tools Gamemodes Server-side
Dependency string SmoothSpatula-ChatConsole-1.0.3
Dependants 1 other package depends on this package

This mod requires the following mods to function

ReturnOfModding-ReturnOfModding-1.0.22 icon
ReturnOfModding-ReturnOfModding

Lua Mod Loader for Risk of Rain Returns

Preferred version: 1.0.22
Klehrik-HelperFunctions-1.0.4 icon
Klehrik-HelperFunctions

A collection of helper functions for modding.

Preferred version: 1.0.4

README

ChatConsole

Add commands to the in-game chat.

Since we haven't found a way to get the chat in singleplayer please play multiplayer for this (don't worry it skips the 5 second ready timer).

List of commands

Commands look like this : /command <Mandatory Field> [Optional Field].

If you don't specify a [username], the command will apply to you. Usernames have to be exact and are case sensitive.

New in v1.0.3

  • /toggledownfall toggles between rainy and clear weather.
  • /spawn <object name or id> spawns any object at the player's location. List of all objects
  • /exec <filename> execute all commands in ReturnOfModding\config\SmoothSpatula-ChatConsole\filename.

An executable file contains a single command on each line, it can be of any filetype. Commands are run sequentially in order.

  • /help [command] gives you a list of all commands or information on a specified command.

  • /give <item name or id> [amount] [username] gives the specified player any number of one item. Default amount is 1.

  • /remove <item name or id> [amount] [username] remove the any number of one item from the specified player. Default amount is 1.

  • /gold <amount> [username] gives the specified player gold.

  • /lvl <number> gives levels to all players (exp is shared in RoRR).

  • /spawntp spawns a teleporter at your location that sends you to the next stage (it cannot make you go to the final stage).

  • /god [username] make the specified player invulnerable (this doesn't make you invulnerable to falldamage, but falldamage can't kill you anyway).

  • /kill [username or monster name] kills the specified player or all monsters from the specified monstertype.

  • /pvp enables pvp mode in multiplayer, setting each player to different teams. You can still be damaged by monsters.

  • /skill <skillbar slot> <skill name or skill id> [username] replace a skill by another in your skillbar. The skillbar slots are numbered 1-4.

  • /peaceful prevents ennemies from spawning (except from the teleporter)

  • /set <field> <value> [username] sets an attribute field for the player.

The possible fields for /set are : armor, attack_speed, critical_chance, damage, hp_regen, maxhp, maxbarrier, maxshield, armor_level, attack_speed_level, critical_chance_level, damage_level, hp_regen_level, maxhp_cap, maxhp_level.

Host Only

  • /kick [username] kick the specified user from the game.

Ressources

Item Cheat Sheet with Item and Skill IDs

Adding commands from other mods

You can add your own command like this :

examplemod = true -- this lets you locate your own mod later
-- actor instance who wrote the command
-- args1... the words separated by spaces in order after the command ("/command args1 args2 args3 ..."). These are strings containing any non-space characters
function example_func(actor, args1, args2)
    -- your code here
end

mods.on_all_mods_loaded(function() 
    -- find chatconsole script
    for k, v in pairs(mods) do if type(v) == "table" and v.chatconsole then ChatConsole = v end end 
    -- add the function you want to add
    for k, v in pairs(mods) do
        if type(v) == "table" and v.examplemod then 
            -- name in the function array, reference, usage text, command ("/example")
            -- optional fields go at the end after mandatory fields (you can avoid doing this if you know what you're doing)
            -- you can overwrite default commands by using the same name (here examplemod_examplefunc)
            ChatConsole.add_function(examplemod_examplefunc, v.example_func, "example", "<y>/example <example mandatory field> [example optional field]")
        end 
    end
end)

Installation Instructions

This mod depends on the Return Of Modding loader:

  1. Download the latest Return Of Modding release and follow the Manual Installation instructions to install it.
  2. Download this mod and extract it into the ReturnOfModding/plugins folder.
  3. The mod should now be loaded. Enjoy your DPS!

Special Thanks To

  • Klehrik for his helper and sharing his code
  • Dunes on the RoRR Modding Server for asking for this
  • The Return Of Modding team
  • SeeJaeey for his RoRR Cheat Sheet we forked

Contact

For questions or bug reports, you can find us in the RoRR Modding Server @Miguelito @Umigatari