You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/scr_demand/scr_demand.gml
+55-19Lines changed: 55 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,53 @@
1
+
function threat_plausibility(){
2
+
var _threat = 20;
3
+
var _good_imperium_position = diplomacy[eFACTION.Imperium] > 50 ? 1 : -1;
4
+
var _relative_strength = floor(obj_controller/20);
5
+
var _nature = "";
6
+
}
7
+
8
+
function clear_inspections(){
9
+
with(obj_en_fleet){
10
+
if (owner = eFACTION.Inquisition) and (string_count("Inqis",trade_goods)>0){
11
+
trade_goods="cancel_inspection";
12
+
target=0;
13
+
}
14
+
}
15
+
}
16
+
17
+
function inquis_use_inspection_pass(){
18
+
if (inspection_passes>0){
19
+
inspection_passes-=1;
20
+
last_world_inspection=turn+25;
21
+
last_fleet_inspection=turn+25;
22
+
//obj_controller.liscensing=5;
23
+
clear_inspections();
24
+
diplo_text = "Very well i shall honour our previous agreements. (24 months leave of inspections)";
25
+
}
26
+
}
27
+
28
+
function inquis_demand_inspection_pass(){
29
+
var resistance=10;
30
+
var _worked = false;
31
+
clear_diplo_choices();
32
+
if (inspection_passes==0){
33
+
rull=floor(random(10))+1;
34
+
if (rull>resistance){
35
+
_worked=true;
36
+
last_world_inspection=turn+24;
37
+
last_fleet_inspection=turn+24;
38
+
//obj_controller.liscensing=5;
39
+
clear_inspections();
40
+
diplo_text = "Very well Chapter Master I Your service to the imperium is well known i have no doubt that you would not ask such of me without good reasoon. I shall forgoe my normal duties just this onece. \n do not becomne complacent Chapter Master i may not always be so generous";
41
+
} else {
42
+
var _diff = resistance - rull;
43
+
diplomacy[eFACTION.Inquisition] -= 1;
44
+
diplo_text = "Consider your request denied. If there is heresy or any wrong doing i shal see that is rooted out and made plain for all to see";;
45
+
46
+
}
47
+
}
48
+
49
+
}
50
+
1
51
function scr_demand(demand_type) {
2
52
3
53
// demand_type: button
@@ -73,28 +123,14 @@ function scr_demand(demand_type) {
73
123
resistance=10;
74
124
75
125
if (demand_type=1){// Requisition
76
-
rull=floor(random(10))+1;
77
-
if (rull>resistance){requisition+=300;worked=true;}
78
-
if (rull<=resistance){worked=false;}
79
-
}
80
-
if (demand_type=2) and (inspection_passes=0){
81
126
rull=floor(random(10))+1;
82
127
if (rull>resistance){
83
-
worked=true;
84
-
last_world_inspection=turn+12;
85
-
last_fleet_inspection=turn+12;
86
-
obj_controller.liscensing=5;
87
-
with(obj_en_fleet){if (owner = eFACTION.Inquisition) and (string_count("Inqis",trade_goods)>0){trade_goods="cancel_inspection";target=0;}}
128
+
requisition+=300;
129
+
worked=true;
130
+
}
131
+
if (rull<=resistance){
132
+
worked=false;
88
133
}
89
-
if (rull<=resistance){worked=false;}
90
-
}
91
-
if (demand_type=2) and (inspection_passes>0){
92
-
inspection_passes-=1;
93
-
worked=true;no_penalty=true;
94
-
last_world_inspection=turn+12;
95
-
last_fleet_inspection=turn+12;
96
-
obj_controller.liscensing=5;
97
-
with(obj_en_fleet){if (owner = eFACTION.Inquisition) and (string_count("Inqis",trade_goods)>0){trade_goods="cancel_inspection";target=0;}}
@@ -1435,12 +1449,26 @@ function scr_dialogue(diplo_keyphrase) {
1435
1449
if (rela=="friendly") then diplo_text="Remember whom you speak to, Chapter Master.";
1436
1450
if (rela=="neutral") then diplo_text=$"I, Inquisitor Lord {faction_leader[eFACTION.Inquisition]}, on behalf of the Inquisition, am awaiting your words.";
1437
1451
if (rela=="hostile") then diplo_text="Speak your next words very carefully, Astartes, for they may be your last.";
@@ -1761,7 +1789,10 @@ function scr_dialogue(diplo_keyphrase) {
1761
1789
if (rela=="neutral") then diplo_text="What is the meaning of this?";
1762
1790
if (rela=="hostile") then diplo_text="“The Heretic and Blasphemer can offer no excuse for their crimes. Those who are pardoned merely live to further shroud Humanity from the Light of the Emperor with the Darkness of their souls.”";
//report_string+=$"There is no clear chain of command on the planet we suspect the existence of Xenos or Heretic Forces"; // TODO LOW GARRISON_XENO // Readd when this actually gets implented
scr_popup("WAAAAGH!",$"A WAAAGH! led by the Warboss {_ork_leader} has arrived in "+string(obj_ini.sector_name)+". With him is a massive Ork fleet. Numbering in the dozens of battleships, they carry with them countless greenskins. The forefront of the WAAAGH! is destined for the "+string(starf.name)+" system.","waaagh","");
332
+
scr_popup("WAAAAGH!",$"A WAAAGH! led by the Warboss {_ork_leader} has arrived in {obj_ini.sector_name}. With him is a massive Ork fleet. Numbering in the dozens of battleships, they carry with them countless greenskins. The forefront of the WAAAGH! is destined for the {starf.name} system.","waaagh","");
0 commit comments