HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Display only food cap, not food used?

04-01-2005, 10:11 PM#1
Lil Blue Smurf
Is there any way to display only the food cap, not food used/food cap. I would love to be able to use 3 resources, but it looks really bad having 0/X for resource amount. I looked in game interface and found nothing. I am hoping that it might be changeable in an slk or something, but I fear it may be hard coded.

Failing that the display is changable... can anyone think of a way to still have units cost food, but be buildable even if the food cap is 0?

Oh... and while I am thinking about it. I messed with the set - food used trigger a bit but it didn't seem to work. Does it not work if you own units that require food? Essentially overwriting your set food used trigger with what is really used?
04-01-2005, 10:22 PM#2
Guest
Ok, with the units and food..Just make the units cost no food.
04-01-2005, 11:11 PM#3
Haytoe
Hmmmm. Try this once.

VALUE A: An event
VALUE B: A condition
VALUE C: Your dummy unit. Use a sheep, .10 Scale Value, Perm. Invis., Invul., COSTS 1 FOOD
VALUE D: Your area used for holding your dummy units.
VALUE E: A varible (Integer) that keeps a hard number count on your food used for checking currency if you want your players to buy something with it.
Code:
E: [b]VALUE A[/b]
C: [b]VALUE B[/b]
A: Unit - Create 1 [b]VALUE C[/b] for (Triggering player) at (Center of ([b]VALUE D[/b])) facing (Random point in (Playable map area))
Set VALUE E = (VALUE E + 1)

This generates the money when the VALUE A is tripped checking VALUE B. If someone want to buy something using your 3rd money system it'll have to be trigger oriented.

I'm too lazy to finish it but you should get the general idea. PM if you need more help.

Spread the rep!
04-01-2005, 11:46 PM#4
Lil Blue Smurf
Okay, I could do it through triggers and just have food used display some variable... etc etc. The problem is that I want to have the icon display in the units tooltip, not just the gold and lumber, then have a cheesy "cost: 5 meat" under that. Thats why I would need to find a work around for building with 0 food cap if I can't change how it is displayed.
04-02-2005, 02:32 AM#5
Lil Blue Smurf
Okay, closest I have come to finding out where the dispaly info for supply comes from is UI\FrameDef\UI\ResourceBar.fdf (which reads like a part of code) it has a reference to: String "ResourceBarSupplyText" so erm, yeah, I'm still looking if anyone is still looking with me :P