Flags in ResEdit.

I just recently started to use ResEdit for editing EV Plug-ins and I'm having trouble with flags. In the EV Bible it gives numbers like, 0x0002, by flags, however, these numbers are unusable in ResEdit. So, I opened up the Confedertate government file and noticed that the number $6213 (I think) was used in the flags field. My question is: How do you get these flag numbers? Thanks!

------------------
Anthony Marcarelli
a.k.a. Caesar
Proud Member of Clan Mac Gaming
http://www.clanmacgaming.com
Senior Advisor of Stardock Alpha
http://stardock.simplenet.com
Sith Lord of the Galactic Empire
http://www.galacticempire.net

Quote

Originally posted by Caesar:
**I just recently started to use ResEdit for editing EV Plug-ins and I'm having trouble with flags. In the EV Bible it gives numbers like, 0x0002, by flags, however, these numbers are unusable in ResEdit. So, I opened up the Confedertate government file and noticed that the number $6213 (I think) was used in the flags field. My question is: How do you get these flag numbers? Thanks!
**

Your best bet is to get the EV and/or EVO Bible Annotated edition, or "EV Objects Formulas", all available from the archives on this site. Those documents contain a full explanation how to use the flags.

The '0x' prefix which shoes as '$' is added automatically by ResEdit, so ignore that. The numbers in the flag field are obtained by adding the various numbers for flags you want to apply to the particular resource, but the numbers are in hexadecimal notation which is based on 16 rather than 10, thus letters are added for some numbers.

The flag series you quoted, $6213, would indicate the following things about the government it applied to:

0x2000 Freighters will take bribes.
0x4000 Planets of this govt will take bribes

These two numbers added together would give $6000

0x0200 Warships will take bribes.

Adding this to the above would give $6200

0x0010 Warships of this govt will retreat when their shields
drop below 25% - otherwise they fight to the death

Adding this to the above would give $6210

0x0001 Xenophobic (Will be enemies will all governments, except
those designated as allied.)
0x0002 Ships of this govt will attack the player in non-allied
systems if he's a criminal there (useful for making one
govt care only about the player's actions on its home
turf, while another is nosy and enforces its own laws
everywhere it goes

And finally adding these two numbers would yield the flag you found: $6213.

------------------
Joe Burnette

"I find that humans can be divided into only two meaningful categories: Decent Humans and Sonsofbitches; both types appear to be evenly distributed
among all shapes, colors, sizes, and nationalities." -- Keith Laumer

I suggest you use the FlagMaker to calculate the flags: (url="http://"http://www.geocities.com/area51/stargate/7044/enter.htm")http://www.geocities.../7044/enter.htm(/url)

Zarquon

------------------
Zarquon

Thank you very much for your help!

------------------
Anthony Marcarelli
a.k.a. Caesar
Proud Member of Clan Mac Gaming
http://www.clanmacgaming.com
Senior Advisor of Stardock Alpha
http://stardock.simplenet.com
Sith Lord of the Galactic Empire
http://www.galacticempire.net