Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Vision AI won't turn off
Vision AI won't turn off
Apr 18 2017, 7:30 pm
By: theskinsurf  

Apr 18 2017, 7:30 pm theskinsurf Post #1



I have a powerup that gives you the enemy team's vision for a short time. The vision turns on fine, but never turns off, even though I get the message that the powerup is done. Here are the triggers:



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

Trigger("Ninja / Sniper / Mutant [1]"){
Conditions:
Deaths("Current Player", "Ragnasaur (Ash World)", At least, 1);
Deaths("Current Player", "Ragnasaur (Ash World)", At most, 199);

Actions:
Run AI Script("+Vi3");
Run AI Script("+Vi4");
Run AI Script("+Vi5");
Set Deaths("Current Player", "Ragnasaur (Ash World)", Add, 1);
Preserve Trigger();
Comment("Farsight F1");
}

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

Trigger("Ninja / Sniper / Mutant [2]"){
Conditions:
Deaths("Current Player", "Ragnasaur (Ash World)", At least, 1);
Deaths("Current Player", "Ragnasaur (Ash World)", At most, 199);

Actions:
Run AI Script("+Vi0");
Run AI Script("+Vi1");
Run AI Script("+Vi2");
Set Deaths("Current Player", "Ragnasaur (Ash World)", Add, 1);
Preserve Trigger();
Comment("Farsight F2");
}

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

Trigger("Ninja / Sniper / Mutant [1]"){
Conditions:
Deaths("Current Player", "Ragnasaur (Ash World)", At least, 200);

Actions:
Set Deaths("Current Player", "Ragnasaur (Ash World)", Set To, 0);
Run AI Script("-Vi3");
Run AI Script("-Vi4");
Run AI Script("-Vi5");
Display Text Message(Always Display, " - \x006Your vision returns to normal.");
Play WAV("staredit\\wav\\deny.wav", 87);
Preserve Trigger();
Comment("Farsight end F1");
}

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

Trigger("Ninja / Sniper / Mutant [2]"){
Conditions:
Deaths("Current Player", "Ragnasaur (Ash World)", At least, 200);

Actions:
Set Deaths("Current Player", "Ragnasaur (Ash World)", Set To, 0);
Run AI Script("-Vi0");
Run AI Script("-Vi1");
Run AI Script("-Vi2");
Display Text Message(Always Display, " - \x006Your vision returns to normal.");
Play WAV("staredit\\wav\\deny.wav", 87);
Preserve Trigger();
Comment("Farsight end F2");
}

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



Current project: Star Rogue
Other projects: Triumvirate Defense, Skirmish Islands

Apr 18 2017, 7:32 pm theskinsurf Post #2



the powerup retrieval sets the DC to 1, starting the cycle, btw.



Current project: Star Rogue
Other projects: Triumvirate Defense, Skirmish Islands

Apr 18 2017, 8:19 pm DarkenedFantasies Post #3

Roy's Secret Service

Reorder the vision OFF triggers to be above the vision ON ones, that should fix the problem.




Apr 19 2017, 1:38 am LoveLess Post #4

Let me show you how to hump without making love.

Repliated these triggers and it works fine for me.

Make sure the initial +1 DC is not triggering again.

Also I did use players instead of Forces, would try that option too.



None.

Apr 19 2017, 9:31 am theskinsurf Post #5



moving the ending triggers up before the loop seems to work :)



Current project: Star Rogue
Other projects: Triumvirate Defense, Skirmish Islands

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: Roy, Dem0n