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.
[09:19 am]
Linekat -- cool
[01:56 am]
Oh_Man -- cool bit of history, spellsword creator talking about the history of EUD ^
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
Please log in to shout.


Members Online: IlyaSnopchenko