ChatConsole
Adds chat commands (launch in multiplayer)
About this mod Author’s original text
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 [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 spawns any object at the player's location. List of all objects
- /exec execute all commands in \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 [amount] [username] gives the specified player any number of one item. Default amount is 1.
- /remove [amount] [username] remove the any number of one item from the specified player. Default amount is 1.
- /gold [username] gives the specified player gold.
- /lvl 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 [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 [username] sets an attribute field for the player.
The possible fields for /set are:, 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", "/example [example optional field]")
end
end
end)
Installation Instructions
This mod depends on the Return Of Modding loader:
- Download the latest Return Of Modding release and follow the Manual Installation instructions to install it.
- Download this mod and extract it into the ReturnOfModding/plugins folder.
- 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
Install & use Install: follow the bundled instructions
- Unzip the archive from playbuff and read the bundled readme / instructions first.
- Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
- For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
- Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.
Install locations vary a lot between mods — the bundled readme is the most reliable guide. If the mod depends on a loader such as ReturnOfModding, install it first as the readme describes.
Install these first, or the mod will not work: