Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: trigger firing, but unit not creating
trigger firing, but unit not creating
Apr 7 2009, 10:24 pm
By: jkavorski  

Apr 7 2009, 10:24 pm jkavorski Post #1



im trying to make a zombie-type map. you have one unit. you can switch between "weapons" (ex. ghost is shotgun, marine is ak-47) with the same person. this is all fine but if your unit is injured, i dont want it to become healed just by changing weapons. so i decided to make my units have 1 health and every time they die they are recreated in the exact same spot but theyre "health" (custom score) goes down 5%. the trigger is firing (i know this because the health drops down 5 when i die) but for some reason it is not recreating the unit... it may be a problem with the location but i dont know

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Terran Ghost", At least, 1);
Score("Player 1", Custom, At least, 1);

Actions:
Create Unit("Player 1", "Terran Ghost", 1, "p1");
Set Score("Player 1", Subtract, 5, Custom);
Set Deaths("Player 1", "Terran Ghost", Subtract, 1);
Preserve Trigger();
Comment("DB Shotgun Hurt");

the p1 location recenters on p1's unit constantly (as long as p1 HAS a unit)

Attachments:
Zombie Invasion.scm
Hits: 1 Size: 80.35kb

Post has been edited 1 time(s), last time on Apr 7 2009, 11:31 pm by jkavorski.



None.

Apr 7 2009, 11:14 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

The Ghost should be created with these triggers.
Maybe there is another trigger that removes units from that player or sets/subtracts the death counts.

If you post all triggers or better, the map, we will find the solution quickly.

If you hear a sound and see a yellow warning/error, you have problems with centering the location.




Apr 7 2009, 11:43 pm jkavorski Post #3



ok i figured it out. i think the problem is that the location was centering on a unit in that same location. i looked around at another map that did the same effect i was tryin to create and borrowed that particular trigger so its all good now. thanks



None.

Apr 7 2009, 11:49 pm rockz Post #4

ᴄʜᴇᴇsᴇ ɪᴛ!

You must not have looked very hard
Trigger("Player 1"){
Conditions:
Command("Player 1", "Men", Exactly, 2);

Actions:
Move Location("Player 1", "Any unit", "p1", "p1");
Preserve Trigger();
Comment("Center Location");
}

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

the location is being centered on your factory.

edit: ninjaed by 7 minutes.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
[2026-7-23. : 1:40 am]
Oh_Man -- tthen u come to SCBW and it's like - upload WAV, play WAV.... sigh why cant it be that easy
[2026-7-23. : 1:40 am]
Oh_Man -- and no consistent easy to use way to then play the audio either
[2026-7-23. : 1:39 am]
Oh_Man -- where they use third party audioprogram called WWISE which basically makes adding audio extremely difficult
[2026-7-23. : 1:39 am]
Oh_Man -- i appreciate SCBW's ability to just let us upload and play WAVs so much compared to nightmare that is total war warhammer 3
[2026-7-18. : 2:27 am]
Symmetry -- https://staredit.net/topic/18903/ THE REVIEWS ARE HERE! "ok these are pretty good memes" - ssj9Kevin
[2026-7-17. : 2:58 pm]
Ultraviolet -- Symmetry
Symmetry shouted: Man I wish we had this tech back in the day when people played ums lmao
fr fr
[2026-7-17. : 2:39 am]
Symmetry -- Man I wish we had this tech back in the day when people played ums lmao
[2026-7-16. : 6:28 am]
NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
Please log in to shout.


Members Online: NudeRaider