SphereCommunity
Quick question about Houses - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Quick question about Houses (/Thread-Quick-question-about-Houses)



Quick question about Houses - yopa - 03-12-2013 04:22 AM

Hey all!

I patched my multi files successfully today. My new house is there and running just fine.

At this moment, my new house is at slot 0x51.

My question is, how can I put it in-game using sphere? Not talking about doors, signs or whatever, just the structure.

I have searched on sphere_item_multis_houses_ships and other files related to it and I failed to understand.

Am I missing something too obvious? i.e: [ITEMDEF 0x51]?

Thanks!


RE: Quick question about Houses - Mordaunt - 03-12-2013 04:46 AM

You do not need the x in the itemdef. You do need to have the item scripted though to be able to call it.

Oh it's also [MULTIDEF blah] for houses... just for when you add on the missing bits later Wink


RE: Quick question about Houses - yopa - 03-12-2013 06:23 AM

Thanks Mordaunt.
However, I still failed to understand. Sad

My custom house is at the 00000051 slot on my multi.mul
I need to make it scripted, like below, so I can use it in game, for example: i_bla_house (giving me the placeable house structure)

Code:
[ITEMDEF 04064]
DEFNAME=i_multi_house_stone_plaster_small
Name=Small Stone and Plaster House
TYPE=T_MULTI
VALUE=43800
CATEGORY=Multis
SUBSECTION=Houses
DESCRIPTION=Small Stone and Plaster House
MULTIREGION=-3,-3,3,4
COMPONENT=i_door_wood,0,3,7
COMPONENT=i_sign_brass_2,2,4,5

Using ".add i_multi_house_stone_plaster_small" will give you the Small Stone and Plaster House structure, I need to do the same, but I cannot understand the connection from my multi.mul to the script.

What am I missing?

Thanks!


RE: Quick question about Houses - Mordaunt - 03-12-2013 07:10 AM

Try

[MULTIDEF 051] instead of [ITEMDEF 04064]


RE: Quick question about Houses - darksun84 - 03-12-2013 07:29 AM

That 51 in the multi.mul it's added to the "starting" id number used for multis, in the script you posted
04000 it's the starting id, while 64 it's the multi "position" in the multi.mul (so you get 04064).

Anyway, i think you are using an old sphereversion(the prerelease i think) because all multi item were updated with the MULTIDEF defition(multi "starting" id number was moved to 08000)


RE: Quick question about Houses - yopa - 03-12-2013 01:02 PM

Thanks Mordaunt and darksun84!

Used 04051 and everything worked just fine.

Another happy costumer! Tongue


RE: Quick question about Houses - RanXerox - 03-12-2013 01:23 PM

What kind of costumes do you make?


RE: Quick question about Houses - backtobasics - 03-12-2013 11:32 PM

(03-12-2013 01:23 PM)RanXerox Wrote:  What kind of costumes do you make?

Hilarious!