-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgnupatch.diff
92 lines (92 loc) · 3.13 KB
/
gnupatch.diff
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
diff -ur data/glest_game/oldtutorials/1_very_basic_tutorial/1_very_basic_tutorial.xml data/glest_game/tutorials/1_very_basic_tutorial/1_very_basic_tutorial.xml
--- data/glest_game/oldtutorials/1_very_basic_tutorial/1_very_basic_tutorial.xml 2013-08-31 07:30:45.145595371 +0200
+++ data/glest_game/tutorials/1_very_basic_tutorial/1_very_basic_tutorial.xml 2013-08-15 16:09:49.108433372 +0200
@@ -12,7 +12,7 @@
<tech-tree value="megapack"/>
<default-resources value="true"/>
<default-units value="false"/>
- <default-victory-conditions value="true"/>
+ <default-victory-conditions value="false"/>
<scripts>
<startup>
disableAi(1)
@@ -79,7 +79,8 @@
<!--Messages-->
setDisplayText('WellDoneNextTutorial')
setPlayerAsWinner(0)
- endGame()
+ timer_event1 = startTimerEvent()
+ objective= 'end'
end
</unitCreatedOfType>
<cellTriggerEvent>
@@ -98,5 +99,15 @@
objective= 'Harvest_Gold_And_Stone'
end
</cellTriggerEvent>
+
+ <timerTriggerEvent>
+ if triggeredTimerEventId() == timer_event1 then
+ if timerEventSecondsElapsed(triggeredTimerEventId()) >= 3 then
+ endGame()
+ --print('end')
+ stopTimerEvent(triggeredTimerEventId())
+ end
+ end
+ </timerTriggerEvent>
</scripts>
</scenario>
diff -ur data/glest_game/oldtutorials/2_basic_tutorial/2_basic_tutorial.xml data/glest_game/tutorials/2_basic_tutorial/2_basic_tutorial.xml
--- data/glest_game/oldtutorials/2_basic_tutorial/2_basic_tutorial.xml 2013-08-31 07:30:45.588605884 +0200
+++ data/glest_game/tutorials/2_basic_tutorial/2_basic_tutorial.xml 2013-08-15 16:36:39.846702922 +0200
@@ -91,10 +91,21 @@
</unitCreatedOfType>
<unitDied>
if objective=='defend_from_attack' and unitCount(1)==0 then
- clearDisplayText()
+ setDisplayText('WellDoneNextTutorial')
setPlayerAsWinner(0)
- endGame()
+ timer_event1 = startTimerEvent()
+ objective= 'end'
end
</unitDied>
+
+ <timerTriggerEvent>
+ if triggeredTimerEventId() == timer_event1 then
+ if timerEventSecondsElapsed(triggeredTimerEventId()) >= 3 then
+ endGame()
+ --print('end')
+ stopTimerEvent(triggeredTimerEventId())
+ end
+ end
+ </timerTriggerEvent>
</scripts>
</scenario>
diff -ur data/glest_game/oldtutorials/3_advanced_tutorial/3_advanced_tutorial.xml data/glest_game/tutorials/3_advanced_tutorial/3_advanced_tutorial.xml
--- data/glest_game/oldtutorials/3_advanced_tutorial/3_advanced_tutorial.xml 2013-08-31 07:30:45.392601233 +0200
+++ data/glest_game/tutorials/3_advanced_tutorial/3_advanced_tutorial.xml 2013-08-15 16:37:26.201781147 +0200
@@ -93,10 +93,21 @@
</unitCreatedOfType>
<unitDied>
if objective=='defeat_enemy' and unitCount(0)==0 then
- clearDisplayText()
+ setDisplayText('WellDoneNextTutorial')
setPlayerAsWinner(1)
- endGame()
+ timer_event1 = startTimerEvent()
+ objective= 'end'
end
</unitDied>
+
+ <timerTriggerEvent>
+ if triggeredTimerEventId() == timer_event1 then
+ if timerEventSecondsElapsed(triggeredTimerEventId()) >= 3 then
+ endGame()
+ --print('end')
+ stopTimerEvent(triggeredTimerEventId())
+ end
+ end
+ </timerTriggerEvent>
</scripts>
</scenario>