Stacking foods?

For questions relating to POL scripting (not necessarily related to WoD)

Moderators: Siobhan, Sebastian, Drocket

Stacking foods?

Postby Gandir on Fri Jun 11, 2004 9:17 am

Drocket,

I'm running into a problem with pizza crusts not stacking and I remembered that at one point they didn't stack on WoD either. For a while they were being created as a single pizza crust graphic (as though stacked but without the stacked graphic).

I've been looking through all the scripts and made a few changes but haven't got them so they are created with the stacked graphic yet. Do you remember quickly what you did to get that working for foods like pizzas?

Thanks in advance!
Gandir
Jr. Oldbie
 
Posts: 213
Joined: Thu Oct 31, 2002 1:59 am

Postby SDonald on Fri Jun 11, 2004 11:05 am

That's odd. I have pizza crusts stack fine.
Are you using Drocket's recent verdata and tiledata?

Regards,
Stephen Donald.
SDonald
Regular Poster
 
Posts: 102
Joined: Fri Oct 11, 2002 7:47 am
Location: Australia

Postby Gandir on Fri Jun 11, 2004 7:37 pm

Well, yes and no...

I am working on a shard that is based off of the Sanctuary scripts, which were based off of the WoD scripts at some point in the not-too-distant past.

The original Tiledata and Verdata that we got from them didn't have any of the new stuff that Drocket put in. However, it did have a bunch of new clothing and weapon tiles/gumps that the Sanctuary folks put in and those had some conflicts with the LBR mobs once we updated to AoS. So... I recently redid all of the Sanctuary stuff and used recent versions of the WoD Tiledata and Verdata files as my starting point to re-enter those the Sanct tiles and gumps.

So, I should have everything Drocket has put into those files lately but I don't think that is the issue....

In the cooking scripts, pizza crusts are item 0xC803 and that is the same in the Sanctuary scripts. That item uses Graphic 0x1083 and looking in the Tiledata for that graphic I find a single pizza crust graphic in both versions of the Tiledata. It is not defined as "stackable" in the Tiledata (in either version).

The Sanct scripts have some differences, but the section where these items are actually created in the player's backpack are now the same.

Before I changed them to match, I was getting a single pie crust as the "stacked" graphic that would say "4 uncooked pizzas" or whatever. Now I get a bunch of individual pie crusts, unstacked, which makes a whole lot more sense to me, since that item is not defined as stackable in the Tiledata and is not listed as a stackable item in the "itemtypes.inc" file.

I am not sure how Drocket got the effect of stacked pizzas, since I can't find a graphic for them. I will take another look at the whole thing today. I was pretty tired last night when I went through it, so I might have missed something.

Thanks,


-Gandir
Gandir
Jr. Oldbie
 
Posts: 213
Joined: Thu Oct 31, 2002 1:59 am

Postby SDonald on Sat Jun 12, 2004 3:15 am

We both have WoD in our past....
My script have in itemdesc:
Code: Select all
Item 0xc803
{
   Name         pizzacrust
   Script      cooking
   Graphic      0x1040
   Color      150
   Desc         unbaked pizza crust%s
   weight      1/2
}


.create 0xc803 2
works fine.
SDonald
Regular Poster
 
Posts: 102
Joined: Fri Oct 11, 2002 7:47 am
Location: Australia

Postby Gandir on Sat Jun 12, 2004 7:09 am

That's what I was missing. Thanks a bunch.

That's why I previously got into the habit of having both versions of the scripts up side-by-side and comparing each line... but I didn't do that with these for some reason. I didn't notice that the WoD version had 0x1040 instead of 0x1083 for the graphic.

Now, I'll have to look into why that item stacks and the other one didn't. But at least I can scratch that annoying little bug off my list. ;)

Thanks again!
Gandir
Jr. Oldbie
 
Posts: 213
Joined: Thu Oct 31, 2002 1:59 am


Return to Scripting Forum

Who is online

Users browsing this forum: No registered users and 0 guests

cron