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

« back to all changes in this revision

Viewing changes to data/script/demo/demo_p7.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
 
/* Demo Map Script for Player 7*/
2
 
 
3
 
/* General values */
4
 
public          int             player;
5
 
public          int             power;
6
 
private         int             n;              //keeps track of current factory
7
 
 
8
 
/* Factory values */
9
 
public          int             numFacts;
10
 
public          STRUCTURE       fact[4];        //must be same as numFacts
11
 
public          STRUCTUREID     factID[4];
12
 
public          int             assX[4], assY[4];
13
 
 
14
 
/* Build Templates */
15
 
public          TEMPLATE        build[4];       //must be same as numFacts
16
 
 
17
 
 
18
 
 
19
 
 
20
 
/* Triggers */
21
 
trigger factTrig(every, 100);           //new build every 10 seconds
22
 
 
23
 
 
24
 
 
25
 
/* Events */
26
 
event startup(init)
27
 
{
28
 
        setPowerLevel(power, player);   //set starting power
29
 
        while (n < numFacts)
30
 
        {
31
 
                setAssemblyPoint (fact[n], assX[n], assY[n]);           //set assembly points (can't do later in case the factories are dead!!!
32
 
                n = n +1;
33
 
        }
34
 
        n = 0;
35
 
}
36
 
 
37
 
//build list for all factories (n controls which!)
38
 
event factEvnt(factTrig)                                                                //try building every 10 seconds
39
 
{
40
 
        if (not (buildingDestroyed (factID[n], player)))
41
 
        {
42
 
                if (structureIdle(fact[n]))
43
 
                {
44
 
                //build different template for each factory!!!!!!
45
 
                        buildDroid (build[n], fact[n], player, 1);
46
 
                }
47
 
        }
48
 
        n = n +1;
49
 
        if (n >= numFacts)
50
 
        {
51
 
                n = 0;
52
 
        }
53
 
}
 
 
b'\\ No newline at end of file'