Operation Haines
Operation Haines
Character Selection
Welcome, Senator ${gameState.character}. Your journey begins now.
Press any button to continue...`); } break; case 1: // Introduction stage updateGameText(`Your First Day in Office
Welcome, Senator ${gameState.character}. You've just been elected to represent the Australian Democrats. What will be your first action?
- Advocate for housing and wealth inequality.
- Focus on regional and rural Australia.
- Support local business and hold multinational tax dodgers accountable.
- Work on environmental issues.
- Campaign for a right to repair.
If policy is not your strength, you may [Accept] the responsibility of strengthen the party's internal structure.
Your Policy Focus
You have chosen to focus on ${gameState.action}. Your journey as a senator has just begun, but where will it lead to? You will determine the destiny of yourself, your party and Australia. Make careful decisions and remember, we're here to keep them honest.
Tip: Press any button to continue...`); gameState.stage = 3; // Move to the next stage } break; case 3: // Party Popularity stage updateGameText(`Polls and Public Opinion
Your focus on ${gameState.action} has garnered attention. The party's popularity is rising, but there's a controversial bill coming up. What will you do?
- Support the bill openly.
- Oppose the bill openly.
- Stay neutral.
- Leak private discussions to the media and spread rumours about the bill's supporters. This will divert attention away from you.
Voting on Legislation
You chose to ${reaction} the bill. The party's popularity will be affected by this decision.
Press any button to continue...`); gameState.stage = 5; // Move to the next stage } else if (buttonId === 4) { updateGameText(`'Shadow Bill Puppeteer'
New Email
Subject: Concerning Reports
Following recent media reports that you are 'shadow bill' - a supposed powerbroker who is attempting to undermine democracy through exerting improper influence... you're not a great fit for our party. You have been referred to the National Anti-Corruption Commmission for investigation.
Click 'Accept' to resign.
`); gameState.stage = 'resignBastard'; } break; case 5: // Ethical Dilemma stage updateGameText(`An Unexpected Offer
A lobbyist offers you a large sum of money to vote in favor of a bill that goes against the party's values. Will you accept or decline?
[Accept] the bribe and buy a ferrari.
[Decline] the offer and uphold your integrity.
A Fateful Decision
IMPORTANT EMAIL RECEIVED!!
Sender: President, Australian Democrats
We are deeply disappointed to learn that you have accepted a bribe. This is unacceptable conduct, and you have been referred to the federal anti-corruption commission. You must resign immediately or face expulsion from the party.
Click 'Accept' to resign.
`); gameState.stage = 'resignBastard'; // Set stage to 'resignBribery' } else if (buttonId === 'deny') { updateGameText(`Standing by Your Principles
You declined the offer and upheld the values of the party. Your journey continues.
`); gameState.stage = 7; // Move to the next stage } break; case 'resignBastard': // if (buttonId === 'accept') { alert("Our goal is to keep the bastards honest, not become them.."); gameState.stage = -1; // Reset to start menu toggleStartMenu(true); } else if (buttonId === 'deny') { alert("Your resistance and denial is futile. Following a meeting of the National Executive, they decided to revoke your membership of the party. Try Again."); gameState.stage = -1; // Reset to start menu toggleStartMenu(true); } break; case 'Ending': // if (buttonId === 1) { alert("Thank you for playing. Please share and join the Australian Democrats."); gameState.stage = -1; // Reset to start menu toggleStartMenu(true); } else if (buttonId === 2) { alert("Thank you for playing. Please share and join the Australian Democrats."); gameState.stage = -1; // Reset to start menu toggleStartMenu(true); } break; case 7: // Internal Party Conflict stage updateGameText(`Internal Party Conflict
The party is facing internal conflicts. What will you do?
- You accuse your colleague, Joe Johnson-Bee Bensun of being part of the 'deep state' and decide to attend Fly News spreading accusations that he draws raw blood from wild wallabies that roam Canberra's hills
- Call for a party meeting to resolve issues.
- Purchase a legion of bots to harass your internal foes into submission. They will cry. You won't care.
- Ignore the conflicts and focus on legislation.
- Challenge your foes to a game of Minecraft and cool down the environment.
Why man... why
New Email
Subject: Disturbing accusations against Mr Bensun
G'day, we need to talk buddy. Disagreements shouldn't result in personal attacks - hell you know Joe's a vegetarian. Now I like my meat and I don't draw blood... thats beside the point. We need to talk about your behaviour, and issues with your alignment with our values.
Now [Accept] your fate...
`); gameState.stage = 'resignBastard'; } else if (buttonId === 2) { updateGameText(`Party Meeting Success
The party meeting was successful in resolving conflicts. Your leadership is commended.
`); gameState.stage = 9; // Move to the next stage (stage 9) } else if (buttonId === 4) { updateGameText(`Party Split
Ignoring the conflicts led to a split in the party. Your leadership is questioned.
`); gameState.stage = 10; // Move to the next stage (stage 10) } else if (buttonId === 3) { updateGameText(`Your actions have caught up to you.
New Email
Subject: You thought you could hide this... seriously?
This isn't funny. This isn't smart. We've caught on mate, and this abuse is not only disgusting and against our party values - but is inhumane. Maybe you'll get a life after the police deal with you.
Now [Accept] your fate...
`); gameState.stage = 'resignBastard'; } else if (buttonId === 5) { updateGameText(`Minecraft Success!
Ok that worked. Some of your older colleagues have no idea what a 'minecraft' is but hey, everyone's cool. A win.. in some respects. (Maybe focus on policy next time!)
`); gameState.stage = 9; // Move to the next stage (stage 9) } break; case 9: // Political Consequences stage updateGameText(`Political Consequences
Your successful handling of internal conflicts has attracted media attention. What's your next move?
- Give an interview emphasizing party unity.
- Give up, defect to Transnistria and never be heard of again.
- Launch a new policy initiative.
- Hold a press conference to discuss internal conflicts.
- Take some time off for personal reflection.
Public Trust Dilemma
The party split has caused a decline in public trust. How will you recover?
- Make a public apology and promise reform.
- Blame the faction that split from the party. Accuse their leader of being a 'deep state' plant.
- Change the topic by announcing a major policy initiative.
- Resign from your position.
- Keep silent and let the issue blow over.
Interview
You gave an interview emphasizing party unity. Public opinion is favorable.
`); gameState.stage = 11; } else if (buttonId === 2) { updateGameText(`Traitor to Country and Values
New Email
Subject: Really?
It was really that hard for you? Why didn't you reach out, we could've sorted this out! You're a traitor now... to our country and party values. And Transistria... really?
Now [Accept] your fate...
`); gameState.stage = 'resignBastard'; } else if (buttonId === 3) { updateGameText(`New Policy
You launched a new policy initiative. It is well-received and garners party support.
`); gameState.stage = 11; } else if (buttonId === 4) { updateGameText(`Press Conference
You held a press conference discussing internal conflicts. The issue gains media attention, but your transparency is commended.
`); gameState.stage = 11; } else if (buttonId === 5) { updateGameText(`Reflection
You took some time off for personal reflection. The party leadership is questioned by media and party members.
`); gameState.stage = 11; } break; case 'chooseTrust': // Handle choices for Public Trust Dilemma stage if (buttonId === 1) { updateGameText(`Public Apology
You made a public apology and promised reform. The public's trust is partially regained.
`); gameState.stage = 12; } else if (buttonId === 2) { updateGameText(`We needed unity... not further turmoil
New Email
Subject: Thats not on buddy.
The split was not inevitable and could have been avoided, yet you continue to inflame tension. You have betrayed our values of honesty, integrity and cooperation. It is our view you're no longer a fit for the party, and your harassment of a parliamentary colleague will not be tolerated... regardless of their relationship with our party.
Now [Accept] your fate...
`); gameState.stage = 'resignBastard'; } else if (buttonId === 3) { updateGameText(`New Policy Initiative
You changed the topic by announcing a major policy initiative. The public is intrigued, but the underlying issues remain.
`); gameState.stage = 12; } else if (buttonId === 4) { updateGameText(`Resignation
You resigned from your position. The party leadership is now in question.
`); gameState.stage = -1; // Reset to start menu toggleStartMenu(true); } else if (buttonId === 5) { updateGameText(`Silence
You kept silent and let the issue blow over. The lack of action is criticized.
`); gameState.stage = 12; } break; case 11: // Media Relations stage updateGameText(`Media Relations
You have been invited to a high-profile live television interview. This is a crucial moment to address the public and shape perceptions about your party's policies and values.
- Thoroughly review potential questions and prepare articulate responses.
- Go without preparation to appear more genuine and relatable.
- Decline the invitation, avoiding potential pitfalls.
Preparation Pays
Your thorough preparation paid off. You addressed all questions with depth and clarity, leaving a positive impression on the electorate.
`); gameState.stage = 12; // Move to the next stage } else if (buttonId === 2) { updateGameText(`A Fateful Decision
Your lack of preparation was glaringly obvious. You stumbled over questions, giving opponents fodder for criticism. The party leadership is under scrutiny.
`); gameState.stage = 'failMedia'; // Set stage to 'failMedia' } else if (buttonId === 3 || buttonId === 'deny') { updateGameText(`Missed Opportunity
You decided to decline the media invitation. While you avoided any potential mistakes, critics argue that you're not open to scrutiny.
`); gameState.stage = 12; // Move to the next stage } break; case 'failMedia': // Handle fail stage for Media Relations alert("Your media blunder has caused a public relations disaster. The party leadership decides you are unfit to continue, and you are forced to resign."); gameState.stage = -1; // Reset to start menu toggleStartMenu(true); break; case 12: // Policy Launch stage updateGameText(`Policy Launch
The time has come to launch a pivotal new policy. This is a critical juncture, as the policy will likely become a cornerstone of your campaign.
- Announce a multi-faceted Healthcare Improvement strategy, that involves privatising Medicare.
- Introduce a comprehensive Education Reform package.
- Unveil a Climate Change Mitigation plan.
- Declare war on the crocodiles under the sewers of Western Sydney, and arm primary schoolers to resist the rise of RED mutant crocs sent by a foreign government to pollute the minds of patriotic Australians.
- Give up, go on a speaking tour, complain about how all politicians are terrible and explain why you were chosen by god to be the leader you are. You skip many sitting weeks of parliament and ignore your constituents.
WHAT WERE YOU THINKING???
New Email
Subject: WHAT ON EARTH WERE YOU THINKING. WE ARE SCREWED!
WE LOST BIG TIME! Why would you want to Americanise the Australian Healthcare system? This policy is not evidence-based, and serves as an insult to the people of Australia!!
Now [Accept] your fate...
`); gameState.stage = 'resignBastard'; } else if (buttonId === 2) { updateGameText(`Education Reform
Your detailed Education Reform package is widely praised by stakeholders and resonates well with voters.
`); gameState.stage = 13; // Move to the next stage } else if (buttonId === 3) { updateGameText(`Climate Change Mitigation
Your Climate Change Mitigation plan becomes an instant hit, particularly among younger demographics who are concerned about the environment.
`); gameState.stage = 13; // Move to the next stage } else if (buttonId === 4) { updateGameText(`WHAT WERE YOU THINKING???
New Email
Subject: WHAT ON EARTH WERE YOU THINKING. WE ARE SCREWED!
WE ARE LOSING IN THE POLLS BIG TIME! WHAT ON EARTH MAKES YOU THINK THAT ARMING CHILDREN TO FIGHT MUTANT CROCODILES IN THE SEWERS OF BLACKTOWN WOULD BE AN ELECTION WINNER? YOU ARE A DISGRACE TO YOUR CONSTITUTENTS. YOU ARE DISENDORSED.. and by the looks of things, heading for defeat.
Now [Accept] your fate...
`); gameState.stage = 'resignBastard'; } else if (buttonId === 5) { updateGameText(`WHAT WERE YOU THINKING???
New Email
Subject: WHAT ON EARTH WERE YOU THINKING. WE ARE SCREWED!
WHERE ARE YOU? YOU'VE BEEN MIA FOR MONTHS NOW. Your speaking tour is terrible, enjoy the low numbers - you're disendorsed. Terrible. Absolutely terrible.
Now [Accept] your fate...
`); gameState.stage = 'resignBastard'; } break; case 13: updateGameText(`Follow-up
After announcing your policy, you're invited to a live TV debate to further discuss your plans.
- Double down on the benefits of your policy.
- Address criticisms, explain the feasibility and launch personal attacks.
- Challenge your opponents' lack of comprehensive policies.
Your forceful presentation during the debate adds more weight to your policy's credibility.
`); gameState.stage = 14; // Move to the next stage } else if (buttonId === 2) { updateGameText(`By successfully addressing the criticisms, you gain respect but lose it all through personal attacks - sickening the electorate.
`); gameState.stage = 'JkLm'; // Set stage to 'JkLm' } else if (buttonId === 3) { updateGameText(`You've put the opponents on the defensive, creating a narrative of your party being the only serious policy-makers.
`); gameState.stage = 14; // Move to the next stage } break; case 'JkLm': updateGameText(`And so.. it ends
New Email
Subject: Why did you need to be rude!
Sender: [email protected]
You were doing so well, and ruined it through your absolute rudeness!! Now we're destined for defeat.
Press any button to continue...
`); gameState.stage = -1; // Reset to start menu toggleStartMenu(true); break; case 14: updateGameText(`Parliamentary Conduct
Your conduct in the parliament is under scrutiny, and you must make a decision on how to proceed.
- Advocate for parliamentary transparency and accountability.
- Emphasize cooperation and bipartisanship to achieve common goals.
Your focus on parliamentary transparency and accountability gains widespread support, especially from voters tired of political corruption.
`); gameState.stage = 'QwEr'; // Move to the next stage } else if (buttonId === 2) { updateGameText(`Your emphasis on cooperation and bipartisanship is highly popular, particularly among voters looking for unity in the parliament.
`); gameState.stage = 'QwEr'; // Move to the next stage } break; case 'QwEr': updateGameText(`Congratulations!! We did so well!!
New Email
Subject: Its Party Time!
Sender: [email protected]
Amazing work, we made huge gains and you should be really proud of yourself!
Press any button to continue...
`); gameState.stage = 15; // Continue break; case 15: updateGameText(`First 100 Days
You're now in office, and the first 100 days are crucial for setting the tone of your term.
- Immediately start implementing your main campaign policy.
- Focus on building bipartisan support for upcoming bills.
- Find a way to make your best mate 'Bezbro' Secretary of a new Department of Protection. You will get him to surveil your opponents and make suggestions on national security that benefit your own political aspirations.
- Take a diplomatic trip overseas to establish international connections.
You push hard for your main campaign policy. While this excites your base, it also causes political polarization.
`); gameState.stage = 16; // Move to the next stage } else if (buttonId === 2) { updateGameText(`Your focus on bipartisan support pays off, making it easier to pass legislation, but some of your supporters feel you're compromising too much.
`); gameState.stage = 16; // Move to the next stage } else if (buttonId === 4) { updateGameText(`Your diplomatic trip is successful in establishing key international partnerships, but domestic issues start to pile up in your absence.
`); gameState.stage = 16; // Move to the next stage } else if (buttonId === 3) { updateGameText(`Democracy Dies
Months pass.. the public is scared. Riots erupt on the streets, as your opponents go into hiding. The Democrats condemn your actions and you are expelled from the party. Yet you gain power, unconstitutionally.
`); gameState.stage = 'dictator1'; // Move to the next stage } break; case 'dictator1': updateGameText(`Military on the streets
It has been over a year since parliament has last convened, and all political parties have been banned. An unconstitutional 'state of exception' has been enacted... by Bezbro. You are concerned that Bezbro has assumed too much control than he can handle. You believe that Australia is on track to become a dictatorship.
You have already failed in your quest to seek re-election. Your decision is final, and will shape what remains of Australia.
- You side with Bezbro as his right-hand man.
- Attempt to arrest Bezbro, and seize total control.
- You restore democracy, and unify your former opponents
Australia becomes a totalitarian state.
Under Bezbro's leadership, you launch an invasion of New Zealand. It fails, as the Australian public rebel. You are forced to resign and are set to face trial for your crimes and corruption.
Press 'Accept' to try again.
`); gameState.stage = 'resignBastard'; } else if (buttonId === 2) { updateGameText(`You never see the light of day again
Bezbro presents you before the "Highest Supreme People's Court of Australia" as your trial is broadcast publicly. You know it will be a sham, as you were responsible for undermining the judicial system. You may die or you may never see the light of day again...
Yet you anxiously await, the return of democracy one day
Press 'Accept' to try again.
`); gameState.stage = 'resignBastard'; // Move to the next stage } else if (buttonId === 3) { updateGameText(`A slow rebuild
Australian democracy is weak, yet it is back. You are unsure if Australia will return to its previous state. The public will never forget your responsibility in causing this mess. You await trial before court, uncertain of the outcome.
Press 'Accept' to try again.
`); gameState.stage = 'resignBastard'; } break; case 16: updateGameText(`Midterm Elections
Half-senate and House of Representatives elections are approaching. How will you handle them?
Your senate seat is not up for re-election
- Campaign aggressively to extend your party's influence.
- Take a backseat and let local politicians lead.
- Focus on governance and let the results speak for themselves.
You win some, you lose some. Your party gains new seats but also loses a few. The electorate is still divided.
`); gameState.stage = 'ZyXw'; // Move to the end stage } else if (buttonId === 2) { updateGameText(`Without your influence, your party struggles in the elections, losing several seats.
`); gameState.stage = 'ZyXw'; // Move to the end stage } else if (buttonId === 3) { updateGameText(`Some of your policies have begun to bear fruit, leading to gains in the midterms without requiring aggressive campaigning.
`); gameState.stage = 'ZyXw'; // Move to the end stage } break; case 'ZyXw': updateGameText(`Midterm Election Results
New Email
Subject: You're making good progress!
You've successfully navigated the turbulent waters of the elections half way through your senate term. Your legacy is starting to shape.
Press any button to continue...`); gameState.stage = 18; // Prepare for future updates break; case 18: updateGameText(`Parliamentary Misconduct
One of your trusted colleagues is accused of misconduct in the parliament. What will you do?
- [Accept] the allegations and call for appropriate action.
- Investigate the allegations further to determine their validity.
- Handle the matter internally without public involvement.
Taking Swift Action
You decide to take the allegations seriously and call for appropriate action. It sends a strong message about your commitment to parliamentary integrity.
The parliament and the public appreciate your swift response.
`); gameState.stage = 20; // Move to the next stage } else if (buttonId === 2) { updateGameText(`Launching an Investigation
You launch an investigation to determine the validity of the allegations against your colleague. The investigation will take time, and your decision will depend on its findings.
The parliament awaits the investigation results with anticipation.
`); gameState.stage = 'investigateMisconduct'; // Move to the next stage } else if (buttonId === 3) { updateGameText(`Handling Internally
You choose to handle the matter internally within your party without public involvement. This decision raises questions about transparency.
The parliament and the public express concerns about your choice.
`); gameState.stage = 20; // Move to the next stage } break; case 'investigateMisconduct': updateGameText(`Investigation Results
The investigation into your colleague's alleged misconduct has concluded.
Would you like to [Accept] the investigation findings and call for appropriate action, or [Deny] the findings and handle the matter privately?
`); gameState.stage = 'investigationResults'; // Move to investigation results stage break; case 'investigationResults': if (buttonId === 'accept') { updateGameText(`Accountability
The investigation findings confirm your colleague's misconduct. You take decisive action by calling for appropriate action, demonstrating your commitment to parliamentary integrity.
The parliament and the public appreciate your strong stance on accountability.
`); gameState.stage = 20; // Move to the next stage } else if (buttonId === 'deny') { updateGameText(`Disputing the Findings
You choose to dispute the investigation findings and handle the matter privately, despite evidence of misconduct. This decision raises questions about your commitment to accountability.
The parliament and the public express strong concerns about your choice.
`); gameState.stage = 20; // Move to the next stage } break; case 19: updateGameText(`Party Fundraising
The party is in need of funds for the upcoming election campaign. You have three options:
- Rely on grassroots fundraising and smaller donations to maintain party integrity.
- Explore alternative fundraising methods that align with party values.
- 'Legitimate businessman' Slippy Small Hands requests a favour from you. His small donut shop will make $10million a year if you influence law enforcement funding... to 'support the economy.' You know what he really wants... but you're desperate.
[Accept] large corporate donations to boost the campaign budget.
Corporate Donations
You decide to accept large corporate donations to boost the campaign budget. While this provides ample funds, it raises concerns about the influence of corporations on party policies.
Your opponents criticize your decision, and party integrity is questioned.
`); gameState.stage = 'FailElection'; // Move to election failure stage } else if (buttonId === 'rely' || buttonId === 1) { updateGameText(`Grassroots Fundraising
You choose to rely on grassroots fundraising and smaller donations, maintaining the party's integrity and independence from corporate influence.
Your decision is well-received by party members and the public, strengthening party unity.
`); gameState.stage = 20; // Move to the next stage } else if (buttonId === 'explore' || buttonId === 2) { updateGameText(`Exploring Alternatives
You decide to explore alternative fundraising methods that align with party values. This innovative approach attracts new donors who share your party's vision.
Your campaign receives a boost from enthusiastic supporters.
`); gameState.stage = 20; // Move to the next stage } else if (buttonId === 3) { updateGameText(`Dum Dum.. off to court
New Email
Subject: Notice to appear at supreme court
Following an investigation initiated by evidence referred to us by your political party - you have been charged with crimes. Corruption and criminal activity will not be tolerated. You must appear before court on the date listed.
Now [Accept] your fate...
`); gameState.stage = 'resignBastard'; } break; case 20: updateGameText(`Parliamentary Campaign
The parliamentary campaign is in full swing. You have the opportunity to participate in a parliamentary debate.
- [Accept] the invitation and prepare for the debate.
- [Deny] the invitation and focus on parliamentary work.
Parliamentary Debate
You accept the invitation to the parliamentary debate and prepare diligently. Your performance is well-received by the audience, and you gain additional support.
The momentum is on your side as the election day approaches.
`); gameState.stage = 22; // Move to the next stage } else if (buttonId === 'deny') { updateGameText(`Parliamentary Work
You decline the invitation to the parliamentary debate and focus on your parliamentary work. This strengthens your reputation as a dedicated parliamentarian.
Your commitment to parliamentary duties is noticed and appreciated.
`); gameState.stage = 22; // Move to the next stage } break; case 22: updateGameText(`Parliamentary Campaign
The election day has arrived. You and your party members are eagerly waiting for the election results.
- [Accept] See the election results.
Victory!
Congratulations! You and your party have won the election with ${votePercentage}% of the vote. Your commitment to parliamentary integrity and conduct have resonated with the voters.
You now have a seat in the House of Representatives, and your party's presence in the Senate has increased. It's a great success for the Australian Democrats!
Press 1 to re-start the game.
`); gameState.stage = 'Ending'; // Reset to start menu } else if (electionOutcome === 'crossbench') { updateGameText(`Crossbench Success
Your party didn't win the election, but you managed to secure a seat on the crossbench in the House of Representatives with ${votePercentage}% of the vote. This allows you to influence government decisions.
While not in government, your party can still make a significant impact on policy.
Press 1 to re-start the game.
`); gameState.stage = 'Ending'; // Reset to start menu } else if (electionOutcome === 'minorParty') { updateGameText(`Becoming a Minor Party
Your party didn't win, but you gained recognition as a minor party with ${votePercentage}% of the vote. This provides you with a platform to advocate for your policies in the Senate.
While you're not in the government, your voice is still heard in the parliamentary landscape.
Press 1 to re-start the game.
`); gameState.stage = 'Ending'; // Reset to start menu } else if (electionOutcome === 'noChamber') { updateGameText(`Out of the Chamber
Unfortunately, your party did not secure any seats in the election. You received only 420 votes, 0.69% of the total and your party is no longer represented in the chamber.
It's a challenging setback, but your party can regroup and plan for the future.
Press 1 to re-start the game.
`); gameState.stage = 'Ending'; // Reset to start menu } else if (electionOutcome === 'houseOfReps') { updateGameText(`Winning a House of Reps Seat
Congratulations! While your party didn't win the election outright, you secured a seat in the House of Representatives with ${votePercentage}% of the vote.
This allows you to directly influence government decisions and policies as a member of the House of Representatives.
Press 1 to re-start the game.
`); gameState.stage = 'Ending'; // Reset to start menu } else { updateGameText(`Defeat
Unfortunately, your party did not secure enough votes to win the election. You received only ${votePercentage}% of the vote. Despite your efforts, the election results are disappointing.
Press any button to start a new game...
Press 1 to re-start the game.
`); gameState.stage = 'Ending'; // Reset to start menu } } break; // Check for button click to transition to the next stage if (buttonId !== null) { gameState.stage = -1; // Reset to the start menu toggleStartMenu(true); } break; } } // Define a function to generate the election outcome function generateElectionOutcome() { // You can implement your logic here to determine the election outcome. // For example, you can use randomization or any other method to simulate the outcome. // For demonstration purposes, I'll use randomization to determine the outcome. const outcomes = ['win', 'crossbench', 'minorParty', 'noChamber', 'houseOfReps']; const randomIndex = Math.floor(Math.random() * outcomes.length); return outcomes[randomIndex]; } // Attach event listeners to buttons btn1.addEventListener('click', () => handleButtonClick(1)); btn2.addEventListener('click', () => handleButtonClick(2)); btn3.addEventListener('click', () => handleButtonClick(3)); btn4.addEventListener('click', () => handleButtonClick(4)); btn5.addEventListener('click', () => handleButtonClick(5)); accept.addEventListener('click', () => handleButtonClick('accept')); deny.addEventListener('click', () => handleButtonClick('deny')); // // Event listeners for start menu buttons startGameButton.addEventListener('click', () => { toggleStartMenu(false); gameState.stage = 0; updateGameText(`Welcome to Operation Haines
Choose your character:
1. Lyn Allison
Senator Allison was the last federal parliamentary leader of the Australian Democrats. She was an advocate for education reform. Lyn was also known for her work on human rights.
2. Janine Haines
Janine Haines was the first woman to lead a parliamentary party. She was known and commended for her work on civil liberties. She was a strong supporter of democratic processes, and a trailblazer. Influential in the field of criminal justice reform, she emphasised rehabilitation.
3. Don Chipp
Senator Chipp was elected to the Australian senate in 1977. He was a pioneer in advocating for transparency in politics, and stood his ground by leaving the liberal party. He is widely regarded as the founder of the Australian Democrats.
4. Michael Macklin
Senator Macklin advocated for environmental causes throughout his career, and was part of the first generation of Democrat senators. He was a strong, and one of the first voices against climate change. Michael Macklin worked extensively in conservation efforts.
`); }); aboutGameButton.addEventListener('click', () => { updateGameText('Operation Haines is a text-based adventure game that takes you through the history of the Australian Democrats.'); }); exitGameButton.addEventListener('click', () => { updateGameText('Thank you for playing Operation Haines. Goodbye!'); toggleStartMenu(false); }); // // Event listener for the "Accept" button in the resignation email resignButton.addEventListener('click', () => { resignationEmail.style.display = 'none'; // Hide the resignation email alert("We're here to Keep Them Honest. Not be Them."); gameState.stage = -1; // Reset to start menu toggleStartMenu(true); }); //