I want to change the equipdoll for a race. But adding equipdoll = "alchemist_golem" to dwarf.lua, say, doesn't seem to do anything.
So...what do I need to do to give a race a specific equipdoll?
equipdoll
Moderator: Moderator
Re: equipdoll
It should work. Can you make sure once generated game.player.equipdoll is correctly set ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: equipdoll
game.player.equipdoll doesn't appear to exist. Lua console doesn't find it, grep doesn't find it...closest things would seem to be self.actor.equipdoll and self.c_doll, but self is a nil value...
Re: equipdoll
How are you putting it on the race?
I just tested in game and doing game.player.equipdoll = "alchemist_golem" works fine.
So you must not be adding it to the birth descriptor correctly or the default birth descriptor is over writing it. You may need to toss it inside a generic resolver function to make sure it happens after everything else is resolved so it's not over written.
Maybe past your birth code?
I just tested in game and doing game.player.equipdoll = "alchemist_golem" works fine.
So you must not be adding it to the birth descriptor correctly or the default birth descriptor is over writing it. You may need to toss it inside a generic resolver function to make sure it happens after everything else is resolved so it's not over written.
Maybe past your birth code?
Re: equipdoll
What I did to try and minimize the chances of something going wrong was simply this - the only change was that second to last line. I tried putting it in a few other places too, though I'm afraid I can't remember exactly where. The game doesn't seem to react in any way.edge2054 wrote:Maybe past your birth code?
Code: Select all
newBirthDescriptor
{
type = "subrace",
name = "Cornac",
...
starting_intro = "cornac",
},
equipdoll = "alchemist_golem",
}
Re: equipdoll
this needs to be in the "copy" table of the descriptor
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: equipdoll
Wow. Sorry about my Sep 7 posts. I may have been on a drug or two.
Anyway that works and I feel stupid
Anyway that works and I feel stupid