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.
[03:08 pm]
Sylph-Of-Space -- woah! nice! thank you!
[2024-5-20. : 4:05 am]
O)FaRTy1billion[MM] -- the setting exists, it's just hidden in a weird place
[2024-5-20. : 4:04 am]
O)FaRTy1billion[MM] -- instead change "Microtile Overlay" to "Impassable"
[2024-5-20. : 4:04 am]
O)FaRTy1billion[MM] -- er, wait, idk why i was looking for height
[2024-5-20. : 4:03 am]
O)FaRTy1billion[MM] -- below the minimap should be a thing that says "Overlay Settings" with a little + button in the corner, press the + to expand it, uncheck Use Defaults, then change "Tile Overlay" to "Height"
[2024-5-20. : 3:57 am]
Sylph-Of-Space -- Unless I'm dum (possible)
[2024-5-20. : 3:57 am]
Sylph-Of-Space -- It would be so so so nice if SCMDraft had some kind of dedicated "walkability" view for the tilesets.
[2024-5-20. : 3:53 am]
Sylph-Of-Space -- :'( dont cry for me cat-gentina
[2024-5-19. : 9:18 pm]
Ultraviolet -- 🔪🐈
[2024-5-19. : 12:34 pm]
NudeRaider -- curiosity kills the cat!
Please log in to shout.


Members Online: harleyfcooper, Sylph-Of-Space