Staredit Network

Staredit Network -> UMS Assistance -> Is it necessary to clear Random Switches?
Report, edit, etc...Posted by hata711 on 2005-01-23 at 06:16:55
I have 4 randomized switches and 15 sets of randomized triggers.

Main Trigger (Fires random switches)

15 sets of randomized triggers.

=========Then=========
I put 4 different randomized switches in main trigger in the action list.

And i made 15 different sets of random groupings.

Do i need to clear random switches in those 15 sets?
Report, edit, etc...Posted by AqoTrooper on 2005-01-23 at 06:59:38
clear them? if you want to set them to be cleared than yes, if you're gonna randomize them again later than there's no point to clear them since they'll randomly change later anyway.

It depends on what you need - if you need them cleared than clear them, if you're not gonna use those switches anymore than you don't have to clear them since you're not gonna use them anyway, and if you're gonna randomize them again later than they'll get randomized and it doesn't matters what you did to them before.
Report, edit, etc...Posted by DT_Battlekruser on 2005-01-23 at 12:06:48
Pretty much what ago said, if you expect them to be all clear prior to randomising yes, otherwise no and understand they they will be screwed up. I suggest clearing them so you have less bugs.
Report, edit, etc...Posted by AqoTrooper on 2005-01-23 at 13:39:09
QUOTE(DT_Battlekruser @ Jan 23 2005, 08:06 PM)
I suggest clearing them so you have less bugs.
[right][snapback]130791[/snapback][/right]

Not true, saying that having the switches be set and not clear cause bugs is like saying that having a marine with 50% hit points and not 100% hit points might cause bugs as well.
Switches are 1 bit varibles (and that's what most makers don't understand), their value can no way effect anything else or cause bugs.
Yet you can give them values and check those values later in order to cause things to heppen.

QUOTE(DT_Battlekruser @ Jan 23 2005, 08:06 PM)
Pretty much what ago said.[right][snapback]130791[/snapback][/right]

darnit, it's aqo, with a Q, not a G!
Report, edit, etc...Posted by Staredit.Net Essence on 2005-01-23 at 14:09:58
lol, I never knew that aqo.

Juast an addition to what was said before, if you aren't planning on using the switch again for anything, it doesn't matter what you do to it.
Report, edit, etc...Posted by DT_Battlekruser on 2005-01-23 at 16:11:23
QUOTE
Not true, saying that having the switches be set and not clear cause bugs is like saying that having a marine with 50% hit points and not 100% hit points might cause bugs as well.


That's not what I mean. If you leave the switches rndomized is is easy to forget that they aren't all clear. It is a suggestion not a requirement.
Report, edit, etc...Posted by BeeR_KeG on 2005-01-23 at 16:14:05
Once the triggers are randomized you need to randomize them again manually to keep getting random effect.
Report, edit, etc...Posted by chuiu on 2005-01-23 at 17:29:52
QUOTE(AqoTrooper @ Jan 23 2005, 12:39 PM)
Not true, saying that having the switches be set and not clear cause bugs is like saying that having a marine with 50% hit points and not 100% hit points might cause bugs as well.
Switches are 1 bit varibles (and that's what most makers don't understand), their value can no way effect anything else or cause bugs.
Yet you can give them values and check those values later in order to cause things to heppen.
darnit, it's aqo, with a Q, not a G!
[right][snapback]130820[/snapback][/right]


We cant tell that without selecting your name though.
Report, edit, etc...Posted by LegacyWeapon on 2005-01-23 at 17:41:46
QUOTE(Chu @ Jan 23 2005, 05:29 PM)
We cant tell that without selecting your name though.
[right][snapback]131013[/snapback][/right]

Well, he should still be able to correct people...
Report, edit, etc...Posted by terrenblade on 2005-01-23 at 17:54:36
it depends what you use them for, like every one said.

I'm going to make some assumtions now.

If you're using the triggers one time only, to set up a random thing in the map. Then your not going to need to clear them, unless you want to save on swiches by reuseing them.

But if your going to be using those random swiches fairly often, say to descide what reward a player gets for killing something, or which base the monsters attack twards, then you can leave the swiches randomized, or clear them as one of the conditions for the trigger that randomizes them, which would be good as you would not then need an extra trigger to run the randomizer again if it came up 0000 or whatever combonation is unused.

One more thing before I post, if your trigger is running to many times in a row, try adding a death of unit when the trigger fires, and requiering it to have 0 deaths of unit for the trigger to fire, then if the randomizing trigger sets the death of that unit to 0, you'll have no problems with triggers spamming themselves.

Next Page (1)