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.
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
[2026-4-25. : 3:20 pm]
NudeRaider -- Vrael
Vrael shouted: moderation? on SEN? in 2026? completely localized in anoeth47's topic? at this time of year?
boy, if you're not careful I'll moderate your sorry ass too!
[2026-4-25. : 3:06 pm]
RIVE -- Yyyes. Don't you see it?
[2026-4-25. : 2:11 pm]
Vrael -- moderation? on SEN? in 2026? completely localized in anoeth47's topic? at this time of year?
[2026-4-25. : 1:39 pm]
NudeRaider -- anoeth47
anoeth47 shouted: Can I get a moderator/lord of the forum to clean up my topics - delete posts not really part of the topic.
send me the links of the posts you want deleted via pm
Please log in to shout.


Members Online: Zoan