Wondering if someone can help with syntax and other questions on goods.
I know HasGood(location) returns the good number (0-3) for a good or -1 if there is no good. Is there syntax that would identify the specific good there, ie, instead of LAND_GOOD_ONE(returns 0) on a plain, identify Buffalo?
From goods.txt
# Rubies #0
TERRAIN_ARCTIC_MOUNTAIN_GOOD_ONE {
SpriteID 18
Sound SOUND_ID_RUBIES
Gold 1
Food 10
Production 10
Probability 0.25
Icon ICON_GOOD_ARCTIC_MOUNTAIN_ONE
}
What does "GOLD" do, what happens if you change it from 1 to something else?
"Probability 0.25"
Presume this means 1 in 4 chance that goods on Arctic Mountain will be "ONE", ie Rubies.
From goodsID.txt
"87
TERRAIN_ARCTIC_MOUNTAIN_GOOD_ONE 18 # "Rubies""
I presume the first number(87) is the number of sprites?
Second no (18) is the goods sprite id no?
Thanks for any help.
I know HasGood(location) returns the good number (0-3) for a good or -1 if there is no good. Is there syntax that would identify the specific good there, ie, instead of LAND_GOOD_ONE(returns 0) on a plain, identify Buffalo?
From goods.txt
# Rubies #0
TERRAIN_ARCTIC_MOUNTAIN_GOOD_ONE {
SpriteID 18
Sound SOUND_ID_RUBIES
Gold 1
Food 10
Production 10
Probability 0.25
Icon ICON_GOOD_ARCTIC_MOUNTAIN_ONE
}
What does "GOLD" do, what happens if you change it from 1 to something else?
"Probability 0.25"
Presume this means 1 in 4 chance that goods on Arctic Mountain will be "ONE", ie Rubies.
From goodsID.txt
"87
TERRAIN_ARCTIC_MOUNTAIN_GOOD_ONE 18 # "Rubies""
I presume the first number(87) is the number of sprites?
Second no (18) is the goods sprite id no?
Thanks for any help.
Comment