Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Odd Condition DIscrepancy
Odd Condition DIscrepancy
This topic is locked. You can no longer write replies here.
Jan 3 2009, 8:52 pm
By: Vrael  

Jan 3 2009, 8:52 pm Vrael Post #1



In the map that I'm making, I have come across an odd thing that I would like explained to me, if possible. During a battle (in my rpg) you go to an area, and fight an ultralisk. You get moved to a battle area "Location 128" which is enclosed and inescapable. Now you can either win, by killing the ultralisk, or lose. If you lost, the ultralisk is supposed to be moved to another location for holding so it remains at the same health until you come back and fight it again. It's possible that more than one player could be fighting this at one time, so if just 1 player loses I didn't want it to be moved back. All human players are in force 1, and here's my triggers, in order, with notes:

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Zeratul (Dark Templar)", Exactly, 1); <-----Detects death of player1's unit
Switch("Switch7", set); <-----Denotes P1 was in battle, no problems here
Deaths("Current Player", "Zerg Ultralisk", Exactly, 5); <-----Denotes which battle p1 is in
Bring("The Tenebrous", "Men", "Location 128", Exactly, 0); <-----Denotes no other human players are in the battle
Actions:
Set Deaths("Player 1", "Zerg Ultralisk", Set To, 0);
Move Location("Player 9", "Zerg Drone", "Location 82", "M");
Move Unit("Player 7", "Zerg Ultralisk", 1, "Location 128", "M");
Set Invincibility("Player 7", "Zerg Ultralisk", "M", enabled);
Remove Unit At Location("Player 12", "Terran Marine", 1, "Location 125");
Set Switch("Switch7", clear);
Preserve Trigger();
; Comment("Hero Loss");
}


Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Zeratul (Dark Templar)", Exactly, 1);
Switch("Switch7", set);
Deaths("Current Player", "Zerg Ultralisk", Exactly, 5);

Actions:
Set Deaths("Player 1", "Zerg Ultralisk", Set To, 0);
Remove Unit At Location("Player 12", "Terran Marine", 1, "Location 125");
Set Switch("Switch7", clear);
Preserve Trigger();
; Comment("Hero Loss");
}


Now the first trigger is to move the ultralisk back when p1 is alone in the battle. The second trigger is to do everything necessary but move the ultralisk back, because there are other players in the battle. However, what I've actually found is that the second trigger will run and the first trigger will not, despite the fact that I have been testing this solo, so there aren't any other players in the game.

So what I would like to know, is: Does starcraft execute unit death registration/detection/whatever its called/ in some strange order?

Since P1's unit is dead and there aren't any other players in the game at the time of testing, that should mean that "Force 1 brings exactly 0 men to Location 128" is fulfilled. I know the other 3 conditions are fulfilled because the second trigger fires and i can see the results.

Note: I do not need a solution to make the first trigger run, already fixed that, I just want to know wtf is going on.



None.

Jan 3 2009, 11:40 pm Falkoner Post #2



Quote
So what I would like to know, is: Does starcraft execute unit death registration/detection/whatever its called/ in some strange order?

No, there must be some problem with your conditions, it looks to me like you are having problems with Bring updating, it takes a trigger cycle or two to update the bring, also, the following actions can immediately update it:
Kill Unit
Kill Unit at Location
Remove Unit
Remove Unit At Location
Move Location
Move Unit

This updating problem was discussed in this topic thoroughly if you want to look into this a bit more.



None.

Jan 4 2009, 6:32 am Vrael Post #3



I knew there was some odd Starcraft glitch going on. Thanks falkoner. Problem solved--> Lock please.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
[2024-5-08. : 10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[2024-5-08. : 10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
Please log in to shout.


Members Online: Roy, Wormer, Oh_Man