@@ -31,15 +31,29 @@ steamapps\common\KingdomComeDeliverance\Mods\Cheat\Data\data.pak
31
31
[/list]
32
32
33
33
[b][size=6]Autoexec Cheats[/size][/b]
34
- Since some cheats are temporary (they don't survive game restart) you can add cheats to a file named "autocheat.txt". Create steamapps\common\KingdomComeDeliverance\Data\autocheat.txt and place one console command per line in the file. This file is loaded and executed by Cheat mod when a level loads not when the game loads.
34
+ Since some cheats are temporary (they don't survive game restart) you can add cheat commands to "Scripts\autocheat.lua" inside Mods\Cheat\Data\data.pak.
35
+ This file is loaded and executed by Cheat mod when a level loads not when the game loads.
35
36
36
- These are the 3 commands are have in my autocheat.txt for testing:
37
- cheat_eval cheat:logSetLevel(cheat.g_cheat_log_level_debug)
38
- cheat_set_bow_reticle enable:true
39
- cheat_set_regen enable:true state:stamina amount:10
37
+ The data.pak file is a ZIP file so just edit the file from inside the zip.
38
+
39
+ These are the 3 commands are have in my autocheat.lua for testing:
40
+ System.ExecuteCommand("cheat_eval cheat:logSetLevel(cheat.g_cheat_log_level_debug)")
41
+ System.ExecuteCommand("cheat_set_bow_reticle enable:true")
42
+ System.ExecuteCommand("cheat_set_regen enable:true state:stamina amount:10")
40
43
41
44
[b][size=6]Change Log[/size][/b]
42
45
46
+ [b]1.32[/b]
47
+ [list]
48
+ [*]Removed system for loading autocheat.txt since io.open no longer works
49
+ [*]Merged new defaultProfile.xml
50
+ [/list]
51
+
52
+ [b]1.32[/b]
53
+ [list]
54
+ [*]Removed use of io.getEnv so mod loads on 1.93
55
+ [/list]
56
+
43
57
[b]1.31[/b]
44
58
[list]
45
59
[*]New command cheat_teleport_to from @pingpongmury
@@ -215,11 +229,8 @@ cheat_add_item
215
229
cheat_add_money
216
230
cheat_add_perk
217
231
cheat_add_stat_xp
218
- cheat_auto_exec
219
232
cheat_damage_all_items
220
233
cheat_eval
221
- cheat_exec_delay
222
- cheat_exec_file
223
234
cheat_find_buffs
224
235
cheat_find_horses
225
236
cheat_find_items
@@ -275,13 +286,11 @@ cheat_wash_dirt_and_blood
275
286
276
287
277
288
278
-
279
289
[b][size=6]Command Documentation[/size][/b]
280
290
[b]All of this information is available in game by running "command-name ?".[/b]
281
291
282
292
283
293
284
-
285
294
[size=4][b]cheat_eval[/b][/size]
286
295
Executes the given Lua code. This is not a cheat it is used for testing and debugging.
287
296
@@ -468,8 +477,8 @@ Adds an item to the player's inventory.
468
477
469
478
[b]Arguments:[/b]
470
479
id: (required) The item ID or all or part of a the item's name. Uses last match from cheat_find_items.
471
- health: (optional number) The condition of the item added. Default 100.
472
480
amount: (optional number) The number of items to add. Default 1.
481
+ health: (optional number) The condition of the item added. Default 100.
473
482
474
483
[b]Examples:[/b]
475
484
Adds the last item with 'bow' in its name:
@@ -733,9 +742,9 @@ You can end up in the air or under the map.
733
742
I suggest saving your game and turn on immortality first.
734
743
735
744
[b]Arguments:[/b]
745
+ x: (required number) X coordinate
736
746
z: (required number) Z coordinate
737
747
y: (required number) Y coordinate
738
- x: (required number) X coordinate
739
748
740
749
[b]Examples:[/b]
741
750
Example:
@@ -780,8 +789,8 @@ Sets one of the player's states to the given value.
780
789
Adds XP to one of the player's stats.
781
790
782
791
[b]Arguments:[/b]
783
- xp: (required number) The desired XP to add.
784
792
stat: (required) One of: str, agi, vit, or spc.
793
+ xp: (required number) The desired XP to add.
785
794
786
795
[b]Examples:[/b]
787
796
Add 100 XP to player's strength stat:
@@ -793,8 +802,8 @@ Adds XP to one of the player's stats.
793
802
Sets one of the player's stats to the given level.
794
803
795
804
[b]Arguments:[/b]
796
- level: (required number) The desired level for the given stat (max 20). Level cannot lowered.
797
805
stat: (required) One of: str, agi, vit, or spc.
806
+ level: (required number) The desired level for the given stat (max 20). Level cannot lowered.
798
807
799
808
[b]Examples:[/b]
800
809
Set player's strength to level 20:
@@ -874,9 +883,9 @@ Let me know.
874
883
Regenerates the given player state over time; pulses once per second.
875
884
876
885
[b]Arguments:[/b]
886
+ state: (required) The state to regen: all, health, stamina, or exhaust.
877
887
amount: (optional number) The amount to regen every second.
878
888
enable: (required boolean) true to enable state regen; false to disable
879
- state: (required) The state to regen: all, health, stamina, or exhaust.
880
889
881
890
[b]Examples:[/b]
882
891
Adds 1 to all states every second.:
@@ -998,11 +1007,11 @@ Teleports one or more NPCs to the given coordinates. Use cheat_loc to get locati
998
1007
999
1008
[b]Arguments:[/b]
1000
1009
max: (optional number) The maximum NPCs to teleport. Default 10.
1001
- radius: (optional number) The teleport radius around the x,y,z target. Default 5.
1002
1010
z: (required number) Z coordinate.
1003
- y: (required number) Y coordinate.
1004
- x: (required number) X coordinate.
1005
1011
token: (required) All or part of a the NPC's name.
1012
+ x: (required number) X coordinate.
1013
+ radius: (optional number) The teleport radius around the x,y,z target. Default 5.
1014
+ y: (required number) Y coordinate.
1006
1015
1007
1016
[b]Examples:[/b]
1008
1017
Teleport Father Godwin to somewhere...:
@@ -1040,8 +1049,8 @@ For some reason most of the animals and some bandits/cuman just stand around. No
1040
1049
The spawned entities are not managed so you should kill them off or load a clean save.
1041
1050
1042
1051
[b]Arguments:[/b]
1043
- radius: (optional number) The spawn radius around the player. Default 5.
1044
1052
class: (required) bandit|cuman|hare|horse|boar|sheep|pig|cow|buck|doe|reddeer
1053
+ radius: (optional number) The spawn radius around the player. Default 5.
1045
1054
count: (optional number) Number of things to spawn. Default 1.
1046
1055
1047
1056
[b]Examples:[/b]
@@ -1090,35 +1099,3 @@ Sets the weather to the given weather ID.
1090
1099
[b]Examples:[/b]
1091
1100
Set weather to foggy storm:
1092
1101
cheat_set_weather id:6
1093
-
1094
-
1095
-
1096
- [size=4][b]cheat_exec_delay[/b][/size]
1097
- Sets the number of milliseconds to delay execution of the next command.
1098
-
1099
- [b]Arguments:[/b]
1100
- ms: (required number) The number of milliseconds to delay the next command.
1101
-
1102
- [b]Examples:[/b]
1103
- 1 second delay:
1104
- cheat_exec_delay ms:1000
1105
-
1106
-
1107
-
1108
- [size=4][b]cheat_exec_file[/b][/size]
1109
- Executes a file of console commands. Use an absolute path or
1110
- path relative to SteamLibrary\steamapps\common\KingdomComeDeliverance.
1111
-
1112
- [b]Arguments:[/b]
1113
- file: (required) The file to execute.
1114
-
1115
- [b]Examples:[/b]
1116
- Manually run autocheat.txt:
1117
- cheat_exec_file file:Data\autocheat.txt
1118
-
1119
-
1120
-
1121
- [size=4][b]cheat_auto_exec[/b][/size]
1122
- This command does nothing and is here for documentation only.
1123
- You can run cheat commands automatically when a level loads by placing them in file Datautocheat.txt.
1124
- This is useful for commands that are not permanent.
0 commit comments