Digitalfox NML Questions!

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

User avatar
Digitalfox
Chief Executive
Chief Executive
Posts: 708
Joined: 28 Oct 2004 04:42
Location: Catch the Fox if you can... Almost 20 years and counting!

Re: Digitalfox NML Questions!

Post by Digitalfox »

Hello :D

I've been busy, customizing my towns...

Image

And now I'm using NML to update the stats, like population and mail generation of each house/building.

A few buildings so far and I hit a road stop... Hotel...

My code:

Code: Select all

item(FEAT_HOUSES, hotel, -1, HOUSE_SIZE_1X2) { 
	property { 
		substitute				: 0x07;
		override				: 0x07;
		accepted_cargos			: [[PASS, 8], [MAIL, 8]];
		population				: 254;
		mail_multiplier			: 147;
	} 
}
How can I make the second title also add population?

Right now one tile has 254 of population and the other 0, making a total of 5**, no 254 pop.

If I try to define also 0x08 (the second ID of the hotel) it gives me a error "Item ID 8 has already used as part of a multi-tile house.".
Attachments
Houses.png
(2.53 MiB) Not downloaded yet
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 7 guests