Discuss all aspects related to modding Zandronum here.
-
bleson
-
- Posts: 65
- Joined: Thu Dec 20, 2012 7:15 am
- Location: Australia
-
Contact:
#1
Post
by bleson » Tue Jan 08, 2013 6:24 am
Is it possible to use
Random (min, max) in DECORATE?
Here's what I'm trying to do
Not surprisingly, this is what I get.
Any suggestions?
Last edited by
bleson on Tue Jan 08, 2013 9:31 am, edited 1 time in total.
-
Ivan
- Addicted to Zandronum
- Posts: 2229
- Joined: Mon Jun 04, 2012 5:38 pm
- Location: Omnipresent
#2
Post
by Ivan » Tue Jan 08, 2013 6:27 am
You do not give random to the Scale parameter. It's either one value or nothing.
-
bleson
-
- Posts: 65
- Joined: Thu Dec 20, 2012 7:15 am
- Location: Australia
-
Contact:
#3
Post
by bleson » Tue Jan 08, 2013 9:33 am
I tried using A_SetScale, and that's apparently invalid?
Code: Select all
TNT1 A 0 A_SetScale (Random(1.0,4.0), Random(1.0,4.0))
-
Qent
- Retired Staff / Community Team Member
- Posts: 1424
- Joined: Tue May 29, 2012 7:56 pm
-
Contact:
#4
Post
by Qent » Tue Jan 08, 2013 2:41 pm
That's not in Zandronum yet. Do you want the actor to jump randomly between two sizes?
-
bleson
-
- Posts: 65
- Joined: Thu Dec 20, 2012 7:15 am
- Location: Australia
-
Contact:
#5
Post
by bleson » Tue Jan 08, 2013 2:58 pm
Qent wrote:
That's not in Zandronum yet. Do you want the actor to jump randomly between two sizes?
If possible,
I want the actor to set itself to a random scale (from min to max) at the start of its spawning. The randomization should be so vast that each of the same monster in a map would have a different scale, even if just by a decimal.
Upon killing one, the game would use its scale number to generate a unique score.
Last edited by
bleson on Tue Jan 08, 2013 2:59 pm, edited 1 time in total.
-
Ænima
- Addicted to Zandronum
- Posts: 3579
- Joined: Tue Jun 05, 2012 6:12 pm
#6
Post
by Ænima » Tue Jan 08, 2013 4:53 pm
For now, you'd have to create a bunch of separate actors. :/
-
Qent
- Retired Staff / Community Team Member
- Posts: 1424
- Joined: Tue May 29, 2012 7:56 pm
-
Contact:
#7
Post
by Qent » Tue Jan 08, 2013 5:15 pm
Yes, and use a RandomSpawner to spawn one at random.
-
bleson
-
- Posts: 65
- Joined: Thu Dec 20, 2012 7:15 am
- Location: Australia
-
Contact:
#8
Post
by bleson » Wed Jan 09, 2013 4:16 pm
Alright, that's what I'll have to resort to. It should be worth the amount of copypasting (using inheritance of course).
Last edited by
bleson on Wed Jan 09, 2013 4:17 pm, edited 1 time in total.