Help: More about custom recipes?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
uggardian
Posts: 75
Joined: Sat May 19, 2012 5:53 pm

Help: More about custom recipes?

Post by uggardian »

I have already made one working custom recipe (for potion of invisibility), but I have to ask one thing..
So here I have a recipe for poison arrows:

Code: Select all

defineRecipe{
item = "poison_arrow",
ingredients = {1, "arrow", 1, "potion_poison"}
}
But for making many poison arrows that wastes way too much poison bottles that seems even logical.
So for instance: is a recipe 5 arrows + 1 poison = 5 arrows possible to make?
It's easy to make the recipe take multiple items, but how to give many items for result? :|
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: Help: More about custom recipes?

Post by Grimwold »

I haven't done anything with recipes so this is just a stab in the dark, but can you use setStackSize() at all?

Discussed here:
viewtopic.php?f=14&t=3491
uggardian
Posts: 75
Joined: Sat May 19, 2012 5:53 pm

Re: Help: More about custom recipes?

Post by uggardian »

I'm trying, but I'm afraid that's something far above my skill :(
That's why I'm asking you guys :)
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: Help: More about custom recipes?

Post by JohnWordsworth »

There are a couple of solutions.

1. Instead of creating a poison arrow object, you could create a 'bundle of poisoned aroows' object. When you use the bundle from the inventory, you could replace it with 5 poison arrows in the onUseItem hook.

2. You could go to town with the custom GUI system and roll your own fletching system!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Post Reply