Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Respawn Bug..

Creator: O)CecilSunkure
Time: Aug 31 2008, 5:52 am

Post #1     O)CecilSunkure Aug 31 2008, 5:52 am

[Avatar]
Truth isn't defined by opinions or numbers of them..
 offline contact
I have a bug with some triggers that i just cant figure out. The problem is when 3 or more ppl play on my map, then ppl slowly stop respawning once they are killed, until only 2 players are left playing. Once a player is killed, 20 seconds pass, and then the player is respawned in one of 6 different locations. Players 1-7 are the only players able to kill a player of 1-6.

Here is the trigger for one character dieing:

Condition:
Deaths(CurrentPlayer, AtLeast, 1, mud creature);
Bring(CurrentPlayer, AtMost, 0, Mud Creature, Left Arena);

Actions:
CreateUnitWithProperties(1, Mud Creature, Pik Sort, CurrentPlayer, burrowed);
DisplayText("You have been slain! [Respawn in 20 Seconds]", 4);
SetDeaths(CurrentPlayer, SetTo, 0, Mud Creature);
Comment("Die Mud");
SetDeaths(CurrentPlayer, SetTo, 1, Bengalaas);
PlayWAV("sound\\Misc\\ZRescue.wav");
PreserveTrigger();

This is the death count trigger:

Condition:
Deaths(CurrentPlayer, Exactly, 1, Bengalaas);

Action:
Comment("Die Counter");
SetDeaths(CurrentPlayer, Add, 1, Ultralisk Cavern);
PreserveTrigger();

This is the death count listening trigger:

Condition:
Deaths(CurrentPlayer, Exactly, 1, Bengalaas);
Deaths(CurrentPlayer, AtLeast, 255, Zerg Ultra Cavern);

Action:
Comment("Die Count Listen");
SetDeaths(CurrentPlayer, SetTo, 0, Ultralisk Cavern);
SetDeaths(CurrentPlayer, SetTo, 0, bengalaas);
SetSwitch(Switch 1, Randomize);
SetSwitch(Switch 2, Randomize);
SetSwitch(Switch 3, Randomize);
PreserveTrigger();
SetDeaths(CurrentPlayer, SetTo, 1, Kakaru);

And here is one of the possible outcomes for the random gen, all other outcomes are the same exact trigger.. basicly. And no, none of these triggers have an error in them that could cause the bug like a wrong condition switch listener or a wrong unit death in a condition.

Condition:
Switch(Switch 1, Set);
Switch(Switch 2, Set);
Switch(Switch 3, Set);
Deaths(CurrentPlayer, Exactly, 1, Kakaru);

Action:
MoveUnit(All, Men, CurrentPlayer, Pik Waiting, Arena Spawn 1);
CenterView(Arena Spawn 1);
Comment("Random Loc Die");
DisplayText("You have been Respawned!", 4);
SetDeaths(CurrentPlayer, SetTo, 0, Kakaru);
PreserveTrigger();


Any help would be greatly appreciated!


Edit: trigs copied from starforge so conditions had numbers instead of units.[TRIGGER]
This post was edited 3 times, last edit by O)Silent: Aug 31 2008, 6:27 am.
-Clan Orig Map Maker-
Top

Post #2     O)Matt Burch Aug 31 2008, 6:10 am

[Avatar]
¯\_(°·0)_/¯
 offline contact
It would be nice if you used the normal Trigger layout for the triggers. Not everyone here uses the editor you use. I can't help if I don't understand the triggers.
Thanks!
Working on:
- Clan creation fee (Implementing soon)
- Clan Material (Done)
- Clan Custom Info pages (Done)
Top

Post #3     Fwop_ Aug 31 2008, 6:49 am

[Avatar]
A 43 minerals well spent.
 online contact
The triggers seem fine (though, you could have done it all using one death counter). The only thing I can think of is that they players are getting a bad combination on the random switches. Using three switches you will have eight outcomes, but you said there were six possible respawn locations. Also, 255 deaths is a little more than 21 seconds. Fibber.

@Matt: It's not that hard to just read what the triggers actually say. Is it really that hard to understand when you see something like SetDeaths(CurrentPlayer, SetTo, 0, Ultralisk Cavern);?
(signature image)
Top

Post #4     Falkoner Aug 31 2008, 2:42 pm

[Avatar]
Taking StarCraft Map Making to the Limit!
 offline contact
Instead of using switch randomization, I would constantly add to a death count, and once it gets higher than 6, reset it to 0, and you can decide which location they spawn at based off of that.
Top

Post #5     O)CecilSunkure Sep 1 2008, 12:54 am

[Avatar]
Truth isn't defined by opinions or numbers of them..
 offline contact
Quote from Fwop_
The triggers seem fine (though, you could have done it all using one death counter). The only thing I can think of is that they players are getting a bad combination on the random switches. Using three switches you will have eight outcomes, but you said there were six possible respawn locations. Also, 255 deaths is a little more than 21 seconds. Fibber.

@Matt: It's not that hard to just read what the triggers actually say. Is it really that hard to understand when you see something like SetDeaths(CurrentPlayer, SetTo, 0, Ultralisk Cavern);?

Oh well i have the last two possible outcomes rigged to reset the triggers to randomize the switches again. As for the death count randomization.. Could you plz explain this in detail? Last time i checked there was no tutorial on this.

Add deathcounts over 6, reset it, and then what o.o

About matt not understanding, i have starforge set to display trigger conditions as Unit:number instead of Unit:unit, so that i can write proper UED triggers, and matt was reading numbers in my conditions. I changed this while matt was posting his post.
-Clan Orig Map Maker-
Top

Post #6     Falkoner Sep 1 2008, 12:55 am

[Avatar]
Taking StarCraft Map Making to the Limit!
 offline contact
When you want to find out which space they go to, have the conditions be based on what death it is currently on, so it's either 1-6.
Top

Post #7     O)CecilSunkure Sep 1 2008, 1:04 am

[Avatar]
Truth isn't defined by opinions or numbers of them..
 offline contact
If the conditions are based on numbers 1-6, wouldn't the trigger condition listening for 1 always fire.. followed by the other 5.. I dont understand how this generates randomization. It looks like a set death count trigger with a set pattern of respawn locations. Is that what you mean? A set list of respawns? Id rather have actual randomization with switches, as I doubt they are the root of the bug.

My guess is that splash damage is what is causing the problem, but ive used in conditions listening for deaths 'at least 1 death of unit 'x'', so splash shouldn't be a problem.

Also I checked through all my other triggers, and im not using the same unit for death counts at all anywhere else. The bug seems to occur when two ppl are dead at the same time, which is very unlikely to happen with two players, so i might just need to copy my triggers so each player has a different set instead of applying the respawn triggers to six players at once using 'current player'.

Ill keep trying different things to pinpoint the problem.
-Clan Orig Map Maker-
Top

Post #8     Fwop_ Sep 1 2008, 2:02 am

[Avatar]
A 43 minerals well spent.
 online contact
Check your re-randomization triggers. You set Player 8 to 1 Your Name Here ¿ K instead of Current player.
(signature image)
Top

Post #9     O)CecilSunkure Sep 1 2008, 3:24 am

[Avatar]
Truth isn't defined by opinions or numbers of them..
 offline contact
Hey thanks, im really sure that was the problem! Although ive played this map for an hour at a time testing things.. and I didnt have a respawn problem which is wierd!

Anyways thanks again fwop_, yu were my idiot check ;)

But I'd still like falkoner to answer me :O
-Clan Orig Map Maker-
Top

Post #10     Fwop_ Sep 1 2008, 4:01 am

[Avatar]
A 43 minerals well spent.
 online contact
The trigger to add +1 to the death count will not fire again until the next loop. So the condition with 1 value will try to fire, then 2, then 3, and so on. Since a death count can only have one value, only one trigger will actually fire.
(signature image)
Top

Post #11     O)CecilSunkure Sep 1 2008, 4:11 am

[Avatar]
Truth isn't defined by opinions or numbers of them..
 offline contact
Yeah, so its just a set list of triggers to fire, with no random pattern.. right?
-Clan Orig Map Maker-
Top

Post #12     Fwop_ Sep 1 2008, 4:21 am

[Avatar]
A 43 minerals well spent.
 online contact
It isn't quite random, but if the event to cause the selection of one of the 6 death counters is random, it shouldn't matter either way.
(signature image)
Top

Post #13     NudeRaider Sep 1 2008, 10:02 am

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Nah... Death counter randomization is not a pattern, unless you respawn your guys every trigger loop.

You are ALWAYS (if dead, or not) adding 1 to the death count. So as soon as someone dies it depends on the time of his death which value the dc will have. And after the game is running for several ten seconds you will definately not be able to telll where you will respawn. (Whereas you could say that after 0,5s (=6 trigger loops) you respawn at location 1 again.)

I think you thought that the dc is only increase upon death of a player, which is not true.
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #14     O)CecilSunkure Sep 1 2008, 4:20 pm

[Avatar]
Truth isn't defined by opinions or numbers of them..
 offline contact
Oh i c, so you constantly adding deaths from 1-6, and whatever the number happens to be when your unit dies, is the trigger that will fire. Ok that makes sense, thanks a lot you all!
-Clan Orig Map Maker-
Top
0 members in this topic: None
+ 1 guest(s)


[01:45 am]
Phobos[MM] -- lol homophobia
[01:37 am]
[lil-Inferno]:] -- Pudding...Mmm.
[01:36 am]
OMC)Anonymous -- fuck your homophobia
[01:36 am]
OMC)Anonymous -- i prefer neither sandwhiches nor pudding, i enjoy them both D:
[01:17 am]
[Echo]:] -- I've gotten 0's 10 times in a row before today
[01:16 am]
Phobos[MM] -- And that comprobes gay boxes are gay
[01:13 am]
Elvang -- Wow, second time i've gotten 140 this week...
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions