ChatConsole

版本 v1.0.3·更新於 2024-04-28

Adds chat commands (launch in multiplayer)

模組介紹 作者原文

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

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。 若模組依賴 ReturnOfModding 之類的載入器,請先按包內說明裝好。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

ReturnOfModding-ReturnOfModdingKlehrik-HelperFunctions

檔案與校驗

檔案名稱
ChatConsole-1.0.3.zip
檔案大小
14.9 KiB