equipdoll

Moderator: Moderator

Post Reply
Message
Author
minmay
Wyrmic
Posts: 286
Joined: Fri Sep 07, 2012 1:34 am
Contact:

equipdoll

#1 Post by minmay »

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?

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: equipdoll

#2 Post by darkgod »

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 ;)

minmay
Wyrmic
Posts: 286
Joined: Fri Sep 07, 2012 1:34 am
Contact:

Re: equipdoll

#3 Post by minmay »

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...

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: equipdoll

#4 Post by edge2054 »

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?

minmay
Wyrmic
Posts: 286
Joined: Fri Sep 07, 2012 1:34 am
Contact:

Re: equipdoll

#5 Post by minmay »

edge2054 wrote:Maybe past your birth code?
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.

Code: Select all

newBirthDescriptor
{
	type = "subrace",
	name = "Cornac",

...

		starting_intro = "cornac",
	},
	equipdoll = "alchemist_golem",
}

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: equipdoll

#6 Post by darkgod »

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 ;)

minmay
Wyrmic
Posts: 286
Joined: Fri Sep 07, 2012 1:34 am
Contact:

Re: equipdoll

#7 Post by minmay »

Wow. Sorry about my Sep 7 posts. I may have been on a drug or two.

Anyway that works and I feel stupid

Post Reply