Пример #1
0
def setupCamarillaPart2():
    dude1 = Find("Gangrel_Pusher")
    dude2 = Find("Brujah_Pusher")
    dude3 = Find("Toreador_Pusher")
    dude4 = Find("Malkavian_Pusher")
    if (__main__.IsClan(__main__.FindPlayer(), "Gangrel")):
        dude4.SetName("Regent2")
        dude4.ScriptUnhide()
        dude2.SetName("pusher1")
        dude2.ScriptUnhide()
        dude3.SetName("pusher2")
        dude3.ScriptUnhide()
    elif (__main__.IsClan(__main__.FindPlayer(), "Brujah")):
        dude1.SetName("Regent2")
        dude1.ScriptUnhide()
        dude3.SetName("pusher1")
        dude3.ScriptUnhide()
        dude4.SetName("pusher2")
        dude4.ScriptUnhide()
    elif (__main__.IsClan(__main__.FindPlayer(), "Toreador")):
        dude2.SetName("Regent2")
        dude2.ScriptUnhide()
        dude1.SetName("pusher1")
        dude1.ScriptUnhide()
        dude4.SetName("pusher2")
        dude4.ScriptUnhide()
    else:
        dude3.SetName("Regent2")
        dude3.ScriptUnhide()
        dude1.SetName("pusher1")
        dude1.ScriptUnhide()
        dude2.SetName("pusher2")
        dude2.ScriptUnhide()
def mailboxExitCheck():
    G = __main__.G
    Find = __main__.FindEntityByName
    container = Find("mailbox_haven")
    if(container):
        if(G.Heather_Lure and G.Mcfly_Present and not (G.Mcfly_Leave or G.Mcfly_Feed or G.Mcfly_Dominated or G.Mcfly_Dementated)):
            G.Mcfly_Leave = 1
            pc = __main__.FindPlayer()
            pc.ChangeMasqueradeLevel(1)
            mcfly = Find("Mcfly")
            if(mcfly):
                mcfly.Kill()
        if ( container.HasItem("item_g_werewolf_bloodpack") ):
            container.AddEntityToContainer("werewolf_reward")
            container.RemoveItem("item_g_werewolf_bloodpack")
            G.Werewolf_Quest = 4
            pc = __main__.FindPlayer()
            pc.SetQuest("Werewolf blood", 3)
            pc.ChangeMasqueradeLevel(-1)
        if(container.HasItem("item_g_garys_film") and G.Story_State >= 45):
            container.RemoveItem("item_g_garys_film")
            G.Gary_Voerman = 1
        if(container.HasItem("item_g_garys_cd") and G.Gary_Voerman == 1):
            container.RemoveItem("item_g_garys_cd")
            G.Gary_Damsel = 1
        if(container.HasItem("item_g_garys_tape") and G.Gary_Damsel == 1 and G.Velvet_Poster == 1):
            container.RemoveItem("item_g_garys_tape")
            G.Gary_Photochop = 1    
        if(container.HasItem("item_g_garys_photo") and G.Gary_Damsel == 1):
            container.RemoveItem("item_g_garys_photo")
            G.Velvet_Poster = 1
def setHunterFive():
    if (G.Zyg_Fish == 1):
        __main__.FindPlayer().SetQuest("Yukie", 5)
    else:
        G.Zyg_Human = 1
        __main__.FindPlayer().SetQuest("Yukie", 8)
    relay = Find("CleanScripted")
    relay.Trigger()
def OnMingXiaoDead():
    G.Ming_Dead = 1
    if G.Story_State == 110:
        __main__.FindPlayer().SetQuest("Ming", 5)
        __main__.FindPlayer().SetQuest("Prince", 1)
    else:
        __main__.FindPlayer().SetQuest("Ming", 6)
        __main__.FindPlayer().SetQuest("Prince", 2)
def placeCam():
    pc = __main__.FindPlayer()
    if (pc.HasItem("item_g_wireless_camera_1")):
        pc.RemoveItem("item_g_wireless_camera_1")
    if G.Tawni_Spotted == 0:
        G.Imalia_Cam = G.Imalia_Cam + 1
        if G.Imalia_Cam == 3:
            __main__.FindPlayer().SetQuest("Imalia", 2)
def BeckettDialogEnd():
    if G.Museum_Kill == 0:
        __main__.FindPlayer().AwardExperience('Museum04')
    if G.Patch_Plus == 1:
        G.Museum_Open = 1
    if __main__.IsClan(__main__.FindPlayer(), "Nosferatu"):
        __main__.ChangeMap(2.5, "sewer_map_landmark", "trig_museum_exit_sewer")
    else:
        __main__.ChangeMap(2.5, "taxi_landmark", "trig_museum_exit")
def chastityKilled():
    G.Chastity_Dead = 1
    if (G.Hunter_Dead == 1 and G.Sin_Innocent == 1):
        __main__.FindPlayer().SetQuest("Strip", 2)
    elif (G.Hunter_Dead == 1):
        __main__.FindPlayer().SetQuest("Strip", 2)
        __main__.FindPlayer().AwardExperience("Strip03")
    world = Find("world")
    world.SetSafeArea(1)
def SetJohnnyQuest():
    if __main__.G.Johnny_Talked == 1 or __main__.G.Glaze_Kill == 1:
        SetGlazeGuysToHate()
        KillInnocent()
        pc = __main__.FindPlayer()
        if pc.GetQuestState("Johnny") > 0:
            pc.SetQuest("Johnny", 3)
    else:
        pc = __main__.FindPlayer()
        if pc.GetQuestState("Johnny") > 0:
            pc.SetQuest("Johnny", 3)
            pc.AwardExperience("Johnny02")
def OnLockerEnd():
    locker = Find("locker")
    if locker.HasItem("item_g_badlucktalisman"):
        __main__.FindPlayer().SetQuest("Ox", 2)
        G.Ox_Planted = 1
        if G.Locker_First == 0:
            G.Locker_First = 1
            logic = Find("logic_locker")
            logic.Trigger()
    elif G.Locker_First == 1:
        __main__.FindPlayer().SetQuest("Ox", 7)
        G.Ox_Planted = 0
def malkNosCatchAll():
    if G.Patch_Plus == 2:
        firstRunner = Find("studiodoor1-trigger_event")
        secondRunner = Find("door_bash-trigger_failsafe")
        thirdRunner = Find("inigo_trigger")
        if (__main__.IsClan(__main__.FindPlayer(), "Nosferatu")
                or __main__.IsClan(__main__.FindPlayer(), "Malkavian")):
            if firstRunner: firstRunner.ScriptHide()
            print "first runner hidden"
            if secondRunner: secondRunner.ScriptHide()
            print "second runner hidden"
            if thirdRunner: thirdRunner.ScriptHide()
            print "third runner hidden"
Пример #11
0
def warehouseBonusPoints():
    bum = Find("bum_male")
    if bum: bum.Kill()
    if (G.Warehouse_Kills == 0 and G.Patch_Plus == 0):
        #changes made by dan_upright 02/12/04
        pc = __main__.FindPlayer()
        if pc:
            pc.AwardExperience("Explosive04")
        #changes end
    if (G.Warehouse_Spotted == 0 and G.Patch_Plus == 1):
        pc = __main__.FindPlayer()
        if pc:
            pc.AwardExperience("Explosive06")
Пример #12
0
def UVFloat():
    world = Find("world")
    world.SetSafeArea(0)
    Mandarin = Find("Mandarin")
    if(__main__.IsClan(__main__.FindPlayer(), "Nosferatu")):
        if(__main__.FindPlayer().IsMale()):
            Mandarin.PlayDialogFile("Character/dlg/Chinatown/mandarin/line181_col_e.mp3")
        else:
            Mandarin.PlayDialogFile("Character/dlg/Chinatown/mandarin/line181_col_f.mp3")
    else:
        if(__main__.FindPlayer().IsMale()):
            Mandarin.PlayDialogFile("Character/dlg/Chinatown/mandarin/line171_col_e.mp3")
        else:
            Mandarin.PlayDialogFile("Character/dlg/Chinatown/mandarin/line171_col_f.mp3")
Пример #13
0
def chooseCamarilla():
    if (__main__.IsClan(__main__.FindPlayer(), "Toreador")):
        change = Find("Regent_Guard_1")
        change.SetModel(
            "models/character/pc/male/nosferatu/armor0/Nosferatu.mdl")
    elif (__main__.IsClan(__main__.FindPlayer(), "Tremere")):
        change = Find("Regent_Guard_2")
        change.SetModel(
            "models/character/pc/male/nosferatu/armor0/Nosferatu.mdl")
    elif (__main__.IsClan(__main__.FindPlayer(), "Gangrel")):
        change = Find("Regent_Guard_3")
        change.SetModel(
            "models/character/pc/male/nosferatu/armor0/Nosferatu.mdl")
    if (G.Patch_Plus == 0):
        Find("Regent_Guard_Spare_Model").Kill()
Пример #14
0
def WeDoAThingOfSomekind():
    if (G.Ash_Leave == 1 and G.Ash_Free == 0 and G.Patch_Plus == 1):
        __main__.FindPlayer().SetQuest("Ash", 3)
    print "this is radio rentals, open the pod bay doors hal"
    pc = __main__.FindPlayer()
    if (pc.clan == 5):
        taxi_landmark = Find("taxi_landmark")
        taxi_landmark.SetName("sewer_map_landmark")
        __main__.ChangeMap(2.5, "sewer_map_landmark", "escape_transition_nos")
        print "sailing to the sewers"
        return 0
    else:
        __main__.ChangeMap(2.5, "taxi_landmark", "escape_transition")
        print "sailing to the taxi"
        return 1
Пример #15
0
def checkBotch():
    print("*********** Is PC chickening out on Romero ***********")
    pc = __main__.FindPlayer()
    state = pc.GetQuestState("Romero")
    if (state == 1):
        botch = Find("Relay_Chicken_Botch")
        botch.Trigger()
def cardPrinterEnable():
    if (G.Hannah_Jezebel == 1 and G.Patch_Plus == 0):
        printer = Find("card_printer")
        printer.ScriptUnhide()
    if (G.Patch_Plus == 1):
        if __main__.IsClan(__main__.FindPlayer(), "Nosferatu"):
            if guard: guard.SetRelationship("player D_HT 5")
Пример #17
0
def changeVent():
    if (__main__.IsClan(__main__.FindPlayer(), "Nosferatu")):
        nosPort = Find("nos_teleport")
        nosPort.Trigger()
    else:
        othersPort = Find("others_teleport")
        othersPort.Trigger()
def jezebelDeath():
    G.Jezebel_Dead = 1
    pc = __main__.FindPlayer()

    if pc.GetQuestState("Regent") > 0 and pc.GetQuestState("Regent") < 4:
        pc.SetQuest("Regent", 3)

    # first person redeems masquerade, second person drops flyer
    if G.Kanker_Dead:
        flyer = Find("flyer")
        sparklies = Find("flyer_sparklies")
        if flyer: flyer.ScriptUnhide()
        if sparklies: sparklies.ScriptUnhide()
    else:
        pc.ChangeMasqueradeLevel(-1)

    allPlagueState = pc.GetQuestState("AllPlague")
    if pc.GetQuestState("Plague") > 0 and pc.GetQuestState(
            "Plague") != 10 and pc.GetQuestState("Plague") != 9:
        if G.Kanker_Dead:
            pc.SetQuest("Plague", 11)
        else:
            pc.SetQuest("Plague", 13)
    elif allPlagueState != 0 and allPlagueState != 5:
        pc.SetQuest("AllPlague", 13)
def tpl3_check_pedestals():
    print "temple3: checking pedestal states..."
    if (G.tpl3_elephant_final == 1 and G.tpl3_dragon_final == 1 and G.tpl3_cat_final == 1 and G.tpl3_crane_final == 1):
        print "temple3: pedestals all set!"
        tele_emitter = Find( "teleport_emitter" )
        tele_emitter.TurnOn()
        tele_trigger = Find( "teleport_trigger" )
        tele_trigger.ScriptUnhide()
        __main__.FindPlayer().SetQuest("Ming", 4)
        torches = Finds( "torch*" )
        for torch in torches:
            if torch:
                torch.TurnOff()

#      torchtrigger = Find( "pedestal_cat_final" )
#      if torchtrigger:
#          torchtrigger.OnDeactivate()

        button = Find("cat_top_brush")
        button.ScriptUnhide()
        button = Find("crane_top_brush")
        button.ScriptUnhide()
        button = Find("dragon_top_brush")
        button.ScriptUnhide()
        button = Find("elephant_top_brush")
        button.ScriptUnhide()

    else:
        print "temple3: not all pedestals set yet..."
def tpl1_eastquarters_check_stealth():
    pc = __main__.FindPlayer()

    if (pc.stealth < 8):
        print "temple1: player stealth <8, east guard wakes!"

        tpl1_east_aggro()
def PlayNinesChoreo1():
    if __main__.IsClan(__main__.FindPlayer(), "Nosferatu"):
        logic = Find("logic_start_nos_stuff")
        logic.Trigger()
    else:
        logic = Find("logic_start_nonnos_stuff")
        logic.Trigger()
def PlayNinesintroStomp():
    if __main__.FindPlayer().IsMale():
        sound = Find("stomp_m")
        if sound: sound.PlaySound()
    else:
        sound = Find("stomp_f")
        if sound: sound.PlaySound()
def onYukieDeath():
    pc = __main__.FindPlayer()
    if (pc.humanity >= 4 and G.Patch_Plus == 1):
        pc.HumanityAdd(-1)
    state = pc.GetQuestState("Yukie")
    if state > 0 and state < 5:
        pc.SetQuest("Yukie", 6)
def kankerDeath():
    G.Kanker_Dead = 1
    pc = __main__.FindPlayer()

    if pc.GetQuestState("Regent") > 0 and pc.GetQuestState("Regent") < 4:
        pc.SetQuest("Regent", 3)

    # first person redeems masquerade, second person drops flyer
    if (G.Jezebel_Dead):
        flyer = Find("flyer")
        sparklies = Find("flyer_sparklies")
        if flyer: flyer.ScriptUnhide()
        if sparklies: sparklies.ScriptUnhide()
    else:
        pc.ChangeMasqueradeLevel(-1)
        # allow player to leave
        brush = Find("switch_brush")
        if brush: brush.Kill()
        switch = Find("switch")
        switch.Unlock()

    allPlagueState = pc.GetQuestState("AllPlague")
    if pc.GetQuestState("Plague") > 0 and pc.GetQuestState(
            "Plague") != 10 and pc.GetQuestState("Plague") != 9:
        if G.Jezebel_Dead:
            pc.SetQuest("Plague", 11)
        else:
            pc.SetQuest("Plague", 12)
    elif allPlagueState != 0 and allPlagueState != 5:
        pc.SetQuest("AllPlague", 13)
Пример #25
0
def failLoser():
    pc = __main__.FindPlayer()
    state = pc.GetQuestState("Loser")
    if (state > 0 and state < 3):
        pc.SetQuest("Loser", 4)
    if (pc.humanity >= 4 and G.Patch_Plus == 1):
        pc.HumanityAdd(-1)
def malkSewer():
    npc = Find("CabbieSewer")
    if __main__.IsClan(__main__.FindPlayer(),
                       "Malkavian") and G.Patch_Plus == 1:
        if npc: npc.ScriptUnhide()
    else:
        if npc: npc.ScriptHide()
Пример #27
0
def paintingsInGallery():
    if (G.Jeanette_Quest == 1 or G.Jeanette_Refuse > 0):
        i = 0
        while (i < 4):
            painting = Find("painting_%i" % i)
            painting.ScriptUnhide()
            i = i + 1
        signs = __main__.FindEntitiesByName("signs")
        for s in signs:
            s.ScriptUnhide()
        if G.Patch_Plus == 1:
            monies = Find("cash_box")
            monies.ScriptUnhide()
            box_spark = Find("box_sparklies")
            box_spark.ScriptUnhide()
        else:
            monies = Find("charity")
            monies.ScriptUnhide()
            box_spark = Find("box_sparklies")
            box_spark.ScriptUnhide()
            switch = Find("charity_monies")
            switch.ScriptUnhide()
        if (not __main__.IsDead("Chunk") and G.Jeanette_Quest == 1
                and G.Patch_Plus == 1):
            __main__.FindPlayer().AwardExperience("Slash02")
    if (G.Jeanette_Refuse > 0 or G.Jeanette_Quest == 2):
        relay = Find("gallery_done_relay")
        relay.Trigger()
Пример #28
0
def charityMoneyStolen():
    pc = __main__.FindPlayer()
    pc.MoneyAdd(250)
    box_spark = Find("box_sparklies")
    box_spark.ScriptHide()
    if (pc.humanity >= 6 and (G.Charity_Know == 0 or G.Patch_Plus == 0)):
        pc.HumanityAdd(-1)
Пример #29
0
def patchMitnick():
    pc = __main__.FindPlayer()
    state = pc.GetQuestState("Mitnick")
    if (state < 1):
        mitnick = Find("Mitnick")
        if (mitnick):
            mitnick.SetDisposition("OperateComputer", 1)
Пример #30
0
def SetGingerSwanTape():
    if __main__.FindPlayer().GetQuestState("Courier") == 4:
        door = Find("swan_door_container")
        door.ScriptUnhide()
        node = Find("swan_inspect")
        node.ScriptUnhide()
        G.Ginger_Swan = 2