Torchmodders

Modding => Modding Questions => Topic started by: Bill Hartman on March 11, 2015, 10:39:24 am


Title: [solved] spawnclasses
Post 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...
Title: Re: spawnclasses
Post by: Bill Hartman on March 12, 2015, 04:11:37 pm
Bump?
Title: Re: spawnclasses
Post by: Phanjam on March 12, 2015, 04:49:05 pm
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 ;)
Title: Re: spawnclasses
Post by: Bill Hartman on March 12, 2015, 06:00:38 pm
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:

Code: [Select]
[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...
Title: Re: [solved] spawnclasses
Post by: Phanjam on March 12, 2015, 10:47:54 pm
Lol who would have thought min/max 2370 would get u 100 gold!

Congratulations ;)