Staredit Network

Staredit Network -> UMS Assistance -> Randomization Switches
Report, edit, etc...Posted by Snipe)r( on 2006-12-13 at 16:38:28
I need help with randomization switches. If you are an expert i need your help. '

I opened SCMDraft and opened Trigger Editor. Here are the triggers

Trigger("Player 1"){
Conditions:
Bring("Player 1", "Zerg Zergling", "PoP", Exactly, 1);

Actions:
Set Switch("Switch0", randomize);
Set Switch("Switch1", randomize);
Set Switch("Switch2", randomize);
Set Switch("Switch3", set);
Kill Unit At Location("Player 1", "Zerg Zergling", All, "PoP");
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Switch("Switch3", set);
Switch("Switch0", not set);
Switch("Switch1", not set);
Switch("Switch2", not set);

Actions:
Set Switch("Switch3", clear);
Display Text Message(Don't Always Display, "You Rolled A 1!");
Set Deaths("Player 1", "Any unit", Add, 1);
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Switch("Switch3", set);
Switch("Switch0", not set);
Switch("Switch1", not set);
Switch("Switch2", set);

Actions:
Set Switch("Switch3", clear);
Display Text Message(Don't Always Display, "You Rolled A 2!");
Set Deaths("Player 1", "Any unit", Add, 2);
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Switch("Switch3", set);
Switch("Switch0", not set);
Switch("Switch1", set);
Switch("Switch2", set);

Actions:
Set Switch("Switch3", clear);
Display Text Message(Don't Always Display, "You Rolled A 3!");
Set Deaths("Player 1", "Any unit", Add, 3);
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Switch("Switch3", set);
Switch("Switch0", not set);
Switch("Switch1", set);
Switch("Switch2", not set);

Actions:
Set Switch("Switch3", clear);
Display Text Message(Don't Always Display, "You Rolled A 4!");
Set Deaths("Player 1", "Any unit", Add, 4);
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Switch("Switch3", set);
Switch("Switch0", set);
Switch("Switch1", set);
Switch("Switch2", set);

Actions:
Set Switch("Switch3", clear);
Display Text Message(Don't Always Display, "You Rolled A 5!");
Set Deaths("Player 1", "Any unit", Add, 5);
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Switch("Switch3", set);
Switch("Switch0", set);
Switch("Switch1", not set);
Switch("Switch2", not set);

Actions:
Set Switch("Switch3", clear);
Display Text Message(Don't Always Display, "You Rolled A 6!");
Set Deaths("Player 1", "Any unit", Add, 6);
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Switch("Switch3", set);
Switch("Switch0", set);
Switch("Switch1", set);
Switch("Switch2", not set);

Actions:
Set Switch("Switch0", randomize);
Set Switch("Switch1", randomize);
Set Switch("Switch2", randomize);
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Switch("Switch3", set);
Switch("Switch0", set);
Switch("Switch1", not set);
Switch("Switch2", set);

Actions:
Set Switch("Switch0", randomize);
Set Switch("Switch1", randomize);
Set Switch("Switch2", randomize);
Preserve Trigger();
}

//-----------------------------------------------------------------//

PS. i can give you the actualll triggers written in Classic Trigedit if needed
Report, edit, etc...Posted by fritfrat(U) on 2006-12-13 at 17:03:01
That should work just fine. You might want to change the "Don't Always Display," though.

Make sure you have hypers so the rerandomizations happen real fast. Also, I suggest putting the re-randomizations on the top, so if those happen it takes even 1 less trigger cycle.
Report, edit, etc...Posted by Snipe)r( on 2006-12-13 at 19:29:48
I dont think its working because it isnt dispaying the message

ADDITION:
nevermind its working i dont know why it wont display the text though

ADDITION:
Do i have to make those triggers for all the players?
Report, edit, etc...Posted by Mp)Blu on 2006-12-13 at 20:00:07
You'll have to set these triggers for whoever is capable of using them.
Report, edit, etc...Posted by R0y- on 2006-12-13 at 20:06:18
QUOTE(fritfrat(U) @ Dec 13 2006, 03:03 PM)
That should work just fine. You might want to change the "Don't Always Display," though.
[right][snapback]603162[/snapback][/right]

QUOTE(Snipe)r( @ Dec 13 2006, 05:29 PM)
I dont think its working because it isnt dispaying the message
[right][snapback]603169[/snapback][/right]


The reason it wont display the text is just as fritfrat said. You will need to check the "Always display" box located in the action "display text message." If "Always display" is not checked, it only shows the text when subtitles are active... O.o

So, yeah, for the text to display, check the "Always display" box.
Report, edit, etc...Posted by Snipe)r( on 2006-12-13 at 22:11:28
Another THing: Every once in a while when i go to roll the dice in my game (randomization switches) It wont do anything at all. So like ill roll a 2 then a 1 etc. Then all of a sudden it doesnt do anything.
Report, edit, etc...Posted by PCFredZ on 2006-12-13 at 23:44:01
It'd help a lot if you attached your map because there are other factors that can go unnoticed.
Report, edit, etc...Posted by DevliN on 2006-12-14 at 03:29:54
QUOTE(Snipe)r( @ Dec 13 2006, 08:11 PM)
Another THing: Every once in a while when i go to roll the dice in my game (randomization switches) It wont do anything at all. So like ill roll a 2 then a 1 etc. Then all of a sudden it doesnt do anything.
[right][snapback]603366[/snapback][/right]

Attach the map or send it to me and I can tell you what's wrong with it perhaps (I'm an expert by now when it comes to using random switches as a "dice system). biggrin.gif
Next Page (1)