1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
on:nightevents { //SPAWN NIGHT EVENT ANIMALS.
if ($difficulty>1) { //ONLY ON NORMAL OR HARD MODE.
$spn=random(1,3);
if ($spn==1){
msg "WOLVES ARE NEAR!",3,6000; // WOLF EVENT
play "wolfhowl.wav";
freetext 3;
text 3,"WOLVES!",3,36,65,2;
loop ("count",3){ $id=randomcreate("unit",52,10,100000); }
}elseif ($spn==2){
msg "BATS ARE NEAR!",1,6000; //BAT EVENT
play "kiwi_die.wav";
freetext 3;
text 3,"BATS!",1,36,65,2;
loop ("count",30){ $id=randomcreate("unit",54,50,100000); }
}elseif ($spn==3){
msg "BEARS ARE NEAR!",3,6000; //BEAR EVENT
play "bear.wav";
freetext 3;
text 3,"BEAR!",3,36,65,2;
loop ("count",1){ $id=randomcreate("unit",55,50,100000); }
}else{
//nothing - you can add something else here.
}
}
}
on:dayevents { //SPAWN DAY EVENT ANIMALS.
$spn=random(1,3);
if ($spn==3){ //ON EASY, NORMAL, OR HARD MODE.
msg "DEER ARE NEAR!",4,6000; //DEER EVENT
play "deer.wav";
freetext 3;
text 3,"DEER!",4,36,65,2;
loop ("count",3){ $id=randomcreate("unit",53,50,100000); }
}
if ($difficulty>1) { //ONLY ON NORMAL OR HARD MODE.
if ($spn==1){
msg "WOLVES ARE NEAR!",3,6000; // WOLF EVENT
play "wolfhowl.wav";
freetext 3;
text 3,"WOLVES!",3,36,65,2;
loop ("count",3){ $id=randomcreate("unit",52,10,100000); }
}elseif ($spn==2){
msg "A BEAR IS NEAR!",3,6000; //BEAR EVENT
play "bear.wav";
freetext 3;
text 3,"BEAR!",3,36,65,2;
loop ("count",2){ $id=randomcreate("unit",55,50,100000); }
}else{
//nothing - you can add something else here.
}
}
}