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:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[05:41 am]
Ultraviolet -- 🤔 so inf is in you?
[04:57 am]
O)FaRTy1billion[MM] -- my name is mud
[04:35 am]
Ultraviolet -- mud, meet my friend, the stick
[10:07 pm]
lil-Inferno -- nah
[08:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[05:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[05:24 pm]
lil-Inferno -- poopoo
[05:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
[03:36 pm]
NudeRaider -- :lol:
Please log in to shout.


Members Online: 5oliviae3922gg6, NudeRaider, 9lydiac1922hg2