Staredit Network

Staredit Network -> UMS Assistance -> Deaths problem
Report, edit, etc...Posted by r[s]t on 2005-08-12 at 18:10:46
Bring(P12, AtLeast, 1, Cover, Health-R);
Bring(CurrentPlayer, Exactly, 0, TAKEING COVER, Anywhere);
Deaths(CurrentPlayer, Exactly, 0, 131);

SetDeaths(P3, SetTo, 1, 131);
DisplayText("This looks like a good place to hide!", 4);
PreserveTrigger();
Comment("see cover");





Bring(P12, AtLeast, 0, Cover, Health-R);
Bring(CurrentPlayer, Exactly, 0, TAKEING COVER, Anywhere);

SetDeaths(P1, SetTo, 0, 131);
PreserveTrigger();
Comment("see cover");




problem... Triggewr is still preserveing itself (like display text) over and over
Report, edit, etc...Posted by SacredElf on 2005-08-12 at 18:19:58
why are those Set counters for?
Report, edit, etc...Posted by Kumano on 2005-08-12 at 18:52:14
Put the display text message into a different trigger with no preserve trigger.
Report, edit, etc...Posted by r[s]t on 2005-08-12 at 18:58:07
then it would only play once
Report, edit, etc...Posted by Kumano on 2005-08-12 at 19:05:22
Then put a Wait action in there, or if you want part of it to constantly be preserved you can put the display text in a different trigger with a wait action only in that trigger.
Report, edit, etc...Posted by Heimdal on 2005-08-12 at 19:27:15
Maybe because you're setting the deaths for player 3 in the first trigger, but player 1 in the second trigger, and using Current Player in the conditions of both? Be consistent here...
Report, edit, etc...Posted by EzDay281 on 2005-08-13 at 00:07:51
The problem is obvious, and there's two of them- one of which Heimdal said.
You said "Atleast 0". That means that if there's anymore than negative 1 P12 Covers there, it'll run.

I, of all people, am first to see that. Quite amazing, considering how unusualy easily I miss details like that.
Report, edit, etc...Posted by Heimdal on 2005-08-13 at 01:13:27
I saw it too, but I don't think it's affecting the triggers. A "bring at least 0" condition would pretty much be like an "always" condition.
Report, edit, etc...Posted by r[s]t on 2005-08-13 at 03:23:21
Bring(P12, AtLeast, 1, Cover, Health-R);
Bring(CurrentPlayer, Exactly, 0, TAKEING COVER, Anywhere);
Deaths(P1, Exactly, 0, 131);

SetDeaths(P1, SetTo, 1, 131);
DisplayText("This looks like a good place to hide!", 5);
PreserveTrigger();
Comment("see cover");


Bring(P12, AtLeast, 0, Cover, Health-R);
Bring(CurrentPlayer, Exactly, 0, TAKEING COVER, Anywhere);

SetDeaths(P1, SetTo, 0, 131);
PreserveTrigger();
Comment("see cover");



Same problem , need same solution. HELP is the red the problem?
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-15 at 20:09:10
your getting your players mixed up =\
Report, edit, etc...Posted by Kumano on 2005-08-15 at 20:27:54
The display text gets preserved because thats what you made the trigger, you need a wait action with the display text or it will happen over and over again,


Bring(P12, AtLeast, 1, Cover, Health-R);
Bring(CurrentPlayer, Exactly, 0, TAKEING COVER, Anywhere);
Deaths(P1, Exactly, 0, 131);

SetDeaths(P1, SetTo, 1, 131);
PreserveTrigger();
Comment("see cover");



Bring(P12, AtLeast, 1, Cover, Health-R);
Bring(CurrentPlayer, Exactly, 0, TAKEING COVER, Anywhere);
Deaths(P1, Exactly, 0, 131);

DisplayText("This looks like a good place to hide!", 5);
Wait(however long you want it to wait before repeating);
PreserveTrigger();
Comment("see cover");



Bring(P12, AtLeast, 0, Cover, Health-R);
Bring(CurrentPlayer, Exactly, 0, TAKEING COVER, Anywhere);

SetDeaths(P1, SetTo, 0, 131);
PreserveTrigger();
Comment("see cover");

That should work for making display text happen only occasionally.
Next Page (1)