Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: HELP: Golden goose with golden eggs  (Read 515 times)

Milkbot

  • Bay Watcher
    • View Profile
    • dA Page
HELP: Golden goose with golden eggs
« on: March 24, 2011, 04:22:05 am »

I'm trying to make a goose that has a lowish chance of being born and will lay golden eggs, capable of being melted to gold bars.
How can I do this?

Here's what I have so far.
Spoiler (click to show/hide)

I created a new itemgloss file for the egg item.
Is there a meltable tag I should add, and how much bars should come from it? I figure it's probably easier to just add a custom reaction, but that feels clunkier than having it fit in with the established melting function.


Additionally, is it possible to have it so the item named "golden egg" rather than golden goose egg?

Thanks muchly : )
Logged
(*v*  )         FRO-
/(  .    )\         STED
_|   _|             BUTTS

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: HELP: Golden goose with golden eggs
« Reply #1 on: March 24, 2011, 08:13:53 am »

You don't use EGG_SIZE or CLUTCH_SIZE with LAYS_UNUSUAL_EGGS.  Those are only for use with normal eggs.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: HELP: Golden goose with golden eggs
« Reply #2 on: March 24, 2011, 08:27:00 am »

      [LAYS_UNUSUAL_EGGS:G_EGG:ITEM_GOLDEN_EGG:INORGANIC:GOLD]

I created a new itemgloss file for the egg item.
Er, it's not possible to define new item tokens (like "G_EGG"), since they're all hardcoded into the game itself - the only ones you can possibly use are these ones.

If you want to make a tool, then use TOOL:ITEM_TOOL_GOLDEN_EGG and then define the tool's SIZE and/or MATERIAL_SIZE to determine how many gold bars you get from melting it.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.