paxepic.blogg.se

Total war warhammer 2 console commands
Total war warhammer 2 console commands









total war warhammer 2 console commands

It’s easy enough to tell that means “the region key in string”, and “the faction key in string”. They seem to be strings, one of which says “region”, the other “faction”. We can see in Usage: that it takes TWO parameters. Since it’s a function call, which we learned about just last episode and you wouldn’t dare forget so soon, we add the brackets to it: cm:transfer_region_to_faction(). The Command: line tells you what to affix to cm:, so this would be cm:transfer_region_to_faction. Usage: transfer_region_to_faction("region", "faction") In this document, let’s take a look at two example commands to breakdown.ĭescription: Transfer a region ownership to a faction. NOTE: The campaign manager is ONLY usable in the campaign game-mode! Those two letters stand for “campaign_manager”, and it’s the big object that holds most all information we could want within the campaign game-mode.

total war warhammer 2 console commands

EVERY command in this document needs to have a prefix of cm. Now, before we go on, one thing MUST be covered. We’ll look at, first, the “Scripting Doc (CM Functions)” file. So, once more in the “Tools & Resources” page on this site, there’s a section within called “Scripting Resources”. Or maybe you got lost when you were just trying to find funny videos about cats. At this point, though, you might be asking – “how the HECK do I find out what the commands are?” And that, my friend, is why you’re reading this lesson. Commands are the driving force of most any script. In big part, commands make or break what can be done with scripts. Through these commands, we can script a whole lot of stuff! From character spawns, to new effects applied to characters and factions and armies, to quest battles, to unlocking rites, and so on. Commands are used to communicate between the Lua environment and the actual Total War Engine – the base C++ code that defines the majority of the game. Whenever we use commands, we’re treating them like function calls they’re a statement. They function (hah) identically to the functions we’ve already covered some have parameters, some have return values, they all do stuff. Every worthwhile Lua mod on the market has these in it! Anything else just concatenates strings or applies arithmetic or some nonsense.Ī command, at its bearest-bones, is a CA-defined Lua function that does stuff that we can’t see. The three of these are our introduction to messing with the game itself, and making real change. For today’s lesson, the subject is three-fold: commands, interfaces, and listeners.











Total war warhammer 2 console commands