Code
Trigger("Player 1","Player 2","Player 3"){
Conditions:
Command("Current Player", "Protoss Nexus", At least, 1);
FIXED: Bring("Current Player", "Protoss Nexus", "Arena", At least, 1);
Bring("Player 7", "Protoss Nexus", "Arena", At least, 1);
Bring("Player 7", "Protoss Beacon", "base 1 nexus_tele", At least, 1);
Actions:
Remove Unit("Current Player", "Protoss Nexus");
Set Resources("Current Player", Add, 120, ore);
Display Text Message(Always Display, "DEBUG -- NEXUS REFUND");
Preserve Trigger();
Comment("");
}
//-----------------------------------------------------------------//
Trigger("Player 1","Player 2","Player 3"){
Conditions:
Bring("Player 7", "Protoss Nexus", "arena", At most, 0);
Bring("Player 7", "Protoss Beacon", "base 1 nexus_tele", At least, 1);
Actions:
Give Units to Player("All Players", "Player 8", "Protoss Beacon", 1, "base 1 nexus_tele");
Display Text Message(Always Display, "DEBUG -- P7 LOSES BEACON");
Preserve Trigger();
Comment("");
}
//-----------------------------------------------------------------//
Trigger("Player 1","Player 2","Player 3"){
Conditions:
Bring("Current Player", "Protoss Nexus", "arena", At least, 1);
Bring("Player 7", "Protoss Nexus", "arena", at most, 0);
Bring("Player 7", "Protoss Beacon", "base 1 nexus_tele", At most, 0);
Actions:
Give Units to Player("Current Player", "Player 7", "Protoss Nexus", 1, "Arena");
Give Units to Player("All players", "Player 7", "Protoss Beacon", 1, "base 1 nexus_tele");
Move Location("Player 7", "Protoss Nexus", "Arena", "base 1 nexus");
Display Text Message(Always Display, "DEBUG -- GIVE NEXUS TO P7");
Preserve Trigger();
Comment("");
}
//-----------------------------------------------------------------//
Trigger("Player 1","Player 2","Player 3"){
Conditions:
Bring("Current Player", "Men", "base 1 nexus_tele", At least, 1);
Bring("Player 7", "Protoss Beacon", "base 1 nexus_tele", At least, 1);
Bring("Player 7", "Protoss Nexus", "base 1 nexus", At least, 1);
Bring("Temple of the South", "Men", "base 1 nexus", At most, 0);
Bring("Temple of the South", "Men", "Base 1 Tele Block", At most, 0);
Actions:
Move Unit("Current Player", "Men", 1, "base 1 nexus_tele", "base 1 nexus");
Display Text Message(Always Display, "DEBUG -- TELEPORT TO NEXUS");
Preserve Trigger();
Comment("");
}
//-----------------------------------------------------------------//
Conditions:
Command("Current Player", "Protoss Nexus", At least, 1);
FIXED: Bring("Current Player", "Protoss Nexus", "Arena", At least, 1);
Bring("Player 7", "Protoss Nexus", "Arena", At least, 1);
Bring("Player 7", "Protoss Beacon", "base 1 nexus_tele", At least, 1);
Actions:
Remove Unit("Current Player", "Protoss Nexus");
Set Resources("Current Player", Add, 120, ore);
Display Text Message(Always Display, "DEBUG -- NEXUS REFUND");
Preserve Trigger();
Comment("");
}
//-----------------------------------------------------------------//
Trigger("Player 1","Player 2","Player 3"){
Conditions:
Bring("Player 7", "Protoss Nexus", "arena", At most, 0);
Bring("Player 7", "Protoss Beacon", "base 1 nexus_tele", At least, 1);
Actions:
Give Units to Player("All Players", "Player 8", "Protoss Beacon", 1, "base 1 nexus_tele");
Display Text Message(Always Display, "DEBUG -- P7 LOSES BEACON");
Preserve Trigger();
Comment("");
}
//-----------------------------------------------------------------//
Trigger("Player 1","Player 2","Player 3"){
Conditions:
Bring("Current Player", "Protoss Nexus", "arena", At least, 1);
Bring("Player 7", "Protoss Nexus", "arena", at most, 0);
Bring("Player 7", "Protoss Beacon", "base 1 nexus_tele", At most, 0);
Actions:
Give Units to Player("Current Player", "Player 7", "Protoss Nexus", 1, "Arena");
Give Units to Player("All players", "Player 7", "Protoss Beacon", 1, "base 1 nexus_tele");
Move Location("Player 7", "Protoss Nexus", "Arena", "base 1 nexus");
Display Text Message(Always Display, "DEBUG -- GIVE NEXUS TO P7");
Preserve Trigger();
Comment("");
}
//-----------------------------------------------------------------//
Trigger("Player 1","Player 2","Player 3"){
Conditions:
Bring("Current Player", "Men", "base 1 nexus_tele", At least, 1);
Bring("Player 7", "Protoss Beacon", "base 1 nexus_tele", At least, 1);
Bring("Player 7", "Protoss Nexus", "base 1 nexus", At least, 1);
Bring("Temple of the South", "Men", "base 1 nexus", At most, 0);
Bring("Temple of the South", "Men", "Base 1 Tele Block", At most, 0);
Actions:
Move Unit("Current Player", "Men", 1, "base 1 nexus_tele", "base 1 nexus");
Display Text Message(Always Display, "DEBUG -- TELEPORT TO NEXUS");
Preserve Trigger();
Comment("");
}
//-----------------------------------------------------------------//
1) I start the game as Player 1.
2) I build a Nexus.
3) The Nexus finishes.
4) The Nexus is given to Player 7 AND the refund is triggered, but ALWAYS and ONLY on the FIRST Nexus that I build. Every Nexus built thereafter is handled correctly. This should not be possible!!
I've tried moving the refund trigger into different spots, but it still happens. It always happens and only on the FIRST Nexus that I make. Something is at work that I don't quite understand yet. Is there some problem with the triggers, or is the only way around this to make an anti-refund trigger that only fires once?
Post has been edited 1 time(s), last time on Nov 26 2008, 1:11 am by Mini Moose 2707.
https://www.collaborativefund.com/blog/how-this-all-happened/
https://thelastpsychiatrist.com/2012/11/hipsters_on_food_stamps.html
https://youtu.be/vyiXaCRwZTs
https://thelastpsychiatrist.com/2011/09/how_to_be_mean_to_your_kids.html
http://lab.cccb.org/en/renata-avila-the-internet-of-creation-disappeared-now-we-have-the-internet-of-surveillance-and-control/
https://thelastpsychiatrist.com/2012/11/hipsters_on_food_stamps.html
https://youtu.be/vyiXaCRwZTs
https://thelastpsychiatrist.com/2011/09/how_to_be_mean_to_your_kids.html
http://lab.cccb.org/en/renata-avila-the-internet-of-creation-disappeared-now-we-have-the-internet-of-surveillance-and-control/