• Welcome to SC4 Devotion Forum Archives.
 

News:

The SC4 Devotion Forums are no longer active, but remain online in an archived, read-only "museum" state.  It is not possible for regular members to post or use the private messaging system, and no technical support will be provided for any issues pertaining to the forums in their current state.  Attachments (those that still work) are accessible without login.

The LEX has been replaced with SC4Evermore (SC4E), and SC4E maintains an active Discord server.  For traditional forums, we recommend Simtropolis.

Main Menu

Anyone has a list of the UI numeric values codes?

Started by ROmeoBOT, March 13, 2013, 04:22:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ROmeoBOT

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?

I can't render a BAT because I'm a BOT.
I got no problems with UI and LUA.

catty

I meant," said Ipslore bitterly, "what is there in this world that truly makes living worthwhile?" DEATH thought about it. "CATS," he said eventually, "CATS ARE NICE.

ROmeoBOT

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
I can't render a BAT because I'm a BOT.
I got no problems with UI and LUA.

catty

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
I meant," said Ipslore bitterly, "what is there in this world that truly makes living worthwhile?" DEATH thought about it. "CATS," he said eventually, "CATS ARE NICE.

FrankU

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