1
//BRIEF.SLO Generic Cheat script Version 1.0
2
//Just plays briefings and lets skip to next level
4
/* ******************** */
5
/* Declared Variables */
6
/* ******************** */
14
public INTMESSAGE brief[5];
19
/* General variables */
20
private int count, count2; //for while loops
21
private DROID testDroid, newDroid;
22
private STRUCTURE newDroidFactory; //new droid built
23
private int countBriefs, temp, temp1, temp2, tempX, tempY;
24
private STRUCTURE hitStruc; //Base Under Attack
25
private BASEOBJ attackerObj; //Base Under Attack
26
private int t; //Base Under Attack time delay for next warning
27
private int enemyCount; //for enemy base attack stuff!
30
trigger nextLevTrig (every, 20);
33
event start(CALL_GAMEINIT)
35
//play mission brief(s)
38
addMessage(brief[0], MISS_MSG, 0, true);
43
event briefings(CALL_VIDEO_QUIT) //need to rework this better!!
45
if (countBriefs >= numBriefs) //last briefing?
47
setEventTrigger(briefings, inactive);
49
if (countBriefs < numBriefs) //remove last, add next?
51
removeMessage(brief[countBriefs - 1], MISS_MSG, 0);
52
addMessage(brief[countBriefs], MISS_MSG, 0, true);
53
countBriefs = countBriefs + 1;
58
/* Events: Win or Lose */
59
event nextLevEvnt(inactive) //assumes victory already checked
61
flushConsoleMessages();
62
startMission(CAMP_EXPAND, NextLev);
63
//End game here for now! (don't try next mission)
66
setEventTrigger(nextLevEvnt, inactive);
69
//skip to end of level
70
event cheatEvnt(CALL_MISSION_START) //cheat button ctrl M
72
setEventTrigger(nextLevEvnt, nextLevTrig);
73
setEventTrigger(cheatEvnt, inactive);