Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ChapterMaster.yyp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
"isEcma":false,
"LibraryEmitters":[],
"MetaData":{
"IDEVersion":"2024.1400.0.901",
"IDEVersion":"2024.1400.0.892",
},
"name":"ChapterMaster",
"resources":[
Expand Down
6 changes: 3 additions & 3 deletions objects/obj_ncombat/Alarm_7.gml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ try {
obj_controller.known[eFACTION.Chaos]=2;
with(obj_controller){scr_dialogue("intro2");}
}
if (defeat=0){
if (defeat == 0){
obj_controller.known[eFACTION.Chaos]=2;
obj_controller.faction_defeated[10]=1;

Expand Down Expand Up @@ -252,7 +252,7 @@ try {


if (turn_count < 20){
if (defeat=0) and (threat>=4) then scr_recent("battle_victory", $"{battle_loc} {scr_roman(battle_id)}",enemy);
if (defeat == 0) and (threat>=4) then scr_recent("battle_victory", $"{battle_loc} {scr_roman(battle_id)}",enemy);



Expand Down Expand Up @@ -333,7 +333,7 @@ try {
hunt_fallen_battle_aftermath();
}

else if (defeat=0) and (enemy=9) and (battle_special="tyranid_org"){
else if (defeat == 0) and (enemy=9) and (battle_special="tyranid_org"){
if (captured_gaunt>1){
_pop = instance_create(0,0,obj_popup);
_pop.image = "inquisition";
Expand Down
208 changes: 2 additions & 206 deletions objects/obj_popup/Step_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ try {
if (hide == true) {
exit;
}

if ((cooldown >= 0) && (cooldown <= 40)) {
cooldown -= 1;
}
if (instance_exists(obj_controller)) {
if (obj_controller.zoomed == 1) {
with (obj_controller) {
Expand All @@ -19,11 +15,6 @@ try {
press = i;
}
}
if (press > -1){
if (options[press] == ""){
press = -1;
}
}

if ((type != 6) && (master_crafted == 1)) {
master_crafted = 0;
Expand Down Expand Up @@ -686,9 +677,6 @@ try {
else if (((title == "Inquisition Mission") || (title == "Inquisition Recon")) && (array_length(options) == 0)) {
add_option(["Accept", "Refuse"], true);
}
else if (title == "Inquisitor Located") {
add_option(["Destroy their vessel", "Hear them out"], true);
}

if ((title == "He Built It") && (array_length(options) == 0) && (string_count("submerged", text) == 0)) {
add_option(["Execute the heretic", "Move him to the Penitorium", "I see no problem"], true);
Expand All @@ -708,34 +696,6 @@ try {
obj_controller.gene_seed = round(obj_controller.gene_seed * 0.66);
}
}

if ((title == "Inquisitor Located") || (title == "Artifact Offered") || (title == "Mercy Plea")) {
with (obj_en_fleet) {
if ((trade_goods == "male_her") || (trade_goods == "female_her")) {
instance_destroy();
}
}

if (obj_controller.demanding == 0) {
obj_controller.disposition[4] += 1;
}
if (obj_controller.demanding == 1) {
obj_controller.disposition[4] += choose(0, 0, 1);
}

if ((title == "Artifact Offered") || (title == "Mercy Plea")) {
obj_controller.disposition[4] -= choose(0, 1);
}

title = "Inquisition Mission Completed";
image = "exploding_ship";
text = "The Inquisitor's ship begans to bank and turn, to flee, but is immediately fired upon by your fleet. The ship explodes, taking the Inquisitor with it. The mission has been accomplished.";
reset_popup_options();

scr_event_log("", "Inquisition Mission Completed: The radical Inquisitor has been purged.");

exit;
}
if (title == "He Built It") {
scr_kill_unit(ma_co, ma_id);
var company_to_order = ma_co;
Expand Down Expand Up @@ -793,38 +753,13 @@ try {
if (demand) {
text = $"The Inquisition demands that your Chapter demonstrate its loyalty to the Imperium of Mankind and the Emperor. {global.chapter_name} are to cleanse by fire the mutants in Hive {planet_numeral_name(planet, mission_star)} within {estimate} months.";
}
} else if (mission == "inquisitor") {
scr_event_log("", $"Inquisition Mission Accepted: A radical Inquisitor enroute to {mission_star.name} must be removed. Estimated arrival in {estimate} months.", mission_star.name);
if (demand) {
text = $"The Inquisition demands that your Chapter demonstrate its loyalty to the Imperium of Mankind and the Emperor. A radical inquisitor is enroute to {mission_star.name}, expected within {estimate} months. They are to be silenced and removed.";
}
}

if (mission == "spyrer") {
scr_event_log("", $"Inquisition Mission Accepted: The Spyrer on {mission_star.name} {scr_roman(planet)} must be killed within {estimate} months.", mission_star.name);
if (demand) {
text = $"The Inquisition demands that your Chapter demonstrate its loyalty to the Imperium of Mankind and the Emperor. An out of control Spyrer on Hive {mission_star.name} {scr_roman(onceh)} must be removed within {estimate} months.";
}
} else if (mission == "necron") {
scr_event_log("", $"Inquisition Mission Accepted: {global.chapter_name} have been given a Bomb to seal the Necron Tomb on {mission_star.name} {scr_roman(planet)}.", mission_star.name);

image = "necron_cave";
title = "New Equipment";
fancy_title = 0;
text_center = 0;
text = $"{global.chapter_name} have been provided with 1x Plasma Bomb in order to complete the mission.";

if (demand) {
text = $"The Inquisition demands that your Chapter demonstrate its loyalty. {global.chapter_name} have been given a Plasma Bomb to seal the Necron Tomb on {mission_star.name} {scr_roman(onceh)}. It is expected to be completed within {estimate} months.";
}
reset_popup_options();
scr_add_item("Plasma Bomb", 1);
obj_controller.cooldown = 10;
if (demand) {
demand = 0;
}
exit;
} else if (mission == "tyranid_org") {
} else if (mission == "tyranid_org") {
image = "webber";
title = "New Equipment";
fancy_title = 0;
Expand Down Expand Up @@ -994,71 +929,6 @@ try {
exit;
}

if (title == "Inquisitor Located") {
var offer, gender, gender2;
offer = choose(1, 1, 2, 2, 3);
if (planet == 1) {
gender = "he";
}
if (planet == 2) {
gender = "she";
}
if (planet == 1) {
gender2 = "his";
}
if (planet == 2) {
gender2 = "her";
}

if (offer == 1) {
title = "Artifact Offered";
text = "The Inquisitor claims that this is a massive misunderstanding, and " + string(gender) + " wishes to prove " + string(gender2) + $" innocence. If {global.chapter_name} allow their ship to leave " + string(gender) + $" will give {global.chapter_name} an artifact.";
add_option("Destroy their vessel");
add_option("Take the artifact and then destroy them");
add_option("Take the artifact and spare them");
exit;
}

if (offer == 2) {
title = "Mercy Plea";
text = "The Inquisitor claims that " + string(gender) + $" has key knowledge that would grant the Imperium vital power over the forces of Chaos. If {global.chapter_name} allow " + string(gender2) + " ship to leave the forces of Chaos within this sector will be weakened.";
add_option("Destroy their vessel");
add_option("Search their ship");
add_option("Spare them");
exit;
}

if (offer == 3) {
var gender2;
if (planet == 1) {
gender2 = "his";
}
if (planet == 2) {
gender2 = "her";
}
with (obj_en_fleet) {
if ((trade_goods == "male_her") || (trade_goods == "female_her")) {
with (obj_p_fleet) {
if (action != "") {
instance_deactivate_object(id);
}
}
with (instance_nearest(x, y, obj_p_fleet)) {
scr_add_corruption(true, "1d3");
}
instance_activate_object(obj_p_fleet);
instance_destroy();
}
}
title = "Inquisition Mission Completed";
image = "exploding_ship";
text = $"{global.chapter_name} allow communications. As soon as the vox turns on {global.chapter_name} hear a sickly, hateful voice. They begin to speak of the inevitable death of your marines, the fall of all that is and ever shall be, and " + string(gender2) + " Lord of Decay. Their ship is fired upon and destroyed without hesitation.";
reset_popup_options();
scr_event_log("", "Inquisition Mission Completed: The radical Inquisitor has been purged.");
exit;
}
exit;
}
if (image == "artifact2") {
scr_return_ship(obj_ground_mission.loc, obj_ground_mission, obj_ground_mission.num);
var man_size, ship_id, comp, plan, i;
Expand Down Expand Up @@ -1087,73 +957,6 @@ try {
instance_destroy();
}
}

if ((press == 2) && (option3 != "")) {
if (title == "Artifact Offered") {
with (obj_en_fleet) {
if ((trade_goods == "male_her") || (trade_goods == "female_her")) {
action_x = choose(room_width * -1, room_width * 2);
action_y = choose(room_height * -1, room_height * 2);
alarm[4] = 1;
trade_goods = "|DELETE|";
action_spd = 256;
action = "";
}
}
var last_artifact = scr_add_artifact("random", "", 4);

reset_popup_options();
title = "Inquisition Mission Completed";
text = "Your ship sends over a boarding party, who retrieve the offered artifact- ";
text += $" some form of {obj_ini.artifact[last_artifact]}. As promised {global.chapter_name} allow the Inquisitor to leave, hoping for the best. What's the worst that could happen?";
image = "artifact_recovered";
reset_popup_options();
scr_event_log("", "Artifact Recovered from radical Inquisitor.");
scr_event_log("", "Inquisition Mission Completed: The radical Inquisitor has been purged.");

add_event({
e_id : "inquisitor_spared",
duration : irandom_range(6, 18) + 1,
variation : 1,
})

exit;
}
if (title == "Mercy Plea") {
with (obj_en_fleet) {
if ((trade_goods == "male_her") || (trade_goods == "female_her")) {
action_x = choose(room_width * -1, room_width * 2);
action_y = choose(room_height * -1, room_height * 2);
trade_goods = "|DELETE|";
alarm[4] = 1;
action_spd = 256;
action = "";
}
}
title = "Inquisition Mission Completed";
text = $"{global.chapter_name} allow the Inquisitor to leave, trusting in their words. If they truly do have key information it is a risk {global.chapter_name} are willing to take. What's the worst that could happen?";
image = "artifact_recovered";
reset_popup_options();

scr_event_log("", "Inquisition Mission Completed?: The radical Inquisitor has been allowed to flee in order to weaken the forces of Chaos, as they promised.");

add_event({
e_id : "inquisitor_spared",
duration : irandom_range(6, 18) + 1,
variation : 2,
})

exit;
}

obj_controller.cooldown = 10;
if (obj_controller.complex_event == false) {
if (number != 0 && instance_exists(obj_turn_end)) {
obj_turn_end.alarm[1] = 4;
}
instance_destroy();
}
}
if (image == "new_forge_master") {
if (pathway == "") {
obj_controller.complex_event = true;
Expand Down Expand Up @@ -1368,14 +1171,7 @@ try {
add_option(["Continue"]);
}
if (press == 0) {
obj_controller.complex_event = false;
if (instance_exists(obj_turn_end)) {
if (number != 0) {
obj_turn_end.alarm[1] = 4;
}
instance_destroy();
}
instance_destroy();
popup_default_close();
}
}
} catch (_exception) {
Expand Down
28 changes: 28 additions & 0 deletions objects/obj_star_select/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,34 @@ has_player_forces = array_sum(target.p_player);

manage_units_button = new UnitButtonObject({x1 :115, y1:200, style : "pixel", label:"Manage Units"});

//if (global.cheat_debug){
debug_button = new UnitButtonObject({x1 :36, y1:185, style : "pixel", label:"Debug"});

debug_options = new RadioSet([
{
str1 : "Edit Forces",

},
{
str1 : "Add Problem",

},
{
str1 : "Add Feature",

},
],"Debug options",{x1 : 36, y1 : 129, max_width : 300});

debug_slate = new DataSlate({
style : "plain",
XX : 36,
YY : 100,
set_width : true,
width : 310,
height : 900,
});
//}

torpedo = scr_item_count("Cyclonic Torpedo");

feature= "";
Expand Down
Loading