T4modules-4emodule 2
4Emodule Part 2: Player Descriptors
t4modules | t4modules module howto guides
When starting on birth descriptors you need a reasonably good idea of how your character creation process will look. Since we will be simulating 4E, the process is already defined.
Find your /class/Game.lua file and find the _M:newGame() function. Modify the following line:
local birth = Birther.new(self.player, {"base", "role" }, function()
to read
local birth = Birther.new(self.player, {"base", "race", "class", "classoptions" }, function()
This sets the order that the character creation options appear. Note that the module will hang if you try and run it now, since it can't find these named descriptors.
Note that skills, feats and powers will be selected using ingame dialogs, so don't worry too much about those yet. The Players Handbook defines 8 races, even more in later handbooks, but this tutorial will only focus on the Dwarf and Eladrin. We will also only be focussing on the Fighter and Ranger classes.
Find the file /data/birth/descriptors.lua and edit it with the following base descriptor:
newBirthDescriptor{
type = "base",
name = "base",
desc = {
},
experience = 1.0,
talents = { },
body = { INVEN = 1000, MAINHAND = 1, OFFHAND = 1, ARMOR = 1, RING = 2, NECK = 1, ARMS = 1, FEET = 1, HANDS = 1, HEAD = 1, WAIST = 1 },
copy = { max_level = 10, lite = 4, money = 100, }, }