ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Wed Apr 26, 2017 2:01 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: equipdoll
PostPosted: Fri Sep 07, 2012 1:46 am 
Offline
Halfling

Joined: Fri Sep 07, 2012 1:34 am
Posts: 100
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?


Top
 Profile  
 
 Post subject: Re: equipdoll
PostPosted: Fri Sep 07, 2012 7:04 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10090
Location: Angolwen
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 ;)


Top
 Profile  
 
 Post subject: Re: equipdoll
PostPosted: Fri Sep 07, 2012 8:06 pm 
Offline
Halfling

Joined: Fri Sep 07, 2012 1:34 am
Posts: 100
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...


Top
 Profile  
 
 Post subject: Re: equipdoll
PostPosted: Fri Sep 07, 2012 8:43 pm 
Offline
Retired Ninja

Joined: Fri May 28, 2010 4:38 pm
Posts: 3756
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?

_________________
Jack's Cheese and Bread Snack


Top
 Profile  
 
 Post subject: Re: equipdoll
PostPosted: Sat Sep 08, 2012 12:32 am 
Offline
Halfling

Joined: Fri Sep 07, 2012 1:34 am
Posts: 100
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:
newBirthDescriptor
{
   type = "subrace",
   name = "Cornac",

...

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


Top
 Profile  
 
 Post subject: Re: equipdoll
PostPosted: Sat Sep 08, 2012 10:56 am 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10090
Location: Angolwen
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 ;)


Top
 Profile  
 
 Post subject: Re: equipdoll
PostPosted: Sat Sep 08, 2012 2:17 pm 
Offline
Halfling

Joined: Fri Sep 07, 2012 1:34 am
Posts: 100
Wow. Sorry about my Sep 7 posts. I may have been on a drug or two.

Anyway that works and I feel stupid


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group