ChatConsole
Adds chat commands (launch in multiplayer)
Date uploaded | 7 months ago |
Version | 1.0.3 |
Download link | SmoothSpatula-ChatConsole-1.0.3.zip |
Downloads | 1053 |
Dependency string | SmoothSpatula-ChatConsole-1.0.3 |
This mod requires the following mods to function
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 inReturnOfModding\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:
- 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
CHANGELOG
v1.0.0
- Initial release
v1.0.1
- Made it so you don't have to wait 5 seconds when starting a game in a lobby and rejoining the lobby after dying
- Updated the Cheat Sheet to also have skills and color coded descriptions
v1.0.2
- Fixed a bug where any player in a multiplayer lobby could instantly start the game, it now instanly starts when all players are ready.
v1.0.3
- Added the /exec command, that lets you execute all commands in a text file, as well as /spawn and /toggledownfall