Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] Perpetual Hallucination Spawn not working
[SOLVED] Perpetual Hallucination Spawn not working
This topic is locked. You can no longer write replies here.
Sep 18 2011, 4:02 pm
By: Pr0nogo  

Sep 18 2011, 4:02 pm Pr0nogo Post #1



Code
//-----------------------------------------------------------------//

Trigger("Player 8"){
Conditions:
    Always();

Actions:
    Set Deaths("Player 8", "Terran Marine", Set To, 3600);
    Comment("<Hallucination Init>");
}

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

Trigger("Player 8"){
Conditions:
    Always();

Actions:
    Set Deaths("Player 8", "Terran Marine", Subtract, 1);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Wait(0);
    Preserve Trigger();
    Comment("<Hallucination Timer>");
}

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

Trigger("Player 8"){
Conditions:
    Deaths("Player 8", "Terran Marine", Exactly, 0);
    Bring("Player 7", "Men", "Centre Altaesir", At least, 1);

Actions:
    Kill Unit At Location("Player 8", "Protoss Zealot", All, "Anywhere");
    Create Unit with Properties("Player 8", "Protoss Dark Templar", 3, "Centre Altaesir", 3);
    Kill Unit At Location("Player 8", "Protoss Dark Templar", 3, "Centre Altaesir");
    Create Unit with Properties("Player 8", "Protoss Zealot", 3, "Centre Altaesir", 3);
    Set Deaths("Player 8", "Terran Marine", Set To, 3600);
    Preserve Trigger();
    Comment("<Hallucination>");
}

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

Trigger("Player 8"){
Conditions:
    Always();

Actions:
    Order("Player 8", "Protoss Zealot", "Centre Altaesir", "A IS1 Cavern", patrol);
    Preserve Trigger();
    Comment("<Hallucination Patrol>");
}

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


Anything that doesn't work here? There are no other waits at all for P8, and the location 'Center Altaesir' is perpetually centered on the unit (I know this works because other triggers regarding that location work fine).

By the way, this is due tonight, so it'd be great if I could get some immediate solutions! :ermm:




Sep 18 2011, 4:10 pm TiKels Post #2



Editing more in a second, but you do know that "wait(0)" waits exactly one trigger cycle right?

Edit: yeah that looks to be the problem is that that thing will subtract 1 every 61 (approximately? i counted) cycles which is about every what... 5 seconds? 5 seconds times 3600... you do the math



"If a topic that clearly interest noone needs to be closed to underline the "we don't want this here" message, is up to debate."

-NudeRaider

Sep 18 2011, 4:11 pm lil-Inferno Post #3

Just here for the pie

Separate the hyper triggers.

And explain more. Who is player 7? Who is player 8?




Sep 18 2011, 4:15 pm Pr0nogo Post #4



Separated the hypertrig from the halluc (already had a general hypertrigger). No change.

P7 is a human player who controls ONLY Altaesir (who is Fenix (Dragoon) if you don't run the mod). P8 is a computer player who controls ONLY the Zealots that are spawned. The Dark Templar spawn/kill is for the hallucination animation.

EDIT: TOPIC CAN BE CLOSED.

issue was my death counters




Sep 18 2011, 4:16 pm Azrael Post #5



12 DC = 1 second.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:28 am]
Moose -- :wob:
[06:19 pm]
lil-Inferno -- :wob:
[05:29 pm]
Zoan -- :wob:
[2026-9-14. : 3:21 pm]
Oh_Man -- Racoon City Remastered*
[2026-9-14. : 3:21 pm]
Oh_Man -- Join the front line SEN, DEFEND MANKIND. 2030 is just a number! https://scmscx.com/map/2fHHj96p
[2026-9-14. : 3:21 pm]
Oh_Man -- from the maker of the legendary Architect RPG, the peerless Racoon City, the capitvating One Piercing Note, comes another creation minutes in the making
[2026-9-14. : 11:15 am]
Oh_Man -- heh heh thanks for the minerals suckers, now it's time to quit while i'm ahead
[2026-9-14. : 1:01 am]
Oh_Man -- Heroes of the Storm literally died and was revived before we got next SC game. Wb Loveless, u cooking any UMS for us?
[2026-9-13. : 11:35 pm]
LoveLess -- getting diablo 5 and wow 4 before starcraft ghost
[2026-9-13. : 9:22 pm]
RIVE -- To be fair, I used to post custom emotes back when I still used the forums.
Please log in to shout.


Members Online: NudeRaider, NimoStar