SphereCommunity
Craft Items amount - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Craft Items amount (/Thread-Craft-Items-amount)



Craft Items amount - larmc20 - 01-10-2014 07:44 AM

I would like to make possible to my players creating more than One item at the time...

For example:

Is there a simply way to the craft menu shows the option to create 1 TOTAL MANA and 100 TOTAL MANA without making another mana potion script?

I thought this.
ON=i_potion_ManaTotal <name> (<resmake>)
MAKEITEM=i_potion_ManaTotal
ON=i_potion_ManaTotal <name> (<resmake>)
MAKEITEM=i_potion_ManaTotal 100

BUT the 100 manas cost the same as you do one.

What is the simplest way to do that?


RE: Craft Items amount - darksun84 - 01-10-2014 08:03 AM

According to the revision, makeitem=i_potion_manaTotal,100 should properly scale the amount of resources needed.

Added #1504: Optional second parameter "amount" to MAKEITEM. Please understand that the
"additional" items crafted will neither fire any trigger, nor give experience or skill. So,
from that point of view there's no difference between "MAKEITEM i_dagger" and "MAKEITEM i_dagger,10"
(except for the number of daggers created). If the resources you have are insufficiant for
the amount, it will be shortened respectively.


RE: Craft Items amount - larmc20 - 01-10-2014 08:09 AM

Hmm... Well, it is almost working correctly...

ON=i_potion_ManaTotal 100 <name> (<resmake>)
MAKEITEM=i_potion_ManaTotal,100

Its almost correct. Except for the fact that it consumes only the reagents of the one potion not hundred.


RE: Craft Items amount - darksun84 - 01-10-2014 08:31 AM

While the skillmenu gump shows the resources for just one item, the makeitem = item,amount actually consumes the correct amount of resources !

So, I don't know if you can modify that information in the skillmenu gump Tongue


RE: Craft Items amount - Alaric - 01-10-2014 12:22 PM

Tried it the way you did it.
Resources are 10 iron ingots, 10 lutes, 8 shafts.
Code:
RESOURCES=10 i_ingot_iron,10 i_lute, 8 i_arrow_shaft

Code:
ON=i_chainmail_coif 5 <name> (<resmake>)
MAKEITEM=i_chainmail_coif,5
Result?
With 30 iron ingots, 8800 lutes and 32 shafts it made 3 chainmail coifs and it took 30iron,30lutes,24shatfs.

Where is a problem?

E: 56b Pre-release with almost everything default (cept things I fucked up while testing)


RE: Craft Items amount - larmc20 - 01-11-2014 07:36 AM

mine it doesn't happens. it doesn't cost like hundreds. It consume reagents like one potion, however it's making hundreds.