def PILOT_offers(self, camp):
     mylist = list()
     if self.eteam_defeated:
         mylist.append(
             Offer(
                 "[THANKS_FOR_MECHA_COMBAT_HELP] I better get back to base.",
                 dead_end=True,
                 context=ContextTag([
                     ghdialogue.context.HELLO,
                 ]),
                 effect=self.pilot_leaves_combat))
     else:
         myoffer = Offer("[HELP_ME_VS_MECHA_COMBAT]",
                         dead_end=True,
                         context=ContextTag([
                             ghdialogue.context.HELLO,
                         ]))
         if not self.eteam_activated:
             myoffer.replies.append(
                 Reply("Get out of here, I can handle this.",
                       destination=Offer(
                           "[THANK_YOU] I need to get back to base.",
                           effect=self.pilot_leaves_before_combat,
                           dead_end=True)))
         mylist.append(myoffer)
     return mylist
Beispiel #2
0
    def SHERIFF_offers(self, camp):
        mylist = list()
        if camp.scene is self.elements["LOCALE"]:
            yes_tutorial = Offer(
                "Alright. When we get to the field, I'll give you a brief tutorial. You can get in your mecha by using the boarding chute over there.",
                dead_end=True,
                effect=self._activate_tutorial,
            )
            no_tutorial = Offer(
                "Understood. You can get in your mecha by using the boarding chute over there.",
                dead_end=True,
                effect=self._deactivate_tutorial,
            )

            if not self._did_first_reply:
                myhello = Offer(
                    "We just got an alarm from the power station- it's under attack. Are you ready to suit up and roll out?",
                    context=ContextTag([context.HELLO]),
                    dead_end=True,
                )
                myfriend = Offer(
                    "[GOOD] You've been a true friend to {}, and to me personally. One more question: Do you want me to walk you through the new mecha control upgrade?"
                    .format(self.elements["DZ_TOWN_NAME"]),
                    dead_end=True,
                    effect=self._choose_friendly_reply)
                mypro = Offer(
                    "I would have had a hard time defending {} without a pilot like you on our side. One question before we go: Do you want me to walk you through the new mecha control upgrade?"
                    .format(self.elements["DZ_TOWN_NAME"]),
                    dead_end=True,
                    effect=self._choose_professional_reply)
                myflirt = Offer(
                    "And I'd love to take you up on that, but first we need to save {}. One question before we go: Do you want me to walk you through the new mecha control upgrade?"
                    .format(self.elements["DZ_TOWN_NAME"]),
                    dead_end=True,
                    effect=self._choose_flirty_reply)

                myhello.replies.append(
                    Reply(
                        msg="[IWOULDLOVETO]",
                        destination=myfriend,
                    ))
                myhello.replies.append(
                    Reply(
                        msg="[LETS_START_MECHA_MISSION]",
                        destination=mypro,
                    ))
                myhello.replies.append(
                    Reply(
                        msg="[THATSUCKS] I was hoping to ask you out today.",
                        destination=myflirt,
                    ))
                for rep in myhello.replies:
                    off2 = rep.destination
                    off2.replies.append(
                        Reply(msg="[YESPLEASE]", destination=yes_tutorial))
                    off2.replies.append(
                        Reply(msg="[NOTHANKYOU]", destination=no_tutorial))

                mylist.append(myhello)
            else:
                myhello = Offer(
                    "Time to go defend the power station. Do you want me to walk you through the new mecha control upgrade when we get there?",
                    context=ContextTag([context.HELLO]),
                    dead_end=True,
                )
                myhello.replies.append(
                    Reply(msg="[YESPLEASE]", destination=yes_tutorial))
                myhello.replies.append(
                    Reply(msg="[NOTHANKYOU]", destination=no_tutorial))
                mylist.append(myhello)

        return mylist
from pbge.dialogue import Reply, Cue, ContextTag
from . import context

ACCEPTMISSION_JOIN = Reply("[ACCEPT_MISSION:JOIN]",
                           context=ContextTag([context.ACCEPT, context.MISSION]),
                           destination=Cue(ContextTag([context.JOIN])))

ACCEPTMISSION_GOODBYE = Reply("[ACCEPT_MISSION:GOODBYE]",
                              context=ContextTag([context.ACCEPT, context.MISSION]),
                              destination=Cue(ContextTag([context.GOODBYE])))

ATTACK_CHALLENGE = Reply("[ATTACK:CHALLENGE]",
                         destination=Cue(ContextTag([context.CHALLENGE])),
                         context=ContextTag([context.ATTACK]))

ATTACK_COMBATCUSTOM = Reply("{reply}",
                            destination=Cue(ContextTag([context.COMBAT_CUSTOM])),
                            context=ContextTag([context.ATTACK]))

ATTACK_COMBATINFO = Reply("[ATTACK:COMBAT_INFO]",
                          destination=Cue(ContextTag([context.COMBAT_INFO])),
                          context=ContextTag([context.ATTACK]))

ATTACK_MERCY = Reply("[ATTACK:MERCY]",
                     destination=Cue(ContextTag([context.MERCY])),
                     context=ContextTag([context.ATTACK]))

ATTACK_RETREAT = Reply("[ATTACK:RETREAT]",
                       destination=Cue(ContextTag([context.RETREAT])),
                       context=ContextTag([context.ATTACK]))
Beispiel #4
0
from pbge.dialogue import Reply,Cue,ContextTag
from . import context

ACCEPTMISSION_JOIN = Reply( "[ACCEPT_MISSION:JOIN]" ,
            context = ContextTag([context.ACCEPT,context.MISSION]),
            destination = Cue( ContextTag([context.JOIN]) ) )
            
ACCEPTMISSION_GOODBYE = Reply( "[ACCEPT_MISSION:GOODBYE]" ,
            context = ContextTag([context.ACCEPT,context.MISSION]),
            destination = Cue( ContextTag([context.GOODBYE]) ) )

ATTACK_CHALLENGE = Reply( "[ATTACK:CHALLENGE]" ,
            destination = Cue( ContextTag([context.CHALLENGE]) ) ,
            context = ContextTag([context.ATTACK]) )

ATTACK_COMBATINFO = Reply( "[ATTACK:COMBAT_INFO]" ,
            destination = Cue( ContextTag([context.COMBAT_INFO]) ) ,
            context = ContextTag([context.ATTACK]) )
            
ATTACK_MERCY = Reply( "[ATTACK:MERCY]" ,
            destination = Cue( ContextTag([context.MERCY]) ) ,
            context = ContextTag([context.ATTACK]) )

ATTACK_WITHDRAW = Reply( "[ATTACK:WITHDRAW]" ,
            destination = Cue( ContextTag([context.WITHDRAW]) ) ,
            context = ContextTag([context.ATTACK]) )

CHAT_CHAT = Reply( "[CHAT:CHAT]" ,
            destination = Cue( ContextTag([context.CHAT]) ) ,
            context = ContextTag([context.CHAT]) )
Beispiel #5
0
from pbge.dialogue import Reply,Cue,ContextTag
import context

ATTACK_CHALLENGE = Reply( "[ATTACK:CHALLENGE]" ,
            destination = Cue( ContextTag([context.CHALLENGE]) ) ,
            context = ContextTag([context.ATTACK]) )

ATTACK_COMBATINFO = Reply( "[ATTACK:COMBAT_INFO]" ,
            destination = Cue( ContextTag([context.COMBAT_INFO]) ) ,
            context = ContextTag([context.ATTACK]) )
            
ATTACK_MERCY = Reply( "[ATTACK:MERCY]" ,
            destination = Cue( ContextTag([context.MERCY]) ) ,
            context = ContextTag([context.ATTACK]) )


HELLO_ASKFORITEM = Reply( "[HELLO:ASK_FOR_ITEM]" ,
            destination = Cue( ContextTag([context.ASK_FOR_ITEM]) ) ,
            context = ContextTag([context.HELLO]) )


HELLO_INFO = Reply( "[HELLO:INFO]" ,
            context = ContextTag([context.HELLO]),
            destination = Cue( ContextTag([context.INFO]) ) )

HELLO_INFOPERSONAL = Reply( "[HELLO:INFO_PERSONAL]" ,
            context = ContextTag([context.HELLO]),
            destination = Cue( ContextTag([context.INFO,context.PERSONAL]) ) )

GOODBYEMISSION_JOIN = Reply( "[GOODBYE_MISSION:JOIN]" ,
            context = ContextTag([context.GOODBYE,context.MISSION]),