~ubuntu-branches/ubuntu/lucid/warzone2100/lucid

« back to all changes in this revision

Viewing changes to data/base/script/text/brief.slo

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger, Paul Wise, Christoph Egger
  • Date: 2009-06-29 17:12:52 UTC
  • mfrom: (1.1.11 upstream) (2.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090629171252-5ddnlfg3zfchrega
Tags: 2.2.1+dfsg1-1
[ Paul Wise ]
* New upstream release (Closes: #534962)
* Adjust the flex build-depends to take account of the conflict
  with all the versions of flex 2.5.34 (LP: #372872)
* Make the -music Recommends more strict, 2.1 music doesn't work
  with 2.2.
* Upstream moved the downloads to sourceforge, update the watch file
* Bump Standards-Version, no changes needed
* Drop use of dh_desktop since it no longer does anything
* Recommend the new warzone2100-video package, version 2.2 or similar
* Mention the warzone2100 crash reports in the -dbg package description

[ Christoph Egger ]
* Replace CC-2.0 graphic from cybersphinx, create a new tarball
* Add myself to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//BRIEF.SLO Generic Cheat script Version 1.0
 
2
//Just plays briefings and lets skip to next level
 
3
 
 
4
/* ******************** */
 
5
/* Declared Variables   */
 
6
/* ******************** */
 
7
 
 
8
/* Next Level stuff */
 
9
public          LEVEL           NextLev;
 
10
 
 
11
 
 
12
/* Briefings */
 
13
public          int             numBriefs;
 
14
public          INTMESSAGE      brief[5];
 
15
 
 
16
/* 'Globals' */
 
17
public          int             player;
 
18
 
 
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!
 
28
 
 
29
/* Triggers */
 
30
trigger nextLevTrig     (every, 20);
 
31
 
 
32
/* Initialisation */
 
33
event   start(CALL_GAMEINIT)
 
34
{
 
35
//play mission brief(s)
 
36
        if (numBriefs > 0)
 
37
        {
 
38
                addMessage(brief[0], MISS_MSG, 0, true);
 
39
                countBriefs = 1;
 
40
        }
 
41
}
 
42
 
 
43
event   briefings(CALL_VIDEO_QUIT)              //need to rework this better!!
 
44
{
 
45
        if (countBriefs >= numBriefs)   //last briefing?
 
46
        {
 
47
                setEventTrigger(briefings, inactive);
 
48
        }
 
49
        if (countBriefs < numBriefs)            //remove last, add next?
 
50
        {
 
51
                removeMessage(brief[countBriefs - 1], MISS_MSG, 0);
 
52
                addMessage(brief[countBriefs], MISS_MSG, 0, true);
 
53
                countBriefs = countBriefs + 1;
 
54
        }
 
55
}
 
56
 
 
57
 
 
58
/* Events: Win or Lose */
 
59
event nextLevEvnt(inactive)             //assumes victory already checked
 
60
{
 
61
        flushConsoleMessages();
 
62
        startMission(CAMP_EXPAND, NextLev);
 
63
        //End game here for now! (don't try next mission)
 
64
        //gameOver(true);
 
65
 
 
66
        setEventTrigger(nextLevEvnt, inactive);
 
67
}
 
68
 
 
69
//skip to end of level
 
70
event cheatEvnt(CALL_MISSION_START)     //cheat button ctrl M
 
71
{
 
72
        setEventTrigger(nextLevEvnt, nextLevTrig);
 
73
        setEventTrigger(cheatEvnt, inactive);
 
74
}