SC4 Devotion Forum Archives

SimCity 4 General Discussion and Tutorials => SimCity 4 General Discussion => Topic started by: ROmeoBOT on March 13, 2013, 04:22:19 AM

Title: Anyone has a list of the UI numeric values codes?
Post by: ROmeoBOT on March 13, 2013, 04:22:19 AM
I'm making a custom UI and was wondering if I could find a list of the codes in the UI files that gives a game variable.
Example:

Power y/n    = 00001076
Water y/n    = 00001077
monthly cost = 0000106c
goofy stats   = 0000106b

Anyone who knows all the values?

Title: Re: Anyone has a list of the UI numeric values codes?
Post by: catty on March 13, 2013, 11:43:13 AM
Recommend you take a look thru the SC4 Encyclopaedia

some links to get you started

http://www.wiki.sc4devotion.com/index.php?title=InstanceFormats

http://www.wiki.sc4devotion.com/index.php?title=UI

http://www.wiki.sc4devotion.com/index.php?title=Category:MTS2

-catty
Title: Re: Anyone has a list of the UI numeric values codes?
Post by: ROmeoBOT on March 17, 2013, 11:59:38 AM
Thx for the links, I found some useful stuff there.

But I have some tricky questions, here I go:

I want to make a Building(Casino) a reward that is only available when Ordinance_gambling is on. How do I do that?
I can't get the syntax in the LUA file right.

I want to make a calculation with the game numbers that obv are floats, but prints as integers. I got Math.random() to work, and Math.abs() but I can't get math.truncate to work at all. Anyone who knows what math.functions are available in SC4?

More questions later. I'm just learnig the basics  ;D
Title: Re: Anyone has a list of the UI numeric values codes?
Post by: catty on March 18, 2013, 03:19:51 AM
Quote from: ROmeoBOT on March 17, 2013, 11:59:38 AM
...More questions later. I'm just learning the basics  ;D

Sorry you have already passed me as far as doing this is concerned, my only suggestion is you find a existing Casino that has already done this and take a look at how they did it

-catty
Title: Re: Anyone has a list of the UI numeric values codes?
Post by: FrankU on March 18, 2013, 03:22:53 AM
Thanks Catty,

I never thought of asking here or searching in the Wiki, but was just searching with Reader and UI Editor in the existing UI's by Maxis....
This makes it a bit more easy.

Frank