ROT畅玩养肝/护肝交流:点此加入Q群

恐怖黎明控制台命令大全


来源:https://forums.crateentertainment.com/t/console-commands-reference/32174 



概述:

Using the information from the Grim Dawn executable file (extracted by rorschachrev), I manually parsed the commands that can be used in the console. As it was a manual work it might/should contain errors.

To activate the console go to a custom game (it dosen’t work in the main campaing) and type ~ or ’ (depending on your keyboard).

Unfortunatelly I was not able to find information about the parameters received by each of this commands. Many of them work with true of false, example:

> game.PlayStats true

I really want to find out how the Exec command works and what type of scripts it can execute, if anyone finds out please let me know.

机翻:

使用来自 Grim Dawn 可执行文件(由 rorschachrev 提取)的信息,我手动解析了可以在控制台中使用的命令。 由于这是一项手动工作,它可能/应该包含错误。

要激活控制台,请转到自定义游戏(它在主阵营中不起作用)并键入 ~ 或 ’(取决于您的键盘)。

不幸的是,我无法找到有关每个命令接收到的参数的信息。 他们中的许多人使用 true 或 false,例如:

> game.PlayStats true

我真的很想知道 Exec 命令是如何工作的以及它可以执行什么类型的脚本,如果有人发现请告诉我。


理解:

只有在mod中可以使用控制台

按键盘上1左边,Esc键下边的  ` 键激活控制台

image


已知命令汇总:

原文:

BindDown - Binds a command to key press

BindToggle - Binds a command with true/false values to toggle with key press

BindUp - Binds a command to key release

Close - Closes the console

Exec - Executes a script

Exit - Exits the game

ScreenShot - Takes a screen shot


character.AnyoneHasToken - Return true if the anyone has the token

character.ClearPlayerTokens - Remove all stored trigger tokens in the player

character.GiveTakeGold - Gives the amount specified. Negative numbers take gold away and 0 will zero out your gold.

character.GrantPlayerToken - Gives the player the specified token

character.GrantPlayerToken - Gives the player the specified token

character.LogData - Shows a variety of data above player, NPCs, monsters

character.RevokePlayerToken - Revokes the specified token from the player

character.ServerHasToken - Return true if the server has the token

character.SetPlayerInvisible - Makes it so enemies dont see the player and thus dont attack - but you can attack them

character.ShowAngerLevels - Debug info for AI

character.ShowPlayerTokens - Dumps the player’s trigger tokens to the console

character.WarpCursor - Makes it so player always warps to destination


debug.physics - Shows data when things affect physics engine


game.decrementdevotion - Removes a devotion point

game.Give - Creates an object and gives it to the player

game.God - Enables or disables god mode

game.IgnoreRequirements - Allows player to equip anything regardless of requirements

game.IncrementAttribute - Gives the player an attribute point

game.incrementdevotion - Gives the player a devotion point

game.IncrementLevel - Increments the player’s level

game.IncrementSkill - Gives the player a skill point

game.IncrementSkill - Increments the number of points allocated to the specified skill

game.Invincible - Toggles being invincible.

game.KillMe - Kills the player

game.LargeDumpFiles true/false - Enables or disables exporting of large dump files

game.PlayStats - Displays a variety of player stats on the screen

game.ShowCursor - Shows or hides the mouse cursor

game.ShowDynamicObstacles - ?

game.ShowErrorMessages - Shows or hides skill not ready error messages

game.ShowHud - Enables or disables the UI

game.Spawn - Creates an object at the player’s location

game.Speed - Sets the game speed multiplier

game.Speed - Sets the game speed multiplier

game.Teleport - Teleports the player to the specified world space coordinates

game.Uber - Enables or disables mana loss


graphics.ReloadResources - Forces all resources to be reloaded

graphics.Stats - Enables or disables displaying a variety of stats including frame rate


sound.Stats - Enables or disables displaying a variety of sound statistics


机翻:

BindDown -将命令绑定到按键

BindToggle -  绑定具有真/假值的命令以通过按键切换

BindUp -  将命令绑定到密钥释放

Close -  关闭控制台

Exec -  执行脚本

Exit -  退出游戏

ScreenShot -  截屏

character.AnyoneHasToken -如果有人拥有令牌,则返回 true

character.ClearPlayerTokens -  移除玩家中所有存储的触发标记

character.GiveTakeGold -  给出指定的数量。 负数会带走黄金,而 0 会将您的黄金归零。

character.GrantPlayerToken -  给玩家指定的令牌

character.GrantPlayerToken -  给玩家指定的令牌

character.LogData -  显示玩家、NPC、怪物上方的各种数据

character.RevokePlayerToken -  撤销玩家指定的令牌

character.ServerHasToken -  如果服务器有令牌则返回真

character.SetPlayerInvisible -  使敌人看不到玩家,因此不会攻击,但你可以攻击他们

character.ShowAngerLevels -  AI的调试信息

character.ShowPlayerTokens -  将玩家的触发令牌转储到控制台

character.WarpCursor -  使玩家总是扭曲到目的地

debug.physics -当事物影响物理引擎时显示数据

game.decrementdevotion -移除一个奉献点

game.Give -  创建一个对象并将其提供给玩家

game.God -  启用或禁用上帝模式

game.IgnoreRequirements -  允许玩家不考虑要求装备任何东西

game.IncrementAttribute -  给玩家一个属性点

game.incrementdevotion -  给玩家一个奉献点

game.IncrementLevel -  提升玩家等级

game.IncrementSkill -  给玩家一个技能点

game.IncrementSkill -  增加分配给指定技能的点数

game.Invincible -  切换无敌状态。

game.KillMe -  杀死玩家

game.LargeDumpFiles true/false -  启用或禁用大型转储文件的导出

game.PlayStats -  在屏幕上显示各种玩家统计数据

game.ShowCursor -  显示或隐藏鼠标光标

game.ShowDynamicObstacles -  ?

game.ShowErrorMessages -  显示或隐藏技能未就绪错误消息

game.ShowHud -  启用或禁用 UI

game.Spawn -  在玩家的位置创建一个对象

game.Speed -  设置游戏速度乘数

game.Speed -  设置游戏速度乘数

game.Teleport -  将玩家传送到指定的世界空间坐标

game.Uber -  启用或禁用魔法损失

graphics.ReloadResources -强制重新加载所有资源

graphics.Stats -  启用或禁用显示各种统计数据,包括帧速率

sound.Stats -启用或禁用显示各种声音统计信息


Cheers,



1.2.0.4以后版本添加

Added AreaTrigger.Get(object Id) Lua function to store a TriggerVolume.

Added AreaTrigger:DestroyItems() Lua function to destroy all items within a TriggerVolume. This is an expensive call based on the size of the volume and number of items that should be used sparingly.

Added character:GiveAffixItem(string ItemDbr, string prefixDbr, string suffixDbr) Lua function for spawning an item with specific affixes.

Added item:HasAffix(string affixDbr) Lua function for checking whether an item has a specific affix.

翻译

添加了 AreaTrigger.Get(object Id)

    Lua函数来存储TriggerVolume。


添加了 AreaTrigger:DestroyItems()

    Lua函数来销毁TriggerVolume中的所有项目。这是一个昂贵的调用,基于Volume的大小和应谨慎使用的项目数量。


添加 character:GiveAffixItem(string ItemDbr, string prefixDbr, string suffixDbr)

    Lua函数,用于生成具有特定词缀的项目。


添加 item:HasAffix(string affixDbr)

    Lua函数,用于检查项目是否具有特定的词缀。


具体用法未测试,请参考上面能用的那些命令的语法格式


小知识:

输入过一次命令后,再次进入控制台,按【↑】键,可以显示之前输入过的命令。

可以多次,按完↑后,还可以按↓,来回显示多次输入过的不同命令。


免责声明:
本站所发布的一切软件、图像、影音、文章等内容仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢,请支持正版,购买注册,得到更好的正版服务。如有侵权请邮件与我联系处理。
如网站内容侵犯您的权利,请联系laozhangggg@gmail.com
网站地图 | 京ICP备14012696号-7

京公网安备 11011202003779号

支持网站
目录