十字军之王3控制台代码分享
开启教程:tutorial.enable[gamestate/global/all(default:global)]–Enablethetutorial
关闭教程:tutorial.disable[gamestate/global/all(default:global)]–Disablethetutorial
显示教程调试窗口:tutorial.debugwindow–Showsthetutorialdebugwindow
为角色触发事件:event[eventid][character]–Triggeraneventforacharacter
为角色触发事件。此选项还会显示事件触发器,但是可能会导致误报错误日志。:debug_event[eventid][character]–Triggeraneventforacharacter.Itwillalsoprinttheeventtrigger,whichcanhowevercausesomefalsepositiveerrorlogs.
评估是否可以为角色触发事件。此选项还会将事件触发器传至控制台,但是可能会导致误报错误日志。:test_event[eventid][character]–Evaluateifaneventcanbetriggeredforacharacter.Itwillalsoprinttheeventtriggertotheconsole,whichcanhowevercausesomefalsepositiveerrorlogs.
探索角色文化的创新:discover_innovation(add_innovation)–Discoveraninnovationforacharacter’sculture
探索当前对角色文化着迷的创新:discover_fascination(add_fascination)[character(optional)]–Discovertheinnovationthatisthecurrentfascinationforacharacter’sculture
加入一个时代(以及之前的所有时代):join_era(unlock_era)[era][character(optional)]–Joinacertainera(andallpreviousones)
发现一个时代(以及时代本身)的所有创新:discover_era[era(optional,defaultiscurrentera)][character(optional)]–Discoverallinnovationsofacertainera(andtheeraitself)
探索所有时代和所有创新:discover_all_eras[character(optional)]–Discoverallerasandallinnovations
设定角色的信仰:set_faith[faith][character(optional)]–Setsthefaithofacharacter
在所处的朝代中提升声望:dynasty_prestige[amount(optional,default:1000)][dynastyID(optional,default:playerdynasty)]–Addsprestigetothegivendynasty
赋予王朝所有特权(默认为当前所扮演角色的王朝):gain_all_dynasty_perks[character(optional)]–Givesadynasty(currentlyplayedcharacter’sdynastybydefault)allperks
记录所有尚未定义loc键的游戏概念:log_missing_game_concept_loc–Logsallgameconceptsthathavenothadtheirlockeydefined
杀死一名角色(默认为当前扮演角色):kill(die)[character(optional)]–Killacharacter(currentlyplayedcharacterbydefault)
赋予一名角色所有特权(默认为当前扮演角色):gain_all_perks[character(optional)]–Givesacharacter(currentlyplayedcharacterbydefault)allperks
赋予一名角色一项特权(默认为当前扮演角色):add_perk[perk][character(optional)[-Givesacharacter(currentlyplayedcharacterbydefault)aspecificperk
开/关是否要立即或正常生育子女:instant_birth–Togglesifchildrenshouldbeborninstantlyorasnormal
使AI宣战(根据正常权重),绕过所有步调检查等:AI.declare_war[character(optional)]–CausestheAItodeclareawar(accordingtonormalweighting),bypassingallpacingchecksandthelike
为此角色生成一个CoA,将其视为王朝替补:generate_cadet_coa[character(optional)]–GenerateaCoAforthischaracterasiftheywereacadetoftheirdynasty
在一种信仰中加入一项教义:add_doctrine[doctrine][faith(optional)]–Addsagivendoctrinetoafaith
从一种信仰中移除一项教义:remove_doctrine[doctrine][faith(optional)]–Removesagivendoctrinefromafaith
增加一项领域法:add_realm_law[law][character(optional)]–Addsarealmlaw
增加一项领域法,跳过成本和效果,以及当前法律的废除效果:add_realm_law_skip_effects[law][character(optional)]–Addsarealmlaw,skipsthecostandthepasseffect,andtherevokeeffectsofthecurrentlaw
设定角色的文化:set_culture[culture][character(optional)]–Setsthecultureofacharacter
改变信仰的热情:change_fervor[amount(optional)][faith(optional)]–Changesthefervorofafaith
向角色透露一项机密(默认为当前扮演角色):add_secret[type][target(optional)][character(optional)]–Givesacharacter(currentlyplayedcharacterbydefault)aspecificsecret
更改一个县的发展水平,默认为首都:change_development_level[amount][province_id(optional)]–Changesthedevelopmentlevelofacounty,defaultstocapital
产生指定类型的派系:faction_spawn[faction_type]–Spawnsafactionofthespecifiedtype
设置指定类型的首个派系的不满:faction_discontent[faction_type][discontent_value]-Setsdiscontentofthefirstfactionofthespecifiedtype
指定类型的首个派系发出其需求:faction_demand[faction_type]–Thefirstfactionofthespecifiedtypesendsitsdemand
将该池有关的统计信息转存至’logs/pool_stats.csv’:dump_pool_stats–Dumpstatisticsaboutthepoolto‘logs/pool_stats.csv’
将该池有关的统计信息转存至’logs/character_creation_stats.csv’:dump_character_creation_stats–Dumpstatisticsaboutthepoolto‘logs/character_creation_stats.csv’
每天加快(帧率降低):fast_tick–Fasterticking(lowerframerate)
一个省的单位移动:instamove(quickmove)–unitsmoveoneprovinceeachday
开/关是否要屏蔽所有消息(提示/通知):supress_messages–Toggleifallmessages(toasts/notifications)shouldbesuppressed
开/关是否要压缩存档:force_save_compression–Toggleifsavesshouldbecompressed
为当前日期的所有书签字符写入人像数据:dump_bookmark_portraits–Writesportraitdataforallbookmarkcharactersatcurrentdate
显示关于ai的分析数据:print_ai_timings–Printsprofilingdataaboutai
清除人像缓存。强制所有人像刷新:Portrait.ClearCache–Clearstheportraitcache.Forcesallportraitstorefresh
打开人像编辑器:portrait_editor(pe)–Opentheportraiteditor
在光标位置生成指定实体:spawnentity[entityname][state(optional)]-Spawnsspecifiedentityatcursorposition
清除使用spawnentity命令生成的实体:clearspawnedentities–Clearsentitiesspawnedwithspawnentitycommand
为游戏的地图对象生成定位器:MapObjects.GenerateGameLocators[type]]filename(optional)]–Generateslocatorsforthegame’smapobjects
显示地图对象调试信息:MapObjects.Debug–Printsoutmapobjectdebuginformation
显示相机调试信息:Camera.Debug–Printsoutcameradebuginformation
保存相机位置:Camera.Save–Savecameraposition
加载相机位置:Camera.Load–Loadcameraposition
使用特定的颜色模式保存地图的png:Map.SavePNG[filename][yes/noShouldrenderflat(optional)]–Saveapngofthemapwithaspecificcolormode
重建所有邻接关系:Adjacencies.Rebuild–Rebuildalladjacencies
在2个位置之间生成指定的行:spawnline[linename][startposition‘x,y,z’(nospaces)][endpositionx,y,z(nospaces)]>–Spawnsspecifiedlinebetween2positions
清除行:clearlines–Clearlines
未定义:SplineNetwork.GenerateAssets–Undefined
未定义:shader_debug–Undefined
复合节点编辑器:compoundnodeeditor–CompoundNodeEditor
粒子节点编辑器:particleeditor–ParticleNodeEditor
显示脚本文档:script_docs(script_documentation)–Printsscriptdocumentation
生成设置GUI:settings–SpawnsasettingsGUI
屏幕截图:screenshot–Takescreenshot
生成系统优化GUI:tweak–SpawnsatweakerGUI
纹理查看器:textureviewer–TextureViewer
纹理列表:texturelist–TextureList
皮肤编辑器:tools.skins–SkinEditor
开/关3D统计:3dstats–Toggles3DStats
列出音频事件:audio.list_events–Listaudioevent
播放音频事件:audio.play_event[Audioevent]–Playaudioevent
显示当前的CPU使用情况:audio.cpu_info–Showscurrentcpuusage
切换主交换链垂直同步:vsync–Togglemainswapchainsvsync
重新加载纹理:gfx.reloadtexture–Reloadtextures
报告所使用的渲染后端:rendertype–Reportswhatrenderbackendisused
设置或获取任务线程数:Threading.TaskThreadCount[Thenumberoftaskthreads]–Setorgetthenumberoftaskthreads
模拟崩溃(会导致游戏退出)。:CrashReporter.SimulateCrash–Simulatesacrash(resultinginthegameexiting).
删除X天前的本地崩溃转储。:CrashReporter.DeleteCrashData–DeletelocalcrashdumpsolderthanXdays.
选择现存gfx皮肤:gfx.skin–Selectactivegfxskin
创建可停靠:Dockables.Create[Dockablename]–Createdockable
创建可停靠布局:Dockables.CreateLayout[Dockablelayoutname]–Createdockablelayout
生成GUI编辑器:gui_editor–Spawnsguieditor
转储已注册的数据类型:DumpDataTypes–Dumpstheregistereddatatypes
开/关地图编辑器:map_editor–Togglemapeditor
停止当前播放的曲目:Music.StopTrack–Stopsthecurrentlyplayingtrack
显示或设置音乐系统的当前权重:Music.Weight–Showsorsetsthecurrentweightofthemusicsystem
播放指定的曲目:Music.PlayTrack[trackname]–Playsthespecifiedtrack
重置音乐系统:Music.Reset–Resetsthemusicsystem
再次锁定所有成就:Debug.Achievements.ResetAll–Locksallachievementsagain
显示一个对象浏览器窗口:explorer–Showsanobjectexplorerwindow
将xp添加到所有生活方式中:add_lifestyle_xp_all[amount(optional)][character(optional)]–Addsxpalllifestyle
将xp添加到指定生活方式中:add_diplomacy_lifestyle_xp[amount(optional)][character(optional)]–Addsxptothegivenlifestyle
将xp添加到指定生活方式中:add_martial_lifestyle_xp[amount(optional)][character(optional)]–Addsxptothegivenlifestyle
将xp添加到指定生活方式中:add_stewardship_lifestyle_xp[amount(optional)][character(optional)]–Addsxptothegivenlifestyle
将xp添加到指定生活方式中:add_intrigue_lifestyle_xp[amount(optional)][character(optional)]–Addsxptothegivenlifestyle
将xp添加到指定生活方式中:add_learning_lifestyle_xp[amount(optional)[[character(optional)]–Addsxptothegivenlifestyle
重新加载本地化文件并切换语言:switchlanguage[languagename]–Reloadlocalizationfilesandswitchlanguage
重新载入assets文件:reload[filename]–Reloadsassets
现在是几点?:time–Whattimeisit?
创建一个小型转储:minidump[filepath]–Createsaminidump
导致应用程序崩溃:crash–Causetheapplicationtocrash
切换调试模式:debug_mode–Togglesdebugmode
切换释放模式:release_mode–Togglesreleasemode
创建虚拟小部件。参数为0时,文件名将为gui/debug/test_gui.gui,小部件名称将为test_window:GUI.CreateWidget(gui_test,test_gui)[Filename][Widgetname]–Createdummywidget.With0argumentsthefilenamewillbegui/debug/test_gui.gui,andthewidgetnamewillbetest_window
清除虚拟小部件:GUI.ClearWidgets–Cleardummywidget
在game.log文件中显示所有控制台命令。:helplog–Printoutallconsolecommandstogame.logfile.
显示所有控制台命令或特定的命令描述。:help[commandname]–Printoutallconsolecommandsoraspecificcommanddescription.
双彩虹协助。:helphelp–DoubleRainbowhelp.
在控制台和游戏日志中显示版本。:version–Printstheversiontotheconsoleandthegamelog.
勾选任意天数:tick_day[numberofdays]–Ticksanynumberofdays
日志统计:statistics–Logsstatistics
从磁盘上的savegame加载gamestate:load[filename]–Loadgamestatefromsavegameondisk
检查存档和读档持久性:test_save–Checksaveandloadpersistence
将当前的游戏状态保存到磁盘:save[filename]–Savescurrentgamestatetodisk
重新计算修改器:recalculate_modifiers[{ifanargumentisgiven,ALLmodifierswillbecalculated}]–Recalculatesmodifiers
执行效果:effect[{effectscript}]–Executeeffect
在/run中执行效果文件:run[{effectfile}]–Executeeffectfilein/run
测试触发脚本:trigger[{triggerscript}]–Testtriggerscript
发送聊天消息:chat[Message]–Sendchatmessage
更改扮演的角色:play[CharacterID]–Changeplayedcharacter
开始观看比赛:observe(ob)–Startobservingthegame
显示角色:hello[CharacterID]–Showacharacter
显示历史人物:hello_history[ScriptedhistorycharacterID]–Showacharacterfromhistory
显示头衔:show_title[Titletag]–Showatitle
查找头衔:find_title[Titlename]–Findatitle
选择一个省:select_province[ProvinceId]–Selectaprovince
改变一个县的文化:change_culture[provinceid][culture]–Changecultureofacounty
将同一种文化的所有县合并为一种新文化:merge_culture[fromculture][toculture]–Mergeallcountiesofonecultureintoanotherculture
增加黄金:gold(cash,dough)[Amount]–Addgold
增加虔诚:add_piety(piety)[Amount]–Addpiety
增加声望:add_prestige(prestige)[Amount]–Addprestige
将头衔赋予指定角色:give_title(gt)[Title][CharacterID(optional,theplayerbydefault)]–Givesthetitletothespecifiedcharacter
宣布该角色获得该头衔:add_claim(ac)[CharacterID(optional,theplayerbydefault)][Title]–Givesthecharacteraclaimonthetitle
在当前年龄基础上增加年龄:age[Age][CharacterID]–Addsagetothecurrentage
显示角色的历史:IDhistorical_id(hist)[CharacterID]–Showsthehistoricalidofacharacter
为角色添加特质:add_trait(at)[Trait][CharacterID(optional,appliestoplayercharacterotherwise)]–Addstraittoacharacter
设置角色的性别:set_sexuality[sexuality][CharacterID(optional,appliestoplayercharacterotherwise)]–Setsthesexualityofacharacter
显示有关角色所涉及的所有秘密的所有信息:secret_info(si)[characterID(optional)]–Showsallinfoaboutallsecretsthatthecharacterisinvolvedin
移除角色的特质:remove_trait(rt)[Trait][CharacterID(optional,appliestoplayercharacterotherwise)]–Removestraitfromacharacter
使角色怀孕:pregnancy(child_birth,impregnate)[motherid][fatherid(0oremptyfornofather)][instantbirth(yes/no)]–Makeacharacterpregnant
重绘纹章:redraw_coa–Redrawcoatofarms
一天之内AI会肯定所有事件:yesmen(yesman,debug_yesmen,ym)–AIwillalwayssayyestoeverythingwithinaday
一天之内AI会否定所有事件:nomen(noman,debug_nomen,nm)–AIwillalwayssaynotoeverythingwithinaday
启用监视窗口:watch(ww)–Enableswatchwindows
启用AI监视窗口:aiwatch–Enablesaiwatchwindows
启用AI战争协调员监视窗口:ai_war_coordinator_watch–EnablesAIwarcoordinatorwatchwindow
停留在下一个加载屏幕上:loading_screen(ls)–Staysonthenextloadscreen
在日志中显示错误:error–Showerrorsinlog
测试发送消息:test_message[type][char_id/title_key/gotoprovince_id]–Testsendingamessage
显示游戏日志:gamelog–Showgamelog
发现所有针对该玩家的阴谋:know_schemes–Discoversallschemestargettotheplayer
结束所有针对该玩家的阴谋:end_schemes–Endsallschemestargettotheplayer
运行脚本测试:scripted_tests[pattern(optional)]–Runscriptedtests
强制:OoSforce_oos–ForceOoS
显示事件队列调试:event_queue–Printeventqueuedebug
显示事件调试计数:event_counts–Printeventdebugcounts
生成战斗场景中的攻击或防御方:spawn_combat_army[scenario][combatside]–Spawnsattackingordefendingsideofacombatscenario
测试脚本化的战斗场景:combat[scenario]–Testascriptedcombatscenario
测试脚本化的战斗场景:combat_test[scenario][iterations]–Testascriptedcombatscenario
切换角色调试信息的可见性:charinfo–Togglesthevisibilityofthecharacterdebuginfo.
显示当前的随机日志:print_randomlog–Printsthecurrentrandomlog.
转储OOS信息。:oos_dump–DumpsOOSinfo.
输出行省地形文件。:output_terrain–Outputsprovinceterrainfile.
勾选展开X刻度延展:tick_development[Numberofticks]–TickthespreadingofdevelopmentforXticks
列出服务器上的所有玩家:players–Listsallplayersonserver
踢出指定名字的玩家:kick[Playername]–Kicksaplayerwiththegivenname
添加脚本化关系:add_relation[relationname][char01][char02]–Addsascriptedrelation
删除脚本化关系:remove_relation[relationname][char01][char02]–Removesascriptedrelation
增加现有压力值:add_stress[stress][characterid(optional)]–Addthevaluetoexistingstress
将角色所有基本技能归零,并模拟成长到特定年龄(将改变年龄):simulate_child_skills[age][characterid(optional)][iterations]–Zeroesallbaseskillsandsimulategrowthtoaspecificageofcharacter(willchangeage)
将压力更改为该值:set_stress[stress][characterid(optional)]–Changestresstothevalue
将值添加至现有恐惧:add_dread[dread][characterid(optional)]–Addthevaluetoexistingdread
将恐惧更改为该值:set_dread[dread][characterid(optional)]–Changedreadtothevalue
为角色设定焦点:set_focus[focus]]character]–Setafocusforthecharacter
为角色添加一个被甲武士团:add_maa[MAAtype][character][banner_index]–Addanmen-at-armsregimenttothecharacter
清除控制台:clear(clr)–Clearconsole.
重新计算角色的继承:recalculate_succession[CharacterID]–Recalculatesthesuccessionofacharacter
启用角色的:AIAI.Enable[CharacterID]–EnablestheAIofacharacter
禁用角色的:AIAI.Disable[CharacterID]–DisablestheAIofacharacter
设定角色的外交:set_diplomacy[value][character(optional)]–Setsthediplomacyofacharacter
设置角色的武术:set_martial[value][character(optional)]–Setsthemartialofacharacter
设置角色的管理:set_stewardship[value][character(optional)]–Setsthestewardshipofacharacter
设置角色的谋略:set_intrigue[value][character(optional)]–Setstheintrigueofacharacter
设定角色的学问:set_learning[value][character(optional)]–Setsthelearningofacharacter
设置角色的勇猛:set_prowess[value][character(optional)]–Setstheprowessofacharacter
改变角色的外交:change_diplomacy[value][character(optional)]–Changesthediplomacyofacharacter
改变角色的武术:change_martial[value][character(optional)]–Changesthemartialofacharacter
更改角色的管理:change_stewardship[value][character(optional)]–Changesthestewardshipofacharacter
改变角色的谋略:change_intrigue[value][character(optional)]–Changestheintrigueofacharacter
改变角色的学问:change_learning[value][character(optional)]–Changesthelearningofacharacter
改变角色的勇猛:change_prowess[value][character(optional)]–Changestheprowessofacharacter
删除角色的所有特质:clear_traits[character(optional)]–Removesallthetraitsofacharacter
删除角色的所有修改器:clear_character_modifiers[character(optional)]–Removesallthemodifiersofacharacter
为角色设置指定绰号:set_nick(set_nickname)[nick_key][character(optional)]–Setsthespecifiednicknametoacharacter
删除角色的绰号:remove_nick(remove_nickname)[character(optional)]–Removesthenicknameofacharacter
显示调试计时信息:timer–Printsoutdebugtiminginfo
开始调试计时:timer_start–Startsdebugtiming
重新启动(重置并启动)调试计时:timer_restart–Restarts(resetsandstarts)debugtiming
重置调试计时:timer_reset–Resetsdebugtiming
停止调试计时:timer_stop–Stopsdebugtiming
转储调试计时信息:timer_dump–Dumpsdebugtiminginfo
将计时器信息放入剪贴板:Ct–Putstimerinfoinclipboard
玩家立即建造:instabuild(quickbuild)–Playersbuildthingsinstantly
验证AI单位路径:verify_ai_path–VerifyanAIunit’spath