Torchmodders
Modding => Modding Questions => Topic started by: Bill Hartman on March 11, 2015, 10:39:24 am
-
How in the he** do I get exactly 100 coins of gold to spawn? I go into spawnclasses, set unit type gold pieces, quantity to 100 both minand max...a random single digit number of gold spawns. I also tried using the gold100 spawn class..still a random amount.
Geez..I just want to spawn an exact amount of gold.
Thanks again!
Edit: I guess nobody has ever wanted to spawn an exact amount of gold...
-
Bump?
-
Hey Bill sorry it can git real quiet-like on weekdays round these parts :D
I'll try rassling with this on the weekend (tomorrer for me) and let you know ;)
-
Hey Bill sorry it can git real quiet-like on weekdays round these parts :D
I'll try rassling with this on the weekend (tomorrer for me) and let you know ;)
Actually, I got it. Here is a cloned unit of GOLD100 text:
[UNIT]
<STRING>CREATEAS:GOLD
<STRING>UNITTYPE:GOLD
<STRING>BASEFILE:media/units/items/base.dat
<STRING>NAME:GOLDSLOT100
<FLOAT>MINVALUE:2370
<FLOAT>MAXVALUE:2370
<FLOAT>SCALE:1.25
<TRANSLATE>DISPLAYNAME:Gold
<STRING>UNIT_GUID:7748437963535482168
[/UNIT]
This spawns exactly 100 gold. (manipulating min and maxvalue. Scale is the size of the gold pieces on the floor. For example, scale 111 fills the screen...
-
Lol who would have thought min/max 2370 would get u 100 gold!
Congratulations ;)