IF T30, @alreadydone
N: You have chosen to tackle conflict #1
N: I will now brief you on your mission
WAIT 2
N: You must deploy enough troops/spellcasters to end
N: A riot
WAIT 2
N: Accept?
ASK 35
IF -YES, @saidno
SET troop, 5
SET spell, 5
SET chancefail, %R
SET troopaffect, %R
SET spelleffect, %R
SET riot, 5
N: You have 5 troops to send out
N: You have 5 Spellcasters to send out
WAIT 5
N: Get ready...
WAIT 3
N: GO!
@menu
MENU "Deploy troop=@dtroop", "Deploy spellcaster=@dspell", "Quit mission=@quit"
END
@dtroop
COMPARE #<troop>, 0
IF= @nomore
IF> @continue
END
@continue
N: You send one troop into the riot
SUB troop, 1
GOTO @comparingtroop
END
@comparingtroop
COMPARE #<chancefail>, 1
IF= @comparetroop
IF> @comparetroop
END
@comparetroop
ADD troopaffect, 1
COMPARE #<troopaffect>, 2
IF= @success
IF> @fail
IF< @fail
END
@success
N: That troop/spellcaster succeeded in calming it
COMPARE #<riot>, 0
IF= @finished
IF> @sub
END
@sub
SUB riot, 1
N: You are currently at #<riot> riot, your goal is 0
GOTO @menu
END
@nomore
N: You have no more troops!
GOTO @menu
@fail
N: You failed, to do this mission
GOTO @openemporermenu
END

@dspell
COMPARE #<spell>, 0
IF= @nomore2
IF> @continue
@continue
N: You send a spellcaster into the riot
SUB spell, 1
GOTO @comparingspell
END
@comparingspell
COMPARE #<chancefail>, 7
IF= @comparespell
IF> @comparespell
END
@comparespell
ADD spelleffect, 1
COMPARE #<spelleffect>, 8
IF= @success
IF> @fail
IF< @fail
END
@nomore2
N: You have no more spellcasters!
GOTO @menu
END

@quit
SET loop, 10
N: Would you like to quit the mission?
ASK 50
IF -YES, @saidno
N: Closing mission...
@fade
COLOR 1013
COLOR 2013
WAIT .1
SUB loop, 1
IF> @fade
GOTO @openemporermenu
END

@finished
GIVE T30
N: You have completed this mission now
END

@alreadydone
N: You have already completed mission 1
GOTO @openemporermenu
END

@saidno
GOTO @menu
END
