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.
[06:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[04:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
Please log in to shout.


Members Online: Ultraviolet