3040 lines
87 KiB
Python
3040 lines
87 KiB
Python
"""
|
|
Demon Ruins / Lost Izalith
|
|
|
|
linked:
|
|
|
|
|
|
strings:
|
|
|
|
"""
|
|
from soulstruct.darksouls1r.events import *
|
|
from soulstruct.darksouls1r.events.instructions import *
|
|
from soulstruct.darksouls1r.game_types import *
|
|
|
|
|
|
@ContinueOnRest(0)
|
|
def Constructor():
|
|
"""Event 0"""
|
|
if FlagEnabled(10):
|
|
RegisterBonfire(bonfire_flag=11410920, obj=1411950)
|
|
|
|
RegisterBonfire(bonfire_flag=11410992, obj=1411960)
|
|
RegisterBonfire(bonfire_flag=11410984, obj=1411961)
|
|
if FlagEnabled(11410900):
|
|
RegisterBonfire(bonfire_flag=11410976, obj=1411962)
|
|
|
|
RegisterBonfire(bonfire_flag=11410968, obj=1411963)
|
|
RegisterBonfire(bonfire_flag=11410960, obj=1411964)
|
|
if Host():
|
|
DisableObject(1411994)
|
|
DeleteVFX(1411995, erase_root_only=False)
|
|
DisableObject(1411996)
|
|
DeleteVFX(1411997, erase_root_only=False)
|
|
DisableObject(1411998)
|
|
DeleteVFX(1411999, erase_root_only=False)
|
|
DisableObject(1411988)
|
|
DeleteVFX(1411989, erase_root_only=False)
|
|
DisableObject(1411986)
|
|
DeleteVFX(1411987, erase_root_only=False)
|
|
DisableObject(1411984)
|
|
DeleteVFX(1411985, erase_root_only=False)
|
|
DisableObject(1411982)
|
|
DeleteVFX(1411983, erase_root_only=False)
|
|
|
|
if FlagEnabled(11410291):
|
|
DisableObject(1411121)
|
|
DeleteVFX(1413400)
|
|
DeleteVFX(1413410)
|
|
|
|
if FlagEnabled(11410292):
|
|
DisableObject(1411122)
|
|
DeleteVFX(1413401)
|
|
DeleteVFX(1413411)
|
|
|
|
Event_11410095()
|
|
Event_11415090()
|
|
Event_11415091()
|
|
Event_11415092()
|
|
Event_11410800()
|
|
Event_11410400()
|
|
Event_11410340()
|
|
Event_11410341()
|
|
Event_11410350()
|
|
Event_11410360()
|
|
Event_11415399()
|
|
Event_11410260()
|
|
Event_11410200()
|
|
Event_11410201(0, obj=1411210, sound_id=462000000)
|
|
Event_11410201(1, obj=1411211, sound_id=462100000)
|
|
Event_11410201(2, obj=1411212, sound_id=462200000)
|
|
Event_11410201(3, obj=1411213, sound_id=462300000)
|
|
Event_11410201(4, obj=1411214, sound_id=462400000)
|
|
Event_11410201(5, obj=1411215, sound_id=462500000)
|
|
Event_11410201(6, obj=1411216, sound_id=462600000)
|
|
Event_11410201(7, obj=1411217, sound_id=462700000)
|
|
Event_11410201(8, obj=1411218, sound_id=462800000)
|
|
Event_11410201(9, obj=1411219, sound_id=462900000)
|
|
Event_11410201(10, obj=1411220, sound_id=463000000)
|
|
Event_11410201(11, obj=1411221, sound_id=463100000)
|
|
Event_11410201(12, obj=1411222, sound_id=463200000)
|
|
Event_11410250()
|
|
DisableSoundEvent(sound_id=1413801)
|
|
if FlagEnabled(11410900):
|
|
Event_11415372()
|
|
DisableObject(1411790)
|
|
DeleteVFX(1411791, erase_root_only=False)
|
|
else:
|
|
Event_11415370()
|
|
Event_11415371()
|
|
Event_11415373()
|
|
Event_11415372()
|
|
Event_11415374()
|
|
Event_11415376()
|
|
Event_11415377()
|
|
Event_11415378()
|
|
Event_11415379()
|
|
Event_11410900()
|
|
|
|
Event_11415310(0, flag=11415376)
|
|
Event_11415310(1, flag=11415310)
|
|
Event_11415310(2, flag=11415311)
|
|
Event_11415310(3, flag=11415312)
|
|
Event_11415310(4, flag=11415313)
|
|
DisableSoundEvent(sound_id=1413803)
|
|
if FlagEnabled(11410410):
|
|
Event_11415342()
|
|
DisableObject(1411410)
|
|
DeleteVFX(1411411, erase_root_only=False)
|
|
DisableObject(1411412)
|
|
DeleteVFX(1411413, erase_root_only=False)
|
|
else:
|
|
Event_11415340()
|
|
Event_11415341()
|
|
Event_11415343()
|
|
Event_11415342()
|
|
Event_11415344()
|
|
Event_11410410()
|
|
Event_11415345()
|
|
|
|
DisableSoundEvent(sound_id=1413802)
|
|
if FlagEnabled(11410901):
|
|
Event_11415382()
|
|
DisableObject(1411890)
|
|
DeleteVFX(1411891, erase_root_only=False)
|
|
DisableObject(1411892)
|
|
DeleteVFX(1411893, erase_root_only=False)
|
|
else:
|
|
Event_11415380()
|
|
Event_11415381()
|
|
Event_11415383()
|
|
Event_11415382()
|
|
Event_11415384()
|
|
Event_11410901()
|
|
Event_11415386()
|
|
|
|
DisableSoundEvent(sound_id=1413800)
|
|
if FlagEnabled(10):
|
|
Event_11415392()
|
|
DisableObject(1411990)
|
|
DeleteVFX(1411991, erase_root_only=False)
|
|
else:
|
|
Event_11415390()
|
|
Event_11415391()
|
|
Event_11415393()
|
|
Event_11415392()
|
|
Event_11410001()
|
|
Event_11415394()
|
|
Event_11415395()
|
|
Event_11415396()
|
|
Event_11415397()
|
|
Event_11415398()
|
|
Event_11415300()
|
|
|
|
Event_800(0, character=1410100)
|
|
Event_11410100(4, character=1410307)
|
|
Event_11410100(6, character=6620)
|
|
Event_11410100(7, character=1410110)
|
|
Event_11410100(8, character=1410150)
|
|
Event_11410100(9, character=1410350)
|
|
Event_11410100(10, character=1410351)
|
|
Event_11410100(11, character=1410352)
|
|
Event_11410100(12, character=1410353)
|
|
Event_11410100(13, character=1410354)
|
|
Event_11410100(14, character=1410355)
|
|
Event_11410100(15, character=1410356)
|
|
Event_11410100(16, character=1410357)
|
|
Event_11410100(17, character=1410358)
|
|
Event_11410100(18, character=1410359)
|
|
Event_11410100(19, character=1410360)
|
|
Event_11410100(20, character=1410361)
|
|
Event_11410100(21, character=1410362)
|
|
Event_11410100(22, character=1410363)
|
|
Event_11410100(23, character=1410364)
|
|
Event_11410100(24, character=1410365)
|
|
Event_11410100(25, character=1410366)
|
|
Event_11410100(26, character=1410367)
|
|
Event_11410100(27, character=1410368)
|
|
Event_11410100(28, character=1410369)
|
|
Event_11410100(29, character=1410370)
|
|
Event_11410100(30, character=1410371)
|
|
Event_11410100(31, character=1410372)
|
|
Event_11410100(32, character=1410373)
|
|
Event_11410100(33, character=1410374)
|
|
Event_11410100(34, character=1410375)
|
|
Event_11410100(35, character=1410376)
|
|
Event_11410100(36, character=1410377)
|
|
Event_11410100(37, character=1410378)
|
|
Event_11410100(38, character=1410450)
|
|
Event_11410100(39, character=1410451)
|
|
Event_11410100(40, character=1410452)
|
|
Event_11410100(41, character=1410453)
|
|
Event_11410100(42, character=1410454)
|
|
Event_11410100(43, character=1410455)
|
|
Event_11410100(44, character=1410456)
|
|
Event_11415210(0, first_flag=11415250, last_flag=11415263, value=11)
|
|
Event_11415250(
|
|
0,
|
|
character=1410200,
|
|
character_1=1410220,
|
|
character_2=1410221,
|
|
character_3=1410222,
|
|
character_4=1410223,
|
|
character_5=1410224,
|
|
)
|
|
Event_11415250(
|
|
1,
|
|
character=1410201,
|
|
character_1=1410225,
|
|
character_2=1410226,
|
|
character_3=1410227,
|
|
character_4=1410228,
|
|
character_5=1410229,
|
|
)
|
|
Event_11415250(
|
|
2,
|
|
character=1410202,
|
|
character_1=1410230,
|
|
character_2=1410231,
|
|
character_3=1410232,
|
|
character_4=1410233,
|
|
character_5=1410234,
|
|
)
|
|
Event_11415250(
|
|
3,
|
|
character=1410203,
|
|
character_1=1410235,
|
|
character_2=1410236,
|
|
character_3=1410237,
|
|
character_4=1410238,
|
|
character_5=1410239,
|
|
)
|
|
Event_11415250(
|
|
4,
|
|
character=1410204,
|
|
character_1=1410240,
|
|
character_2=1410241,
|
|
character_3=1410242,
|
|
character_4=1410243,
|
|
character_5=1410244,
|
|
)
|
|
Event_11415250(
|
|
5,
|
|
character=1410205,
|
|
character_1=1410245,
|
|
character_2=1410246,
|
|
character_3=1410247,
|
|
character_4=1410248,
|
|
character_5=1410249,
|
|
)
|
|
Event_11415250(
|
|
6,
|
|
character=1410206,
|
|
character_1=1410250,
|
|
character_2=1410251,
|
|
character_3=1410252,
|
|
character_4=1410253,
|
|
character_5=1410254,
|
|
)
|
|
Event_11415250(
|
|
7,
|
|
character=1410207,
|
|
character_1=1410255,
|
|
character_2=1410256,
|
|
character_3=1410257,
|
|
character_4=1410258,
|
|
character_5=1410259,
|
|
)
|
|
Event_11415250(
|
|
8,
|
|
character=1410208,
|
|
character_1=1410260,
|
|
character_2=1410261,
|
|
character_3=1410262,
|
|
character_4=1410263,
|
|
character_5=1410264,
|
|
)
|
|
Event_11415250(
|
|
9,
|
|
character=1410209,
|
|
character_1=1410265,
|
|
character_2=1410266,
|
|
character_3=1410267,
|
|
character_4=1410268,
|
|
character_5=1410269,
|
|
)
|
|
Event_11415250(
|
|
10,
|
|
character=1410210,
|
|
character_1=1410270,
|
|
character_2=1410271,
|
|
character_3=1410272,
|
|
character_4=1410273,
|
|
character_5=1410274,
|
|
)
|
|
Event_11415250(
|
|
11,
|
|
character=1410211,
|
|
character_1=1410275,
|
|
character_2=1410276,
|
|
character_3=1410277,
|
|
character_4=1410278,
|
|
character_5=1410279,
|
|
)
|
|
Event_11415250(
|
|
12,
|
|
character=1410212,
|
|
character_1=1410280,
|
|
character_2=1410281,
|
|
character_3=1410282,
|
|
character_4=1410283,
|
|
character_5=1410284,
|
|
)
|
|
Event_11415250(
|
|
13,
|
|
character=1410213,
|
|
character_1=1410285,
|
|
character_2=1410286,
|
|
character_3=1410287,
|
|
character_4=1410288,
|
|
character_5=1410289,
|
|
)
|
|
Event_11415100(0, entity=1410301, character=1410301, cancel_animation=9060, radius=15.0, seconds=0.0)
|
|
Event_11415100(1, entity=1410302, character=1410302, cancel_animation=9060, radius=10.0, seconds=0.0)
|
|
Event_11415100(2, entity=1410307, character=1410307, cancel_animation=9060, radius=15.0, seconds=0.0)
|
|
Event_11415120(
|
|
0,
|
|
character=PLAYER,
|
|
character_1=1410303,
|
|
cancel_animation=9060,
|
|
region=1412302,
|
|
seconds=0.30000001192092896,
|
|
)
|
|
Event_11415120(
|
|
1,
|
|
character=PLAYER,
|
|
character_1=1410304,
|
|
cancel_animation=9060,
|
|
region=1412302,
|
|
seconds=0.10000000149011612,
|
|
)
|
|
Event_11415120(2, character=PLAYER, character_1=1410305, cancel_animation=9060, region=1412302, seconds=0.0)
|
|
Event_11415120(
|
|
3,
|
|
character=PLAYER,
|
|
character_1=1410306,
|
|
cancel_animation=9060,
|
|
region=1412302,
|
|
seconds=0.20000000298023224,
|
|
)
|
|
Event_11410150(1, character=1410301, item_lot=33900000)
|
|
Event_11410150(2, character=1410302, item_lot=33900000)
|
|
Event_11410150(3, character=1410303, item_lot=33900000)
|
|
Event_11410150(4, character=1410304, item_lot=33900000)
|
|
Event_11410150(5, character=1410305, item_lot=33900000)
|
|
Event_11410150(6, character=1410306, item_lot=33900000)
|
|
Event_11410600(0, obj=1411650, obj_act_id=11410600)
|
|
Event_11410600(1, obj=1411651, obj_act_id=11410601)
|
|
Event_11410600(2, obj=1411652, obj_act_id=11410602)
|
|
Event_11410600(3, obj=1411653, obj_act_id=11410603)
|
|
Event_11415843(0, flag=10, line_intersects=1411990, anchor_entity=1412998, target_entity=1412997)
|
|
Event_11415846(0, flag=10, obj=1411990, vfx_id=1411991)
|
|
Event_11415843(1, flag=11410900, line_intersects=1411790, anchor_entity=1412698, target_entity=1412697)
|
|
Event_11415846(1, flag=11410900, obj=1411790, vfx_id=1411791)
|
|
Event_11415843(2, flag=11410901, line_intersects=1411890, anchor_entity=1412898, target_entity=1412897)
|
|
Event_11415846(2, flag=11410901, obj=1411890, vfx_id=1411891)
|
|
Event_11415843(3, flag=11410410, line_intersects=1411410, anchor_entity=1412411, target_entity=1412412)
|
|
Event_11415846(3, flag=11410410, obj=1411410, vfx_id=1411411)
|
|
|
|
|
|
@ContinueOnRest(50)
|
|
def Preconstructor():
|
|
"""Event 50"""
|
|
Event_11410100(0, character=1410410)
|
|
Event_11410100(1, character=1410411)
|
|
Event_11410100(2, character=1410412)
|
|
Event_11410100(3, character=1410413)
|
|
HumanityRegistration(6620, event_flag=8250)
|
|
HumanityRegistration(6542, event_flag=8310)
|
|
HumanityRegistration(6560, event_flag=8956)
|
|
HumanityRegistration(6561, event_flag=8956)
|
|
Event_11415030()
|
|
Event_11415029()
|
|
Event_11415032()
|
|
Event_11415035()
|
|
Event_11415038()
|
|
Event_11410810(0, character=6560, flag=11415036, flag_1=11415037)
|
|
Event_11410810(1, character=6561, flag=11415039, flag_1=11415040)
|
|
Event_14015990(0, flag=11415031, summoned_character=6542)
|
|
HumanityRegistration(6002, event_flag=8310)
|
|
HumanityRegistration(6004, event_flag=8310)
|
|
if FlagDisabled(1009):
|
|
if FlagDisabled(1004):
|
|
if FlagDisabled(1003):
|
|
DisableCharacter(6002)
|
|
|
|
if FlagDisabled(11410580):
|
|
pass
|
|
else:
|
|
Move(6002, destination=1412500, destination_type=CoordEntityType.Region, set_draw_parent=1413000)
|
|
|
|
if FlagDisabled(1002):
|
|
DisableCharacter(6004)
|
|
|
|
SetTeamTypeAndExitStandbyAnimation(6004, team_type=TeamType.HostileAlly)
|
|
Event_11410510(0, character=6002, flag=1004)
|
|
Event_11410520(0, character=6002, first_flag=1000, last_flag=1029, flag=1005)
|
|
Event_11410530(0, character=6002, first_flag=1000, last_flag=1029, flag=1009)
|
|
Event_11410531(0, character=6002, first_flag=1000, last_flag=1029, flag=1002)
|
|
Event_11410532(0, character=6002, first_flag=1000, last_flag=1029, flag=1003)
|
|
Event_11410533(0, character=6006, first_flag=1000, last_flag=1029, flag=1012)
|
|
Event_11410534(0, character=6004, first_flag=1000, last_flag=1029, flag=1011)
|
|
HumanityRegistration(6286, event_flag=8446)
|
|
if FlagRangeAllDisabled((1503, 1507)):
|
|
DisableCharacter(6286)
|
|
|
|
if FlagDisabled(1504):
|
|
SkipLinesIfFlagEnabled(2, 1506) # NOTE: skip goes past end of event
|
|
SkipLinesIfFlagEnabled(1, 1507) # NOTE: skip goes past end of event
|
|
else:
|
|
AddSpecialEffect(6286, 90111)
|
|
Move(6286, destination=1412360, destination_type=CoordEntityType.Region, short_move=True)
|
|
|
|
if FlagEnabled(11410593):
|
|
SetStandbyAnimationSettings(6286, standby_animation=7855)
|
|
|
|
Event_11410501(0, character=6286, flag=1512)
|
|
Event_11410546(0, character=6286, first_flag=1490, last_flag=1514, flag=1513)
|
|
Event_11410540(0, character=6286, first_flag=1490, last_flag=1514, flag=1503)
|
|
Event_11410541(0, character=6286, first_flag=1490, last_flag=1514, flag=1504)
|
|
Event_11410542(0, character=6286, first_flag=1490, last_flag=1514, flag=1505)
|
|
Event_11410543(0, character=6286, first_flag=1490, last_flag=1514, flag=1506)
|
|
Event_11410544(0, character=6286, first_flag=1490, last_flag=1514, flag=1507)
|
|
Event_11410545(0, character=6286, first_flag=1490, last_flag=1514, flag=1513)
|
|
Event_11410549(0, character=6286)
|
|
Event_11410550(0, character=6286, first_flag=1490, last_flag=1514, flag=1514)
|
|
Event_11410547(0, character=6286)
|
|
Event_11410548(0, character=6286)
|
|
|
|
|
|
@ContinueOnRest(11410090)
|
|
def Event_11410090(_, obj: Object | int, vfx_id: VFXEvent | int, destination: int, destination_1: int):
|
|
"""Event 11410090"""
|
|
if ThisEventSlotFlagEnabled():
|
|
DisableObject(obj)
|
|
DeleteVFX(vfx_id, erase_root_only=False)
|
|
return
|
|
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=destination,
|
|
anchor_type=CoordEntityType.Region,
|
|
dummy_id=0,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
line_intersects=obj,
|
|
))
|
|
AND_2.Add(ActionButton(
|
|
prompt_text=10010407,
|
|
anchor_entity=destination_1,
|
|
anchor_type=CoordEntityType.Region,
|
|
dummy_id=0,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
line_intersects=obj,
|
|
))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if not LastResult(AND_2):
|
|
Move(PLAYER, destination=destination, destination_type=CoordEntityType.Region, short_move=True)
|
|
else:
|
|
Move(PLAYER, destination=destination_1, destination_type=CoordEntityType.Region, short_move=True)
|
|
|
|
ForceAnimation(PLAYER, 7410)
|
|
DisableObject(obj)
|
|
DeleteVFX(vfx_id)
|
|
|
|
|
|
@RestartOnRest(11415090)
|
|
def Event_11415090():
|
|
"""Event 11415090"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
DisableCharacter(1410900)
|
|
DisableCharacter(1410901)
|
|
DisableCharacter(1410902)
|
|
DisableCharacter(1410903)
|
|
DisableCharacter(1410904)
|
|
DisableCharacter(1410905)
|
|
DisableCharacter(1410906)
|
|
DisableCharacter(1410907)
|
|
|
|
MAIN.Await(FlagEnabled(11410050))
|
|
|
|
if FlagEnabled(735):
|
|
return
|
|
|
|
EnableFlag(5000)
|
|
EnableCharacter(1410900)
|
|
EnableCharacter(1410901)
|
|
EnableCharacter(1410902)
|
|
EnableCharacter(1410903)
|
|
EnableCharacter(1410904)
|
|
EnableCharacter(1410905)
|
|
EnableCharacter(1410906)
|
|
EnableCharacter(1410907)
|
|
|
|
|
|
@RestartOnRest(11415091)
|
|
def Event_11415091():
|
|
"""Event 11415091"""
|
|
OR_1.Add(FlagEnabled(11415095))
|
|
OR_1.Add(FlagEnabled(735))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if FlagEnabled(735):
|
|
DisableFlag(735)
|
|
|
|
DisableFlag(11410050)
|
|
DisableFlag(11415095)
|
|
EnableFlag(5001)
|
|
Kill(1410900)
|
|
Kill(1410901)
|
|
Kill(1410902)
|
|
Kill(1410903)
|
|
Kill(1410904)
|
|
Kill(1410905)
|
|
Kill(1410906)
|
|
Kill(1410907)
|
|
|
|
|
|
@RestartOnRest(11415092)
|
|
def Event_11415092():
|
|
"""Event 11415092"""
|
|
if Client():
|
|
return
|
|
|
|
AND_1.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_1.Add(InsideMap(game_map=LOST_IZALITH))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(FlagEnabled(11410050))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
WaitFrames(frames=1)
|
|
AND_2.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_2.Add(InsideMap(game_map=LOST_IZALITH))
|
|
OR_2.Add(AND_2)
|
|
OR_2.Add(FlagEnabled(11410050))
|
|
if not OR_2:
|
|
return RESTART
|
|
|
|
WaitFrames(frames=1)
|
|
AND_3.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_3.Add(InsideMap(game_map=LOST_IZALITH))
|
|
OR_3.Add(AND_3)
|
|
OR_3.Add(FlagEnabled(11410050))
|
|
if not OR_3:
|
|
return RESTART
|
|
|
|
WaitFrames(frames=1)
|
|
AND_4.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_4.Add(InsideMap(game_map=LOST_IZALITH))
|
|
OR_4.Add(AND_4)
|
|
OR_4.Add(FlagEnabled(11410050))
|
|
if not OR_4:
|
|
return RESTART
|
|
|
|
WaitFrames(frames=1)
|
|
AND_5.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_5.Add(InsideMap(game_map=LOST_IZALITH))
|
|
OR_5.Add(AND_5)
|
|
OR_5.Add(FlagEnabled(11410050))
|
|
if not OR_5:
|
|
return RESTART
|
|
|
|
WaitFrames(frames=1)
|
|
AND_6.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_6.Add(InsideMap(game_map=LOST_IZALITH))
|
|
OR_6.Add(AND_6)
|
|
OR_6.Add(FlagEnabled(11410050))
|
|
if not OR_6:
|
|
return RESTART
|
|
|
|
EnableFlag(11410050)
|
|
Wait(600.0)
|
|
AND_7.Add(BlackWorldTendencyComparison(ComparisonType.LessThanOrEqual, value=50))
|
|
AND_7.Add(InsideMap(game_map=LOST_IZALITH))
|
|
if not AND_7:
|
|
return RESTART
|
|
|
|
DisableFlag(11410050)
|
|
EnableFlag(11415095)
|
|
|
|
|
|
@ContinueOnRest(11410095)
|
|
def Event_11410095():
|
|
"""Event 11410095"""
|
|
if FlagEnabled(11800100):
|
|
EnableFlag(11410096)
|
|
DisableObject(1411710)
|
|
DeleteVFX(1411711, erase_root_only=False)
|
|
DisableFlag(402)
|
|
return
|
|
|
|
if FlagEnabled(11410096):
|
|
DisableObject(1411710)
|
|
DeleteVFX(1411711, erase_root_only=False)
|
|
return
|
|
|
|
if Client():
|
|
return
|
|
|
|
MAIN.Await(ActionButton(
|
|
prompt_text=10010410,
|
|
anchor_entity=1412660,
|
|
anchor_type=CoordEntityType.Region,
|
|
dummy_id=0,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
line_intersects=1411710,
|
|
))
|
|
|
|
DisplayStatus(10010630)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415390)
|
|
def Event_11415390():
|
|
"""Event 11415390"""
|
|
AND_1.Add(FlagDisabled(10))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1412998,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
boss_version=True,
|
|
line_intersects=1411990,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1412997)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415391)
|
|
def Event_11415391():
|
|
"""Event 11415391"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagDisabled(10))
|
|
AND_1.Add(FlagEnabled(11415393))
|
|
AND_1.Add(CharacterIsWhitePhantom(PLAYER))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1412998,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
line_intersects=1411990,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1412997)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415393)
|
|
def Event_11415393():
|
|
"""Event 11415393"""
|
|
if ThisEventFlagDisabled():
|
|
AND_1.Add(FlagDisabled(10))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412996))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
if Host():
|
|
NotifyBossBattleStart()
|
|
|
|
ActivateMultiplayerBuffs(1410800)
|
|
|
|
|
|
@RestartOnRest(11415392)
|
|
def Event_11415392():
|
|
"""Event 11415392"""
|
|
if FlagEnabled(10):
|
|
DisableCharacter(1410800)
|
|
DisableCharacter(1410801)
|
|
DisableCharacter(1410802)
|
|
Kill(1410800)
|
|
Kill(1410801)
|
|
Kill(1410802)
|
|
return
|
|
|
|
if FlagRangeAllDisabled((11410291, 11410292)):
|
|
DisableCharacter(1410800)
|
|
|
|
if FlagRangeAnyEnabled((11410291, 11410292)):
|
|
ResetStandbyAnimationSettings(1410801)
|
|
|
|
EnableInvincibility(1410800)
|
|
EnableInvincibility(1410801)
|
|
DisableHealthBar(1410800)
|
|
DisableHealthBar(1410801)
|
|
DisableAI(1410801)
|
|
SetLockedCameraSlot(game_map=LOST_IZALITH, camera_slot=1)
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412996))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
if FlagRangeAllDisabled((11410291, 11410292)):
|
|
ResetStandbyAnimationSettings(1410801)
|
|
ForceAnimation(1410801, 9060)
|
|
|
|
EnableAI(1410801)
|
|
EnableBossHealthBar(1410802, name=5400)
|
|
|
|
|
|
@ContinueOnRest(11410001)
|
|
def Event_11410001():
|
|
"""Event 11410001"""
|
|
DisableObject(1411950)
|
|
|
|
MAIN.Await(CharacterDead(1410802))
|
|
|
|
EnableFlag(10)
|
|
KillBoss(game_area_param_id=1410800)
|
|
if Host():
|
|
AwardAchievement(achievement_id=36)
|
|
|
|
SetLockedCameraSlot(game_map=LOST_IZALITH, camera_slot=0)
|
|
DisableObject(1411990)
|
|
DeleteVFX(1411991)
|
|
DisableNetworkSync()
|
|
CreateTemporaryVFX(vfx_id=90014, anchor_entity=1411950, anchor_type=CoordEntityType.Object)
|
|
Wait(2.0)
|
|
EnableObject(1411950)
|
|
RegisterBonfire(bonfire_flag=11410920, obj=1411950)
|
|
|
|
|
|
@ContinueOnRest(11415394)
|
|
def Event_11415394():
|
|
"""Event 11415394"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagDisabled(10))
|
|
AND_1.Add(FlagEnabled(11415392))
|
|
if Client():
|
|
AND_1.Add(FlagEnabled(11415391))
|
|
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412990))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableSoundEvent(sound_id=1413800)
|
|
|
|
|
|
@ContinueOnRest(11415395)
|
|
def Event_11415395():
|
|
"""Event 11415395"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagEnabled(10))
|
|
AND_1.Add(FlagEnabled(11415394))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableSoundEvent(sound_id=1413800)
|
|
|
|
|
|
@RestartOnRest(11415396)
|
|
def Event_11415396():
|
|
"""Event 11415396"""
|
|
if FlagRangeAllDisabled((11410291, 11410292)):
|
|
OR_1.Add(FlagEnabled(11410291))
|
|
OR_1.Add(FlagEnabled(11410292))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if FlagDisabled(11410292):
|
|
EnableFlag(11410005)
|
|
if Singleplayer():
|
|
PlayCutscene(140116, cutscene_flags=0, player_id=10000)
|
|
else:
|
|
PlayCutscene(140116, cutscene_flags=CutsceneFlags.Unskippable, player_id=10000)
|
|
else:
|
|
if Singleplayer():
|
|
PlayCutscene(140115, cutscene_flags=0, player_id=10000)
|
|
else:
|
|
PlayCutscene(140115, cutscene_flags=CutsceneFlags.Unskippable, player_id=10000)
|
|
|
|
WaitFrames(frames=1)
|
|
|
|
EnableCharacter(1410800)
|
|
AND_1.Add(FlagEnabled(11410291))
|
|
AND_1.Add(FlagEnabled(11410292))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
AddSpecialEffect(1410800, 5130)
|
|
if FlagDisabled(11410000):
|
|
if FlagEnabled(11410005):
|
|
if Singleplayer():
|
|
PlayCutscene(140117, cutscene_flags=0, player_id=10000)
|
|
else:
|
|
PlayCutscene(140117, cutscene_flags=CutsceneFlags.Unskippable, player_id=10000)
|
|
else:
|
|
if Singleplayer():
|
|
PlayCutscene(140118, cutscene_flags=0, player_id=10000)
|
|
else:
|
|
PlayCutscene(140118, cutscene_flags=CutsceneFlags.Unskippable, player_id=10000)
|
|
|
|
SetStandbyAnimationSettings(1410800, standby_animation=10000)
|
|
WaitFrames(frames=1)
|
|
|
|
EnableFlag(11410000)
|
|
ResetStandbyAnimationSettings(1410800)
|
|
WaitFrames(frames=1)
|
|
ResetAnimation(1410800, disable_interpolation=True)
|
|
|
|
|
|
@RestartOnRest(11415397)
|
|
def Event_11415397():
|
|
"""Event 11415397"""
|
|
EnableInvincibility(1410802)
|
|
AND_1.Add(FlagEnabled(11410291))
|
|
AND_1.Add(FlagEnabled(11410292))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableInvincibility(1410802)
|
|
|
|
MAIN.Await(HealthRatio(1410802) <= 0.0)
|
|
|
|
DisableInvincibility(1410800)
|
|
DisableInvincibility(1410801)
|
|
Kill(1410800, award_souls=True)
|
|
Kill(1410801)
|
|
|
|
|
|
@RestartOnRest(11415398)
|
|
def Event_11415398():
|
|
"""Event 11415398"""
|
|
OR_1.Add(FlagEnabled(11410291))
|
|
OR_1.Add(FlagEnabled(11410292))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
MAIN.Await(CharacterBackreadEnabled(1410800))
|
|
|
|
AICommand(1410800, command_id=2, command_slot=0)
|
|
ReplanAI(1410800)
|
|
AICommand(1410801, command_id=2, command_slot=0)
|
|
ReplanAI(1410801)
|
|
AND_1.Add(FlagEnabled(11410291))
|
|
AND_1.Add(FlagEnabled(11410292))
|
|
if FlagDisabled(11410000):
|
|
AND_1.Add(FlagEnabled(11415396))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
MAIN.Await(CharacterBackreadEnabled(1410800))
|
|
|
|
AICommand(1410800, command_id=3, command_slot=0)
|
|
ReplanAI(1410800)
|
|
AICommand(1410801, command_id=3, command_slot=0)
|
|
ReplanAI(1410801)
|
|
|
|
|
|
@ContinueOnRest(11415399)
|
|
def Event_11415399():
|
|
"""Event 11415399"""
|
|
DisableNetworkSync()
|
|
|
|
MAIN.Await(CharacterInsideRegion(PLAYER, region=1412110))
|
|
|
|
EnableInvincibility(PLAYER)
|
|
|
|
MAIN.Await(CharacterOutsideRegion(PLAYER, region=1412110))
|
|
|
|
Wait(3.0)
|
|
DisableInvincibility(PLAYER)
|
|
|
|
|
|
@ContinueOnRest(11415300)
|
|
def Event_11415300():
|
|
"""Event 11415300"""
|
|
if FlagEnabled(10):
|
|
return
|
|
|
|
if ThisEventFlagDisabled():
|
|
EnableFlag(11415300)
|
|
EnableObjectInvulnerability(1411120)
|
|
|
|
AND_1.Add(FlagDisabled(11410291))
|
|
AND_1.Add(ObjectDestroyed(1411121))
|
|
AND_2.Add(FlagDisabled(11410292))
|
|
AND_2.Add(ObjectDestroyed(1411122))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
OR_1.Add(FlagEnabled(10))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if FlagEnabled(10):
|
|
return
|
|
|
|
if LastResult(AND_1):
|
|
EnableFlag(11410291)
|
|
DeleteVFX(1413400)
|
|
DeleteVFX(1413410)
|
|
return RESTART
|
|
|
|
EnableFlag(11410292)
|
|
DeleteVFX(1413401)
|
|
DeleteVFX(1413411)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11410200)
|
|
def Event_11410200():
|
|
"""Event 11410200"""
|
|
if ThisEventFlagEnabled():
|
|
DisableObject(1411200)
|
|
DisableObject(1411201)
|
|
DisableObject(1411202)
|
|
DisableObject(1411203)
|
|
DisableObject(1411204)
|
|
return
|
|
|
|
RestoreObject(1411200)
|
|
RestoreObject(1411201)
|
|
RestoreObject(1411202)
|
|
RestoreObject(1411203)
|
|
RestoreObject(1411204)
|
|
EnableObjectInvulnerability(1411200)
|
|
EnableObjectInvulnerability(1411201)
|
|
EnableObjectInvulnerability(1411202)
|
|
EnableObjectInvulnerability(1411203)
|
|
EnableObjectInvulnerability(1411204)
|
|
AND_1.Add(FlagEnabled(11410291))
|
|
AND_1.Add(FlagEnabled(11410292))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412100))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableFlag(11410200)
|
|
DisableObjectInvulnerability(1411200)
|
|
DisableObjectInvulnerability(1411201)
|
|
DisableObjectInvulnerability(1411202)
|
|
DisableObjectInvulnerability(1411203)
|
|
DisableObjectInvulnerability(1411204)
|
|
CreateTemporaryVFX(vfx_id=140009, anchor_entity=1411202, anchor_type=CoordEntityType.Object)
|
|
DestroyObject(1411200)
|
|
PlaySoundEffect(1411200, 463300000, sound_type=SoundType.o_Object)
|
|
WaitFrames(frames=4)
|
|
DestroyObject(1411201)
|
|
PlaySoundEffect(1411201, 463400000, sound_type=SoundType.o_Object)
|
|
WaitFrames(frames=3)
|
|
DestroyObject(1411202)
|
|
PlaySoundEffect(1411202, 463500000, sound_type=SoundType.o_Object)
|
|
WaitFrames(frames=2)
|
|
DestroyObject(1411203)
|
|
PlaySoundEffect(1411203, 463600000, sound_type=SoundType.o_Object)
|
|
WaitFrames(frames=1)
|
|
DestroyObject(1411204)
|
|
PlaySoundEffect(1411204, 463700000, sound_type=SoundType.o_Object)
|
|
DisableNetworkSync()
|
|
Wait(10.0)
|
|
DisableObject(1411200)
|
|
DisableObject(1411203)
|
|
DisableObject(1411204)
|
|
|
|
|
|
@ContinueOnRest(11410201)
|
|
def Event_11410201(_, obj: int, sound_id: int):
|
|
"""Event 11410201"""
|
|
if ThisEventSlotFlagEnabled():
|
|
DisableObject(obj)
|
|
return
|
|
|
|
RestoreObject(obj)
|
|
EnableObjectInvulnerability(obj)
|
|
OR_1.Add(FlagEnabled(11410291))
|
|
OR_1.Add(FlagEnabled(11410292))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
MAIN.Await(EntityWithinDistance(entity=obj, other_entity=PLAYER, radius=8.0))
|
|
|
|
DisableObjectInvulnerability(obj)
|
|
DestroyObject(obj)
|
|
CreateTemporaryVFX(vfx_id=140008, anchor_entity=obj, anchor_type=CoordEntityType.Object)
|
|
PlaySoundEffect(obj, sound_id, sound_type=SoundType.o_Object)
|
|
DisableNetworkSync()
|
|
Wait(10.0)
|
|
DisableObject(obj)
|
|
|
|
|
|
@ContinueOnRest(11410250)
|
|
def Event_11410250():
|
|
"""Event 11410250"""
|
|
EndIfFlagRangeAllEnabled(flag_range=(11410291, 11410292))
|
|
EnableObjectInvulnerability(1411250)
|
|
EnableObjectInvulnerability(1411251)
|
|
EnableObjectInvulnerability(1411252)
|
|
EnableObjectInvulnerability(1411253)
|
|
EnableObjectInvulnerability(1411254)
|
|
EnableObjectInvulnerability(1411255)
|
|
EnableObjectInvulnerability(1411256)
|
|
EnableObjectInvulnerability(1411257)
|
|
EnableObjectInvulnerability(1411258)
|
|
EnableObjectInvulnerability(1411259)
|
|
EnableObjectInvulnerability(1411260)
|
|
EnableObjectInvulnerability(1411261)
|
|
EnableObjectInvulnerability(1411262)
|
|
EnableObjectInvulnerability(1411263)
|
|
EnableObjectInvulnerability(1411264)
|
|
EnableObjectInvulnerability(1411265)
|
|
EnableObjectInvulnerability(1411266)
|
|
EnableObjectInvulnerability(1411267)
|
|
EnableObjectInvulnerability(1411268)
|
|
EnableObjectInvulnerability(1411269)
|
|
EnableObjectInvulnerability(1411270)
|
|
EnableObjectInvulnerability(1411271)
|
|
EnableObjectInvulnerability(1411272)
|
|
EnableObjectInvulnerability(1411273)
|
|
EnableObjectInvulnerability(1411274)
|
|
EnableObjectInvulnerability(1411275)
|
|
EnableObjectInvulnerability(1411276)
|
|
EnableObjectInvulnerability(1411277)
|
|
EnableObjectInvulnerability(1411278)
|
|
EnableObjectInvulnerability(1411279)
|
|
EnableObjectInvulnerability(1411280)
|
|
EnableObjectInvulnerability(1411281)
|
|
EnableObjectInvulnerability(1411282)
|
|
EnableObjectInvulnerability(1411283)
|
|
EnableObjectInvulnerability(1411284)
|
|
EnableObjectInvulnerability(1411285)
|
|
EnableObjectInvulnerability(1411286)
|
|
EnableObjectInvulnerability(1411287)
|
|
EnableObjectInvulnerability(1411288)
|
|
EnableObjectInvulnerability(1411289)
|
|
EnableObjectInvulnerability(1411290)
|
|
EnableObjectInvulnerability(1411291)
|
|
EnableObjectInvulnerability(1411292)
|
|
EnableObjectInvulnerability(1411293)
|
|
EnableObjectInvulnerability(1411294)
|
|
EnableObjectInvulnerability(1411295)
|
|
EnableObjectInvulnerability(1411296)
|
|
EnableObjectInvulnerability(1411297)
|
|
AND_1.Add(FlagEnabled(11410291))
|
|
AND_1.Add(FlagEnabled(11410292))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableObjectInvulnerability(1411250)
|
|
DisableObjectInvulnerability(1411251)
|
|
DisableObjectInvulnerability(1411252)
|
|
DisableObjectInvulnerability(1411253)
|
|
DisableObjectInvulnerability(1411254)
|
|
DisableObjectInvulnerability(1411255)
|
|
DisableObjectInvulnerability(1411256)
|
|
DisableObjectInvulnerability(1411257)
|
|
DisableObjectInvulnerability(1411258)
|
|
DisableObjectInvulnerability(1411259)
|
|
DisableObjectInvulnerability(1411260)
|
|
DisableObjectInvulnerability(1411261)
|
|
DisableObjectInvulnerability(1411262)
|
|
DisableObjectInvulnerability(1411263)
|
|
DisableObjectInvulnerability(1411264)
|
|
DisableObjectInvulnerability(1411265)
|
|
DisableObjectInvulnerability(1411266)
|
|
DisableObjectInvulnerability(1411267)
|
|
DisableObjectInvulnerability(1411268)
|
|
DisableObjectInvulnerability(1411269)
|
|
DisableObjectInvulnerability(1411270)
|
|
DisableObjectInvulnerability(1411271)
|
|
DisableObjectInvulnerability(1411272)
|
|
DisableObjectInvulnerability(1411273)
|
|
DisableObjectInvulnerability(1411274)
|
|
DisableObjectInvulnerability(1411275)
|
|
DisableObjectInvulnerability(1411276)
|
|
DisableObjectInvulnerability(1411277)
|
|
DisableObjectInvulnerability(1411278)
|
|
DisableObjectInvulnerability(1411279)
|
|
DisableObjectInvulnerability(1411280)
|
|
DisableObjectInvulnerability(1411281)
|
|
DisableObjectInvulnerability(1411282)
|
|
DisableObjectInvulnerability(1411283)
|
|
DisableObjectInvulnerability(1411284)
|
|
DisableObjectInvulnerability(1411285)
|
|
DisableObjectInvulnerability(1411286)
|
|
DisableObjectInvulnerability(1411287)
|
|
DisableObjectInvulnerability(1411288)
|
|
DisableObjectInvulnerability(1411289)
|
|
DisableObjectInvulnerability(1411290)
|
|
DisableObjectInvulnerability(1411291)
|
|
DisableObjectInvulnerability(1411292)
|
|
DisableObjectInvulnerability(1411293)
|
|
DisableObjectInvulnerability(1411294)
|
|
DisableObjectInvulnerability(1411295)
|
|
DisableObjectInvulnerability(1411296)
|
|
DisableObjectInvulnerability(1411297)
|
|
|
|
|
|
@ContinueOnRest(11415370)
|
|
def Event_11415370():
|
|
"""Event 11415370"""
|
|
AND_1.Add(FlagDisabled(11410900))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1412698,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
boss_version=True,
|
|
line_intersects=1411790,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1412697)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415371)
|
|
def Event_11415371():
|
|
"""Event 11415371"""
|
|
AND_1.Add(FlagDisabled(11410900))
|
|
AND_1.Add(FlagEnabled(11415373))
|
|
AND_1.Add(CharacterIsWhitePhantom(PLAYER))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1412698,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
line_intersects=1411790,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1412697)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415373)
|
|
def Event_11415373():
|
|
"""Event 11415373"""
|
|
if ThisEventFlagDisabled():
|
|
AND_1.Add(FlagDisabled(11410900))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412696))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
if Host():
|
|
NotifyBossBattleStart()
|
|
SetNetworkUpdateAuthority(1410600, authority_level=UpdateAuthority.Forced)
|
|
|
|
ActivateMultiplayerBuffs(1410600)
|
|
SetNetworkUpdateRate(1410600, is_fixed=True, update_rate=CharacterUpdateRate.Always)
|
|
DisableInvincibility(1410600)
|
|
|
|
|
|
@RestartOnRest(11415372)
|
|
def Event_11415372():
|
|
"""Event 11415372"""
|
|
if FlagEnabled(11410900):
|
|
DisableBackread(1410600)
|
|
Kill(1410600)
|
|
return
|
|
|
|
DisableAI(1410600)
|
|
DisableHealthBar(1410600)
|
|
EnableInvincibility(1410600)
|
|
AND_1.Add(FlagEnabled(11415373))
|
|
AND_1.Add(Host())
|
|
if Host():
|
|
AND_1.Add(FlagEnabled(51410180))
|
|
|
|
AND_2.Add(FlagEnabled(11415373))
|
|
AND_2.Add(Attacked(attacked_entity=1410600, attacker=PLAYER))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
EnableAI(1410600)
|
|
EnableBossHealthBar(1410600, name=5250)
|
|
|
|
|
|
@ContinueOnRest(11410900)
|
|
def Event_11410900():
|
|
"""Event 11410900"""
|
|
DisableObject(1411962)
|
|
|
|
MAIN.Await(CharacterDead(1410600))
|
|
|
|
EnableFlag(11410900)
|
|
KillBoss(game_area_param_id=1410600)
|
|
DisableBackread(1410600)
|
|
EnableFlag(11410800)
|
|
DisableObject(1411790)
|
|
DeleteVFX(1411791)
|
|
EnableObject(1411962)
|
|
RegisterBonfire(bonfire_flag=11410976, obj=1411962)
|
|
if FlagEnabled(11800100):
|
|
return
|
|
|
|
EnableFlag(402)
|
|
|
|
|
|
@ContinueOnRest(11415374)
|
|
def Event_11415374():
|
|
"""Event 11415374"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagDisabled(11410900))
|
|
AND_1.Add(FlagEnabled(11415372))
|
|
if Client():
|
|
AND_1.Add(FlagEnabled(11415371))
|
|
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412690))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableSoundEvent(sound_id=1413801)
|
|
|
|
MAIN.Await(FlagEnabled(11410900))
|
|
|
|
DisableSoundEvent(sound_id=1413801)
|
|
|
|
|
|
@RestartOnRest(11415376)
|
|
def Event_11415376():
|
|
"""Event 11415376"""
|
|
AND_1.Add(CharacterAlive(1410600))
|
|
AND_1.Add(CharacterInsideRegion(1410600, region=1412799))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
Move(1410600, destination=1412797, destination_type=CoordEntityType.Region, short_move=True)
|
|
ForceAnimation(1410600, 17006, wait_for_completion=True)
|
|
Move(1410600, destination=1412798, destination_type=CoordEntityType.Region, short_move=True)
|
|
|
|
|
|
@RestartOnRest(11415377)
|
|
def Event_11415377():
|
|
"""Event 11415377"""
|
|
if ThisEventFlagEnabled():
|
|
RemoveSpecialEffect(1410600, 5132)
|
|
AddSpecialEffect(1410600, 5133)
|
|
AICommand(1410600, command_id=-1, command_slot=1)
|
|
return
|
|
|
|
MAIN.Await(CharacterHasTAEEvent(1410600, tae_event_id=300))
|
|
|
|
RemoveSpecialEffect(1410600, 5132)
|
|
AddSpecialEffect(1410600, 5133)
|
|
AICommand(1410600, command_id=-1, command_slot=1)
|
|
ReplanAI(1410600)
|
|
|
|
|
|
@RestartOnRest(11415378)
|
|
def Event_11415378():
|
|
"""Event 11415378"""
|
|
if FlagDisabled(0):
|
|
AND_1.Add(Host())
|
|
if Host():
|
|
AND_1.Add(FlagEnabled(51410180))
|
|
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412796))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
AICommand(1410600, command_id=1, command_slot=1)
|
|
ReplanAI(1410600)
|
|
|
|
|
|
@RestartOnRest(11415379)
|
|
def Event_11415379():
|
|
"""Event 11415379"""
|
|
if FlagEnabled(11410900):
|
|
return
|
|
|
|
AND_1.Add(FlagRangeAllEnabled(flag_range=(11415310, 11415314)))
|
|
AND_2.Add(HealthRatio(1410600) <= 0.0)
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_2):
|
|
return
|
|
|
|
Kill(1410600, award_souls=True)
|
|
|
|
|
|
@RestartOnRest(11415310)
|
|
def Event_11415310(_, flag: Flag | int):
|
|
"""Event 11415310"""
|
|
AND_1.Add(FlagEnabled(11415376))
|
|
AND_1.Add(FlagEnabled(flag))
|
|
AND_1.Add(Attacked(attacked_entity=1410600, attacker=PLAYER))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
return
|
|
|
|
|
|
@ContinueOnRest(11410800)
|
|
def Event_11410800():
|
|
"""Event 11410800"""
|
|
if FlagEnabled(11410801):
|
|
DisableObject(1411100)
|
|
DisableMapCollision(collision=1413100)
|
|
DisableSoundEvent(sound_id=1413805)
|
|
EnableTreasure(obj=1411610)
|
|
return
|
|
|
|
DisableObject(1411610)
|
|
DisableTreasure(obj=1411610)
|
|
DisableMapCollision(collision=1413101)
|
|
DisableCharacter(1410450)
|
|
DisableCharacter(1410451)
|
|
DisableCharacter(1410452)
|
|
DisableCharacter(1410453)
|
|
DisableCharacter(1410454)
|
|
DisableCharacter(1410455)
|
|
DisableCharacter(1410456)
|
|
DisableNetworkSync()
|
|
|
|
MAIN.Await(ThisEventFlagEnabled())
|
|
|
|
Wait(5.0)
|
|
AND_1.Add(Host())
|
|
AND_1.Add(HealthRatio(PLAYER) <= 0.0)
|
|
if AND_1:
|
|
return
|
|
|
|
if Client():
|
|
return
|
|
|
|
MAIN.Await(CharacterInsideRegion(PLAYER, region=1412530))
|
|
|
|
PlayCutscene(140100, cutscene_flags=0, player_id=10000)
|
|
WaitFrames(frames=1)
|
|
EnableFlag(11410801)
|
|
DisableObject(1411100)
|
|
DisableSoundEvent(sound_id=1413805)
|
|
DisableMapCollision(collision=1413100)
|
|
EnableMapCollision(collision=1413101)
|
|
EnableObject(1411610)
|
|
EnableTreasure(obj=1411610)
|
|
EnableCharacter(1410450)
|
|
EnableCharacter(1410451)
|
|
EnableCharacter(1410452)
|
|
EnableCharacter(1410453)
|
|
EnableCharacter(1410454)
|
|
EnableCharacter(1410455)
|
|
EnableCharacter(1410456)
|
|
|
|
|
|
@ContinueOnRest(11415380)
|
|
def Event_11415380():
|
|
"""Event 11415380"""
|
|
AND_1.Add(FlagDisabled(11410901))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1412898,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
boss_version=True,
|
|
line_intersects=1411890,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1412897)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415381)
|
|
def Event_11415381():
|
|
"""Event 11415381"""
|
|
AND_1.Add(FlagDisabled(11410901))
|
|
AND_1.Add(FlagEnabled(11415383))
|
|
AND_1.Add(CharacterIsWhitePhantom(PLAYER))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1412898,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
line_intersects=1411890,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1412897)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415383)
|
|
def Event_11415383():
|
|
"""Event 11415383"""
|
|
if ThisEventFlagDisabled():
|
|
AND_1.Add(FlagDisabled(11410901))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412896))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
if Host():
|
|
NotifyBossBattleStart()
|
|
|
|
ActivateMultiplayerBuffs(1410700)
|
|
|
|
|
|
@RestartOnRest(11415382)
|
|
def Event_11415382():
|
|
"""Event 11415382"""
|
|
DisableObject(1411110)
|
|
Event_11415385()
|
|
if FlagEnabled(11410901):
|
|
DisableBackread(1410700)
|
|
return
|
|
|
|
if FlagDisabled(11410002):
|
|
EnableObject(1411110)
|
|
DisableCharacter(1410700)
|
|
|
|
DisableAI(1410700)
|
|
AND_1.Add(FlagEnabled(11415383))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412896))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
OR_1.Add(CharacterIsType(PLAYER, character_type=CharacterType.BlackPhantom))
|
|
OR_1.Add(CharacterIsType(PLAYER, character_type=CharacterType.Intruder))
|
|
if OR_1:
|
|
return
|
|
|
|
if FlagDisabled(11410002):
|
|
if Singleplayer():
|
|
PlayCutscene(140120, cutscene_flags=0, player_id=10000)
|
|
else:
|
|
PlayCutscene(140120, cutscene_flags=CutsceneFlags.Unskippable, player_id=10000)
|
|
|
|
WaitFrames(frames=1)
|
|
EnableCharacter(1410700)
|
|
DisableObject(1411110)
|
|
EnableFlag(11410002)
|
|
|
|
EnableAI(1410700)
|
|
EnableBossHealthBar(1410700, name=5200)
|
|
|
|
|
|
@ContinueOnRest(11410901)
|
|
def Event_11410901():
|
|
"""Event 11410901"""
|
|
MAIN.Await(CharacterDead(1410700))
|
|
|
|
EnableFlag(11410901)
|
|
KillBoss(game_area_param_id=1410700)
|
|
EnableFlag(11410901)
|
|
DisableObject(1411890)
|
|
DeleteVFX(1411891)
|
|
DisableObject(1411892)
|
|
DeleteVFX(1411893)
|
|
DisableNetworkSync()
|
|
Wait(10.0)
|
|
DisableCharacter(1410700)
|
|
DisableBackread(1410700)
|
|
|
|
|
|
@ContinueOnRest(11415384)
|
|
def Event_11415384():
|
|
"""Event 11415384"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagDisabled(11410901))
|
|
AND_1.Add(FlagEnabled(11410002))
|
|
AND_1.Add(FlagEnabled(11415382))
|
|
if Client():
|
|
AND_1.Add(FlagEnabled(11415381))
|
|
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412890))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableSoundEvent(sound_id=1413802)
|
|
|
|
MAIN.Await(FlagEnabled(11410901))
|
|
|
|
DisableSoundEvent(sound_id=1413802)
|
|
|
|
|
|
@EndOnRest(11415385)
|
|
def Event_11415385():
|
|
"""Event 11415385"""
|
|
DisableCharacter(1410710)
|
|
DisableCharacter(1410711)
|
|
DisableCharacter(1410712)
|
|
DisableCharacter(1410713)
|
|
DisableCharacter(1410714)
|
|
DisableCharacter(1410720)
|
|
DisableCharacter(1410721)
|
|
DisableCharacter(1410722)
|
|
DisableCharacter(1410723)
|
|
DisableCharacter(1410724)
|
|
if FlagEnabled(11410901):
|
|
return
|
|
|
|
Event_11415350(0, flag=11415380, npc_part_id=5200, npc_part_id_1=5200, part_health=125, character=1410710)
|
|
Event_11415350(1, flag=11415350, npc_part_id=5201, npc_part_id_1=5201, part_health=125, character=1410711)
|
|
Event_11415350(2, flag=11415351, npc_part_id=5202, npc_part_id_1=5202, part_health=125, character=1410712)
|
|
Event_11415350(3, flag=11415352, npc_part_id=5203, npc_part_id_1=5203, part_health=125, character=1410713)
|
|
Event_11415350(4, flag=11415353, npc_part_id=5204, npc_part_id_1=5204, part_health=125, character=1410714)
|
|
Event_11415360(0, flag=11415380, npc_part_id=5205, npc_part_id_1=5205, part_health=95, character=1410720)
|
|
Event_11415360(1, flag=11415360, npc_part_id=5206, npc_part_id_1=5206, part_health=95, character=1410721)
|
|
Event_11415360(2, flag=11415361, npc_part_id=5207, npc_part_id_1=5207, part_health=95, character=1410722)
|
|
Event_11415360(3, flag=11415362, npc_part_id=5208, npc_part_id_1=5208, part_health=95, character=1410723)
|
|
Event_11415360(4, flag=11415363, npc_part_id=5209, npc_part_id_1=5209, part_health=95, character=1410724)
|
|
Event_11415320(0, flag=11415380, character=1410710)
|
|
Event_11415320(1, flag=11415350, character=1410711)
|
|
Event_11415320(2, flag=11415351, character=1410712)
|
|
Event_11415320(3, flag=11415352, character=1410713)
|
|
Event_11415320(4, flag=11415353, character=1410714)
|
|
Event_11415320(5, flag=11415380, character=1410720)
|
|
Event_11415320(6, flag=11415360, character=1410721)
|
|
Event_11415320(7, flag=11415361, character=1410722)
|
|
Event_11415320(8, flag=11415362, character=1410723)
|
|
Event_11415320(9, flag=11415363, character=1410724)
|
|
|
|
|
|
@ContinueOnRest(11415386)
|
|
def Event_11415386():
|
|
"""Event 11415386"""
|
|
if Client():
|
|
return
|
|
|
|
OR_1.Add(CharacterDead(1410700))
|
|
OR_1.Add(CharacterDead(1410710))
|
|
OR_1.Add(CharacterDead(1410711))
|
|
OR_1.Add(CharacterDead(1410712))
|
|
OR_1.Add(CharacterDead(1410713))
|
|
OR_1.Add(CharacterDead(1410714))
|
|
OR_1.Add(CharacterDead(1410720))
|
|
OR_1.Add(CharacterDead(1410721))
|
|
OR_1.Add(CharacterDead(1410722))
|
|
OR_1.Add(CharacterDead(1410723))
|
|
OR_1.Add(CharacterDead(1410724))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
OR_7.Add(CharacterIsHuman(PLAYER))
|
|
OR_7.Add(CharacterIsHollow(PLAYER))
|
|
if not OR_7:
|
|
return
|
|
|
|
AwardItemLot(2670, host_only=True)
|
|
|
|
|
|
@EndOnRest(11415320)
|
|
def Event_11415320(_, flag: Flag | int, character: Character | int):
|
|
"""Event 11415320"""
|
|
AND_1.Add(FlagEnabled(flag))
|
|
AND_1.Add(CharacterHasTAEEvent(1410700, tae_event_id=400))
|
|
AND_1.Add(HealthRatio(1410700) > 0.0)
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
MAIN.Await(HealthRatio(1410700) <= 0.0)
|
|
|
|
Kill(character, award_souls=True)
|
|
|
|
|
|
@EndOnRest(11415350)
|
|
def Event_11415350(_, flag: Flag | int, npc_part_id: short, npc_part_id_1: int, part_health: int, character: int):
|
|
"""Event 11415350"""
|
|
if ThisEventSlotFlagEnabled():
|
|
EnableCharacter(character)
|
|
|
|
if FlagEnabled(11415354):
|
|
SetDisplayMask(1410700, bit_index=0, switch_type=OnOffChange.On)
|
|
SetCollisionMask(1410700, bit_index=1, switch_type=OnOffChange.Off)
|
|
AICommand(1410700, command_id=20, command_slot=0)
|
|
return
|
|
|
|
MAIN.Await(FlagEnabled(flag))
|
|
|
|
CreateNPCPart(1410700, npc_part_id=npc_part_id, part_index=NPCPartType.Part1, part_health=part_health)
|
|
AND_1.Add(CharacterPartHealth(1410700, npc_part_id=npc_part_id_1) <= 0)
|
|
AND_2.Add(HealthRatio(1410700) <= 0.0)
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_2):
|
|
return
|
|
|
|
EzstateAIRequest(1410700, command_id=1001, command_slot=0)
|
|
|
|
MAIN.Await(CharacterHasTAEEvent(1410700, tae_event_id=400))
|
|
|
|
EnableCharacter(character)
|
|
Move(
|
|
character,
|
|
destination=1410700,
|
|
destination_type=CoordEntityType.Character,
|
|
dummy_id=140,
|
|
copy_draw_parent=1410700,
|
|
)
|
|
ForceAnimation(character, 8100)
|
|
SetDisplayMask(1410700, bit_index=0, switch_type=OnOffChange.On)
|
|
SetCollisionMask(1410700, bit_index=1, switch_type=OnOffChange.Off)
|
|
AICommand(1410700, command_id=10, command_slot=0)
|
|
if FlagEnabled(11415353):
|
|
AICommand(1410700, command_id=20, command_slot=0)
|
|
return
|
|
|
|
MAIN.Await(CharacterHasTAEEvent(1410700, tae_event_id=300))
|
|
|
|
SetDisplayMask(1410700, bit_index=0, switch_type=OnOffChange.Off)
|
|
SetCollisionMask(1410700, bit_index=1, switch_type=OnOffChange.On)
|
|
AICommand(1410700, command_id=-1, command_slot=0)
|
|
|
|
|
|
@EndOnRest(11415360)
|
|
def Event_11415360(_, flag: Flag | int, npc_part_id: short, npc_part_id_1: int, part_health: int, character: int):
|
|
"""Event 11415360"""
|
|
if ThisEventSlotFlagEnabled():
|
|
EnableCharacter(character)
|
|
|
|
if FlagEnabled(11415364):
|
|
SetDisplayMask(1410700, bit_index=1, switch_type=OnOffChange.On)
|
|
SetCollisionMask(1410700, bit_index=2, switch_type=OnOffChange.Off)
|
|
AICommand(1410700, command_id=20, command_slot=1)
|
|
return
|
|
|
|
MAIN.Await(FlagEnabled(flag))
|
|
|
|
CreateNPCPart(1410700, npc_part_id=npc_part_id, part_index=NPCPartType.Part2, part_health=part_health)
|
|
AND_1.Add(CharacterPartHealth(1410700, npc_part_id=npc_part_id_1) <= 0)
|
|
AND_2.Add(HealthRatio(1410700) <= 0.0)
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_2):
|
|
return
|
|
|
|
EzstateAIRequest(1410700, command_id=1002, command_slot=0)
|
|
|
|
MAIN.Await(CharacterHasTAEEvent(1410700, tae_event_id=400))
|
|
|
|
EnableCharacter(character)
|
|
Move(
|
|
character,
|
|
destination=1410700,
|
|
destination_type=CoordEntityType.Character,
|
|
dummy_id=141,
|
|
copy_draw_parent=1410700,
|
|
)
|
|
ForceAnimation(character, 8100)
|
|
SetDisplayMask(1410700, bit_index=1, switch_type=OnOffChange.On)
|
|
SetCollisionMask(1410700, bit_index=2, switch_type=OnOffChange.Off)
|
|
AICommand(1410700, command_id=10, command_slot=1)
|
|
if FlagEnabled(11415363):
|
|
AICommand(1410700, command_id=20, command_slot=1)
|
|
return
|
|
|
|
MAIN.Await(CharacterHasTAEEvent(1410700, tae_event_id=600))
|
|
|
|
SetDisplayMask(1410700, bit_index=1, switch_type=OnOffChange.Off)
|
|
SetCollisionMask(1410700, bit_index=2, switch_type=OnOffChange.On)
|
|
AICommand(1410700, command_id=-1, command_slot=1)
|
|
|
|
|
|
@ContinueOnRest(11410340)
|
|
def Event_11410340():
|
|
"""Event 11410340"""
|
|
if ThisEventFlagEnabled():
|
|
EndOfAnimation(obj=1411340, animation_id=1)
|
|
return
|
|
|
|
AND_1.Add(Host())
|
|
AND_1.Add(PlayerCovenant(Covenant.ChaosServant))
|
|
AND_1.Add(FlagEnabled(11400598))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010510,
|
|
anchor_entity=1412201,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
line_intersects=1411340,
|
|
))
|
|
AND_2.Add(ActionButton(
|
|
prompt_text=10010510,
|
|
anchor_entity=1412200,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
line_intersects=1411340,
|
|
))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
EnableFlag(11410340)
|
|
FaceEntity(PLAYER, target_entity=1411340)
|
|
ForceAnimation(PLAYER, 7114, wait_for_completion=True)
|
|
ForceAnimation(1411340, 1)
|
|
CreateTemporaryVFX(vfx_id=140000, anchor_entity=1411340, anchor_type=CoordEntityType.Object)
|
|
|
|
|
|
@ContinueOnRest(11410341)
|
|
def Event_11410341():
|
|
"""Event 11410341"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagDisabled(11410340))
|
|
AND_6.Add(Host())
|
|
AND_7.Add(PlayerCovenant(Covenant.ChaosServant))
|
|
AND_6.Add(not AND_7)
|
|
OR_7.Add(AND_6)
|
|
OR_7.Add(FlagDisabled(11400598))
|
|
AND_1.Add(OR_7)
|
|
OR_2.Add(ActionButton(
|
|
prompt_text=10010510,
|
|
anchor_entity=1412201,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
line_intersects=1411340,
|
|
))
|
|
AND_1.Add(OR_2)
|
|
AND_2.Add(FlagDisabled(11410340))
|
|
AND_2.Add(Client())
|
|
OR_3.Add(ActionButton(
|
|
prompt_text=10010510,
|
|
anchor_entity=1412200,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
line_intersects=1411340,
|
|
))
|
|
OR_3.Add(ActionButton(
|
|
prompt_text=10010510,
|
|
anchor_entity=1412201,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
line_intersects=1411340,
|
|
))
|
|
AND_2.Add(OR_3)
|
|
AND_3.Add(FlagEnabled(11410340))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
OR_1.Add(AND_3)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if FlagEnabled(11410340):
|
|
return
|
|
|
|
DisplayDialog(text=10010160, anchor_entity=1411340, display_distance=5.0, button_type=ButtonType.Yes_or_No)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11410360)
|
|
def Event_11410360():
|
|
"""Event 11410360"""
|
|
if ThisEventFlagEnabled():
|
|
DisableObject(1411360)
|
|
return
|
|
|
|
MAIN.Await(ObjectDestroyed(1411360))
|
|
|
|
EnableFlag(11410360)
|
|
|
|
|
|
@ContinueOnRest(11410400)
|
|
def Event_11410400():
|
|
"""Event 11410400"""
|
|
if FlagEnabled(11410401):
|
|
EndOfAnimation(obj=1411400, animation_id=0)
|
|
|
|
MAIN.Await(FlagEnabled(11410410))
|
|
|
|
AND_1.Add(FlagEnabled(11410401))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412403))
|
|
AND_2.Add(FlagDisabled(11410401))
|
|
AND_2.Add(CharacterInsideRegion(PLAYER, region=1412402))
|
|
AND_3.Add(FlagDisabled(11410401))
|
|
AND_3.Add(CharacterInsideRegion(PLAYER, region=1412401))
|
|
AND_4.Add(FlagEnabled(11410401))
|
|
AND_4.Add(CharacterInsideRegion(PLAYER, region=1412400))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
OR_1.Add(AND_3)
|
|
OR_1.Add(AND_4)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
SkipLinesIfLastConditionResultTrue(2, input_condition=AND_3)
|
|
SkipLinesIfLastConditionResultTrue(8, input_condition=AND_4)
|
|
SkipLinesIfFlagEnabled(7, 11410401)
|
|
EnableFlag(11410401)
|
|
CreateObjectVFX(1411400, vfx_id=100, dummy_id=140002)
|
|
ForceAnimation(1411400, 3, wait_for_completion=True)
|
|
DeleteObjectVFX(1411400)
|
|
|
|
MAIN.Await(AllPlayersOutsideRegion(region=1412403))
|
|
|
|
ForceAnimation(1411400, 4, wait_for_completion=True)
|
|
Restart()
|
|
DisableFlag(11410401)
|
|
CreateObjectVFX(1411400, vfx_id=100, dummy_id=140002)
|
|
ForceAnimation(1411400, 1, wait_for_completion=True)
|
|
DeleteObjectVFX(1411400)
|
|
|
|
MAIN.Await(AllPlayersOutsideRegion(region=1412402))
|
|
|
|
ForceAnimation(1411400, 5, wait_for_completion=True)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11410402)
|
|
def Event_11410402():
|
|
"""Event 11410402"""
|
|
DisableNetworkSync()
|
|
OR_2.Add(FlagDisabled(11410410))
|
|
OR_2.Add(Multiplayer())
|
|
AND_1.Add(OR_2)
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010510,
|
|
anchor_entity=1411400,
|
|
anchor_type=CoordEntityType.Object,
|
|
max_distance=1.5,
|
|
dummy_id=100,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisplayDialog(text=10010170, anchor_entity=1411400, button_type=ButtonType.Yes_or_No)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415340)
|
|
def Event_11415340():
|
|
"""Event 11415340"""
|
|
AND_1.Add(FlagDisabled(11410410))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1412411,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
boss_version=True,
|
|
line_intersects=1411410,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1412412)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415341)
|
|
def Event_11415341():
|
|
"""Event 11415341"""
|
|
AND_1.Add(FlagDisabled(11410410))
|
|
AND_1.Add(FlagEnabled(11415343))
|
|
AND_1.Add(CharacterIsWhitePhantom(PLAYER))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1412411,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
line_intersects=1411410,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1412412)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415343)
|
|
def Event_11415343():
|
|
"""Event 11415343"""
|
|
if ThisEventFlagDisabled():
|
|
AND_1.Add(FlagDisabled(11410410))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412416))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
if Host():
|
|
NotifyBossBattleStart()
|
|
|
|
ActivateMultiplayerBuffs(1410400)
|
|
|
|
|
|
@RestartOnRest(11415342)
|
|
def Event_11415342():
|
|
"""Event 11415342"""
|
|
if FlagEnabled(11410410):
|
|
if Host():
|
|
DisableObject(1411410)
|
|
DeleteVFX(1411411, erase_root_only=False)
|
|
DisableObject(1411412)
|
|
DeleteVFX(1411413, erase_root_only=False)
|
|
|
|
DisableCharacter(1410400)
|
|
DisableBackread(1410400)
|
|
return
|
|
|
|
DisableAI(1410400)
|
|
AND_1.Add(FlagEnabled(11415343))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412416))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableAI(1410400)
|
|
EnableBossHealthBar(1410400, name=2230)
|
|
|
|
|
|
@ContinueOnRest(11415344)
|
|
def Event_11415344():
|
|
"""Event 11415344"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagDisabled(11410410))
|
|
AND_1.Add(FlagEnabled(11415342))
|
|
if Client():
|
|
AND_1.Add(FlagEnabled(11415341))
|
|
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412410))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableSoundEvent(sound_id=1413803)
|
|
|
|
MAIN.Await(FlagEnabled(11410410))
|
|
|
|
DisableSoundEvent(sound_id=1413803)
|
|
|
|
|
|
@ContinueOnRest(11415345)
|
|
def Event_11415345():
|
|
"""Event 11415345"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagEnabled(11415340))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412410))
|
|
OR_1.Add(CharacterBackreadEnabled(1400700))
|
|
OR_1.Add(CharacterBackreadEnabled(6160))
|
|
OR_1.Add(CharacterBackreadEnabled(1400411))
|
|
OR_1.Add(CharacterBackreadEnabled(1400412))
|
|
OR_1.Add(CharacterBackreadEnabled(1400413))
|
|
OR_1.Add(CharacterBackreadEnabled(1400414))
|
|
OR_1.Add(CharacterBackreadEnabled(1400415))
|
|
AND_1.Add(OR_1)
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableBackread(1400700)
|
|
DisableBackread(6160)
|
|
DisableBackread(1400411)
|
|
DisableBackread(1400412)
|
|
DisableBackread(1400413)
|
|
DisableBackread(1400414)
|
|
DisableBackread(1400415)
|
|
|
|
MAIN.Await(FlagEnabled(11410410))
|
|
|
|
Wait(5.0)
|
|
EnableBackread(1400700)
|
|
EnableBackread(6160)
|
|
EnableBackread(1400411)
|
|
EnableBackread(1400412)
|
|
EnableBackread(1400413)
|
|
EnableBackread(1400414)
|
|
EnableBackread(1400415)
|
|
|
|
|
|
@ContinueOnRest(11410410)
|
|
def Event_11410410():
|
|
"""Event 11410410"""
|
|
MAIN.Await(CharacterDead(1410400))
|
|
|
|
EnableFlag(11410410)
|
|
KillBoss(game_area_param_id=1410400)
|
|
EnableFlag(11410410)
|
|
DisableObject(1411410)
|
|
DeleteVFX(1411411)
|
|
DisableObject(1411412)
|
|
DeleteVFX(1411413)
|
|
DisableNetworkSync()
|
|
Wait(3.0)
|
|
DisableCharacter(1410400)
|
|
DisableBackread(1410400)
|
|
|
|
|
|
@RestartOnRest(11415100)
|
|
def Event_11415100(_, entity: int, character: Character | int, cancel_animation: int, radius: float, seconds: float):
|
|
"""Event 11415100"""
|
|
if ThisEventSlotFlagEnabled():
|
|
SetStandbyAnimationSettings(character, cancel_animation=cancel_animation)
|
|
return
|
|
|
|
MAIN.Await(EntityWithinDistance(entity=entity, other_entity=PLAYER, radius=radius))
|
|
|
|
Wait(seconds)
|
|
SetStandbyAnimationSettings(character, cancel_animation=cancel_animation)
|
|
|
|
|
|
@RestartOnRest(11415120)
|
|
def Event_11415120(
|
|
_,
|
|
character: int,
|
|
character_1: Character | int,
|
|
cancel_animation: int,
|
|
region: Region | int,
|
|
seconds: float,
|
|
):
|
|
"""Event 11415120"""
|
|
if ThisEventSlotFlagEnabled():
|
|
SetStandbyAnimationSettings(character_1, cancel_animation=cancel_animation)
|
|
return
|
|
|
|
MAIN.Await(CharacterInsideRegion(character, region=region))
|
|
|
|
Wait(seconds)
|
|
SetStandbyAnimationSettings(character_1, cancel_animation=cancel_animation)
|
|
|
|
|
|
@RestartOnRest(11415200)
|
|
def Event_11415200():
|
|
"""Event 11415200"""
|
|
Event_11415201(0, character=1410500, part_index=1, npc_part_id=3290, npc_part_id_1=3290, flag=11415201)
|
|
Event_5200(-1, character=1410500, flag=11415201, bit_index=0, bit_index_1=1)
|
|
Event_5200(-1, character=1410500, flag=11415201, bit_index=2, bit_index_1=3)
|
|
Event_5201(-1, character=1410500, flag=11415201, obj=1411500, obj_1=1411501, dummy_id=120, dummy_id_1=123)
|
|
Event_5201(-1, character=1410500, flag=11415201, obj=1411502, obj_1=1411503, dummy_id=126, dummy_id_1=129)
|
|
Event_5202(
|
|
-1,
|
|
character=1410500,
|
|
flag=11415201,
|
|
character_1=1410550,
|
|
character_2=1410551,
|
|
dummy_id=120,
|
|
dummy_id_1=123,
|
|
)
|
|
Event_5202(
|
|
-1,
|
|
character=1410500,
|
|
flag=11415201,
|
|
character_1=1410552,
|
|
character_2=1410553,
|
|
dummy_id=126,
|
|
dummy_id_1=129,
|
|
)
|
|
Event_11415201(1, character=1410500, part_index=2, npc_part_id=3291, npc_part_id_1=3291, flag=11415202)
|
|
Event_5200(-1, character=1410500, flag=11415202, bit_index=5, bit_index_1=11)
|
|
Event_5201(-1, character=1410500, flag=11415202, obj=1411504, obj_1=1411505, dummy_id=135, dummy_id_1=137)
|
|
Event_5202(
|
|
-1,
|
|
character=1410500,
|
|
flag=11415202,
|
|
character_1=1410554,
|
|
character_2=1410555,
|
|
dummy_id=135,
|
|
dummy_id_1=137,
|
|
)
|
|
Event_5202(
|
|
-1,
|
|
character=1410500,
|
|
flag=11415202,
|
|
character_1=1410556,
|
|
character_2=1410557,
|
|
dummy_id=153,
|
|
dummy_id_1=155,
|
|
)
|
|
Event_11415201(2, character=1410500, part_index=3, npc_part_id=3292, npc_part_id_1=3292, flag=11415203)
|
|
Event_5200(-1, character=1410500, flag=11415203, bit_index=6, bit_index_1=7)
|
|
Event_5200(-1, character=1410500, flag=11415203, bit_index=8, bit_index_1=10)
|
|
Event_5201(-1, character=1410500, flag=11415203, obj=1411506, obj_1=1411507, dummy_id=138, dummy_id_1=141)
|
|
Event_5201(-1, character=1410500, flag=11415203, obj=1411508, obj_1=1411509, dummy_id=144, dummy_id_1=150)
|
|
Event_5202(
|
|
-1,
|
|
character=1410500,
|
|
flag=11415203,
|
|
character_1=1410558,
|
|
character_2=1410559,
|
|
dummy_id=138,
|
|
dummy_id_1=141,
|
|
)
|
|
Event_5202(
|
|
-1,
|
|
character=1410500,
|
|
flag=11415203,
|
|
character_1=1410560,
|
|
character_2=1410561,
|
|
dummy_id=144,
|
|
dummy_id_1=150,
|
|
)
|
|
Event_11415201(3, character=1410500, part_index=4, npc_part_id=3293, npc_part_id_1=3293, flag=11415204)
|
|
Event_5200(-1, character=1410500, flag=11415204, bit_index=4, bit_index_1=9)
|
|
Event_5201(-1, character=1410500, flag=11415204, obj=1411510, obj_1=1411511, dummy_id=132, dummy_id_1=134)
|
|
Event_5202(
|
|
-1,
|
|
character=1410500,
|
|
flag=11415204,
|
|
character_1=1410562,
|
|
character_2=1410563,
|
|
dummy_id=132,
|
|
dummy_id_1=134,
|
|
)
|
|
Event_5202(
|
|
-1,
|
|
character=1410500,
|
|
flag=11415204,
|
|
character_1=1410564,
|
|
character_2=1410565,
|
|
dummy_id=150,
|
|
dummy_id_1=152,
|
|
)
|
|
|
|
|
|
@EndOnRest(11415201)
|
|
def Event_11415201(_, character: int, part_index: short, npc_part_id: short, npc_part_id_1: int, flag: Flag | int):
|
|
"""Event 11415201"""
|
|
if ThisEventSlotFlagEnabled():
|
|
return
|
|
|
|
MAIN.Await(CharacterBackreadEnabled(character))
|
|
|
|
CreateNPCPart(character, npc_part_id=npc_part_id, part_index=part_index, part_health=100)
|
|
|
|
MAIN.Await(CharacterPartHealth(character, npc_part_id=npc_part_id_1) <= 0)
|
|
|
|
DisableFlag(11415290)
|
|
DisableFlag(11415291)
|
|
if Host():
|
|
EnableRandomFlagInRange(flag_range=(11415290, 11415291))
|
|
|
|
EnableFlag(flag)
|
|
if FlagEnabled(11415290):
|
|
ForceAnimation(character, 8000)
|
|
else:
|
|
ForceAnimation(character, 8010)
|
|
|
|
|
|
@EndOnRest(5200)
|
|
def Event_5200(_, character: Character | int, flag: Flag | int, bit_index: uchar, bit_index_1: uchar):
|
|
"""Event 5200"""
|
|
if FlagDisabled(flag):
|
|
AND_1.Add(FlagEnabled(flag))
|
|
AND_2.Add(CharacterDead(character))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_2):
|
|
return
|
|
|
|
SetDisplayMask(character, bit_index=bit_index, switch_type=OnOffChange.On)
|
|
SetDisplayMask(character, bit_index=bit_index_1, switch_type=OnOffChange.On)
|
|
|
|
|
|
@EndOnRest(5201)
|
|
def Event_5201(
|
|
_,
|
|
character: Character | int,
|
|
flag: Flag | int,
|
|
obj: Object | int,
|
|
obj_1: Object | int,
|
|
dummy_id: short,
|
|
dummy_id_1: short,
|
|
):
|
|
"""Event 5201"""
|
|
DisableObject(obj)
|
|
DisableObject(obj_1)
|
|
if FlagEnabled(flag):
|
|
return
|
|
|
|
AND_1.Add(FlagEnabled(flag))
|
|
AND_2.Add(CharacterDead(character))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_2):
|
|
return
|
|
|
|
EnableObject(obj)
|
|
EnableObject(obj_1)
|
|
MoveObjectToCharacter(obj, character=character, dummy_id=dummy_id)
|
|
MoveObjectToCharacter(obj_1, character=character, dummy_id=dummy_id_1)
|
|
DestroyObject(obj)
|
|
DestroyObject(obj_1)
|
|
|
|
|
|
@EndOnRest(5202)
|
|
def Event_5202(_, character: int, flag: Flag | int, character_1: int, character_2: int, dummy_id: int, dummy_id_1: int):
|
|
"""Event 5202"""
|
|
if FlagEnabled(flag):
|
|
return
|
|
|
|
DisableCharacter(character_1)
|
|
DisableCharacter(character_2)
|
|
AND_1.Add(FlagEnabled(flag))
|
|
AND_2.Add(CharacterDead(character))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_2):
|
|
return
|
|
|
|
ResetAnimation(character)
|
|
Move(
|
|
character_1,
|
|
destination=character,
|
|
destination_type=CoordEntityType.Character,
|
|
dummy_id=dummy_id,
|
|
copy_draw_parent=character,
|
|
)
|
|
Move(
|
|
character_2,
|
|
destination=character,
|
|
destination_type=CoordEntityType.Character,
|
|
dummy_id=dummy_id_1,
|
|
copy_draw_parent=character,
|
|
)
|
|
EnableCharacter(character_1)
|
|
EnableCharacter(character_2)
|
|
ForceAnimation(character_1, 7000)
|
|
ForceAnimation(character_2, 7000)
|
|
|
|
|
|
@RestartOnRest(11415210)
|
|
def Event_11415210(_, first_flag: Flag | int, last_flag: Flag | int, value: int):
|
|
"""Event 11415210"""
|
|
MAIN.Await(EnabledFlagCount(FlagType.Absolute, flag_range=(first_flag, last_flag)) >= value)
|
|
|
|
DisableSoundEvent(sound_id=1413806)
|
|
|
|
|
|
@RestartOnRest(11415250)
|
|
def Event_11415250(
|
|
_,
|
|
character: int,
|
|
character_1: int,
|
|
character_2: int,
|
|
character_3: int,
|
|
character_4: int,
|
|
character_5: int,
|
|
):
|
|
"""Event 11415250"""
|
|
if ThisEventSlotFlagEnabled():
|
|
SetDisplayMask(character, bit_index=2, switch_type=OnOffChange.On)
|
|
return
|
|
|
|
DisableCharacter(character_1)
|
|
DisableCharacter(character_2)
|
|
DisableCharacter(character_3)
|
|
DisableCharacter(character_4)
|
|
DisableCharacter(character_5)
|
|
|
|
MAIN.Await(CharacterDead(character))
|
|
|
|
SetDisplayMask(character, bit_index=2, switch_type=OnOffChange.On)
|
|
EnableCharacter(character_1)
|
|
EnableCharacter(character_2)
|
|
EnableCharacter(character_3)
|
|
EnableCharacter(character_4)
|
|
EnableCharacter(character_5)
|
|
Move(
|
|
character_1,
|
|
destination=character,
|
|
destination_type=CoordEntityType.Character,
|
|
dummy_id=100,
|
|
copy_draw_parent=character,
|
|
)
|
|
Move(
|
|
character_2,
|
|
destination=character,
|
|
destination_type=CoordEntityType.Character,
|
|
dummy_id=101,
|
|
copy_draw_parent=character,
|
|
)
|
|
Move(
|
|
character_3,
|
|
destination=character,
|
|
destination_type=CoordEntityType.Character,
|
|
dummy_id=102,
|
|
copy_draw_parent=character,
|
|
)
|
|
Move(
|
|
character_4,
|
|
destination=character,
|
|
destination_type=CoordEntityType.Character,
|
|
dummy_id=103,
|
|
copy_draw_parent=character,
|
|
)
|
|
Move(
|
|
character_5,
|
|
destination=character,
|
|
destination_type=CoordEntityType.Character,
|
|
dummy_id=104,
|
|
copy_draw_parent=character,
|
|
)
|
|
ForceAnimation(character_1, 7000)
|
|
ForceAnimation(character_2, 7000)
|
|
ForceAnimation(character_3, 7000)
|
|
ForceAnimation(character_4, 7000)
|
|
ForceAnimation(character_5, 7000)
|
|
|
|
|
|
@ContinueOnRest(11410350)
|
|
def Event_11410350():
|
|
"""Event 11410350"""
|
|
if ThisEventFlagEnabled():
|
|
DisableObject(1411350)
|
|
PostDestruction(1411351)
|
|
EndOfAnimation(obj=1411600, animation_id=116)
|
|
EnableTreasure(obj=1411600)
|
|
return
|
|
|
|
DisableObject(1411351)
|
|
DisableTreasure(obj=1411600)
|
|
CreateObjectVFX(1411600, vfx_id=90, dummy_id=99010)
|
|
ForceAnimation(1411600, 115, loop=True)
|
|
OR_1.Add(CharacterInsideRegion(PLAYER, region=1412350))
|
|
OR_1.Add(ObjectDestroyed(1411350))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
DisableObject(1411350)
|
|
EnableObject(1411351)
|
|
CreateTemporaryVFX(vfx_id=140001, anchor_entity=1411351, anchor_type=CoordEntityType.Object)
|
|
PlaySoundEffect(1411351, 481000001, sound_type=SoundType.o_Object)
|
|
DestroyObject(1411351)
|
|
ForceAnimation(1411600, 116, wait_for_completion=True)
|
|
EnableTreasure(obj=1411600)
|
|
DeleteObjectVFX(1411600)
|
|
|
|
|
|
@RestartOnRest(11410100)
|
|
def Event_11410100(_, character: Character | int):
|
|
"""Event 11410100"""
|
|
if ThisEventSlotFlagEnabled():
|
|
DisableCharacter(character)
|
|
Kill(character)
|
|
return
|
|
|
|
MAIN.Await(CharacterDead(character))
|
|
|
|
if ValueNotEqual(left=character, right=1410110):
|
|
return
|
|
|
|
OR_7.Add(CharacterIsHuman(PLAYER))
|
|
OR_7.Add(CharacterIsHollow(PLAYER))
|
|
if not OR_7:
|
|
return
|
|
|
|
AwardItemLot(33002000, host_only=True)
|
|
|
|
|
|
@RestartOnRest(11410150)
|
|
def Event_11410150(_, character: Character | int, item_lot: int):
|
|
"""Event 11410150"""
|
|
if ThisEventSlotFlagEnabled():
|
|
return
|
|
|
|
MAIN.Await(CharacterDead(character))
|
|
|
|
OR_1.Add(CharacterIsHuman(PLAYER))
|
|
OR_1.Add(CharacterIsHollow(PLAYER))
|
|
if not OR_1:
|
|
return
|
|
|
|
AwardItemLot(item_lot, host_only=True)
|
|
|
|
|
|
@RestartOnRest(800)
|
|
def Event_800(_, character: Character | int):
|
|
"""Event 800"""
|
|
if ThisEventSlotFlagEnabled():
|
|
DropMandatoryTreasure(character)
|
|
DisableCharacter(character)
|
|
return
|
|
|
|
MAIN.Await(CharacterDead(character))
|
|
|
|
return
|
|
|
|
|
|
@ContinueOnRest(11410600)
|
|
def Event_11410600(_, obj: Object | int, obj_act_id: int):
|
|
"""Event 11410600"""
|
|
if ThisEventSlotFlagEnabled():
|
|
EndOfAnimation(obj=obj, animation_id=0)
|
|
DisableObjectActivation(obj, obj_act_id=-1)
|
|
EnableTreasure(obj=obj)
|
|
return
|
|
|
|
DisableTreasure(obj=obj)
|
|
|
|
MAIN.Await(ObjectActivated(obj_act_id=obj_act_id))
|
|
|
|
WaitFrames(frames=10)
|
|
EnableTreasure(obj=obj)
|
|
|
|
|
|
@ContinueOnRest(11410260)
|
|
def Event_11410260():
|
|
"""Event 11410260"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(InsideMap(game_map=LOST_IZALITH))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412510))
|
|
AND_1.Add(TimeElapsed(seconds=3.0))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
ActivateKillplaneForModel(game_map=LOST_IZALITH, y_threshold=-400.0, target_model_id=3240)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11410510)
|
|
def Event_11410510(_, character: Character | int, flag: Flag | int):
|
|
"""Event 11410510"""
|
|
AND_1.Add(HealthRatio(character) <= 0.8999999761581421)
|
|
AND_1.Add(HealthRatio(character) > 0.0)
|
|
AND_1.Add(Attacked(attacked_entity=character, attacker=PLAYER))
|
|
AND_2.Add(FlagEnabled(flag))
|
|
AND_2.Add(ThisEventSlotFlagEnabled())
|
|
AND_3.Add(FlagEnabled(flag))
|
|
AND_3.Add(ThisEventSlotFlagDisabled())
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
OR_1.Add(AND_3)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_3):
|
|
DisableCharacter(character)
|
|
|
|
MAIN.Await(FlagEnabled(703))
|
|
|
|
EnableFlag(flag)
|
|
SetTeamTypeAndExitStandbyAnimation(character, team_type=TeamType.HostileAlly)
|
|
SaveRequest()
|
|
|
|
|
|
@ContinueOnRest(11410520)
|
|
def Event_11410520(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410520"""
|
|
if ThisEventSlotFlagEnabled():
|
|
DropMandatoryTreasure(character)
|
|
return
|
|
|
|
MAIN.Await(HealthRatio(character) <= 0.0)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
|
|
|
|
@ContinueOnRest(11410501)
|
|
def Event_11410501(_, character: Character | int, flag: Flag | int):
|
|
"""Event 11410501"""
|
|
OR_2.Add(FlagEnabled(1503))
|
|
OR_2.Add(FlagEnabled(1505))
|
|
OR_2.Add(FlagEnabled(1506))
|
|
OR_2.Add(FlagEnabled(1507))
|
|
AND_1.Add(OR_2)
|
|
AND_1.Add(HealthRatio(character) <= 0.8999999761581421)
|
|
AND_1.Add(HealthRatio(character) > 0.0)
|
|
AND_1.Add(Attacked(attacked_entity=character, attacker=PLAYER))
|
|
AND_2.Add(FlagEnabled(flag))
|
|
AND_2.Add(ThisEventSlotFlagEnabled())
|
|
AND_3.Add(FlagEnabled(flag))
|
|
AND_3.Add(ThisEventSlotFlagDisabled())
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
OR_1.Add(AND_3)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_3):
|
|
DisableCharacter(character)
|
|
|
|
MAIN.Await(FlagEnabled(703))
|
|
|
|
EnableFlag(flag)
|
|
SetTeamTypeAndExitStandbyAnimation(character, team_type=TeamType.HostileAlly)
|
|
SaveRequest()
|
|
|
|
|
|
@ContinueOnRest(11410530)
|
|
def Event_11410530(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410530"""
|
|
AND_1.Add(FlagDisabled(1004))
|
|
AND_1.Add(FlagEnabled(1007))
|
|
AND_1.Add(FlagEnabled(11410901))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
EnableCharacter(character)
|
|
|
|
|
|
@ContinueOnRest(11410531)
|
|
def Event_11410531(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410531"""
|
|
AND_1.Add(FlagDisabled(1004))
|
|
AND_1.Add(FlagEnabled(1009))
|
|
AND_1.Add(FlagDisabled(800))
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412510))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
DisableCharacter(character)
|
|
EnableCharacter(6004)
|
|
SetTeamTypeAndExitStandbyAnimation(6004, team_type=TeamType.HostileAlly)
|
|
SaveRequest()
|
|
|
|
|
|
@ContinueOnRest(11410532)
|
|
def Event_11410532(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410532"""
|
|
AND_1.Add(FlagDisabled(1004))
|
|
AND_1.Add(FlagEnabled(1009))
|
|
AND_1.Add(FlagEnabled(800))
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412510))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
Move(character, destination=1412500, destination_type=CoordEntityType.Region, set_draw_parent=1413000)
|
|
EnableFlag(11410580)
|
|
|
|
MAIN.Await(CharacterBackreadEnabled(character))
|
|
|
|
SetNest(character, region=1412500)
|
|
|
|
|
|
@ContinueOnRest(11410533)
|
|
def Event_11410533(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410533"""
|
|
AND_1.Add(FlagDisabled(1004))
|
|
AND_1.Add(FlagEnabled(1003))
|
|
AND_1.Add(FlagEnabled(11410595))
|
|
AND_1.Add(CharacterAlive(character))
|
|
AND_1.Add(ThisEventFlagDisabled())
|
|
AND_2.Add(Host())
|
|
AND_2.Add(FlagDisabled(1004))
|
|
AND_2.Add(FlagEnabled(flag))
|
|
AND_2.Add(ThisEventFlagEnabled())
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_1):
|
|
return
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
DisableCharacter(character)
|
|
|
|
|
|
@ContinueOnRest(11410534)
|
|
def Event_11410534(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410534"""
|
|
AND_1.Add(FlagDisabled(1004))
|
|
AND_1.Add(FlagEnabled(1002))
|
|
AND_1.Add(HealthRatio(character) <= 0.0)
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
|
|
|
|
@ContinueOnRest(11410540)
|
|
def Event_11410540(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410540"""
|
|
AND_1.Add(FlagDisabled(1512))
|
|
AND_1.Add(FlagEnabled(1502))
|
|
AND_1.Add(FlagEnabled(11400590))
|
|
AND_1.Add(InsideMap(game_map=LOST_IZALITH))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
EnableCharacter(character)
|
|
EnableFlag(814)
|
|
|
|
|
|
@ContinueOnRest(11410541)
|
|
def Event_11410541(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410541"""
|
|
AND_1.Add(FlagDisabled(1512))
|
|
AND_1.Add(FlagEnabled(1503))
|
|
OR_1.Add(CharacterAlive(1410410))
|
|
OR_1.Add(CharacterAlive(1410411))
|
|
OR_1.Add(CharacterAlive(1410412))
|
|
OR_1.Add(CharacterAlive(1410413))
|
|
AND_1.Add(OR_1)
|
|
AND_1.Add(FlagEnabled(11410590))
|
|
AND_2.Add(FlagDisabled(1512))
|
|
AND_2.Add(FlagEnabled(1504))
|
|
AND_2.Add(ThisEventFlagEnabled())
|
|
OR_2.Add(AND_1)
|
|
OR_2.Add(AND_2)
|
|
|
|
MAIN.Await(OR_2)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
ResetStandbyAnimationSettings(character)
|
|
EnableCharacter(character)
|
|
SetTeamTypeAndExitStandbyAnimation(character, team_type=TeamType.FightingAlly)
|
|
AddSpecialEffect(character, 90111)
|
|
|
|
|
|
@ContinueOnRest(11410542)
|
|
def Event_11410542(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410542"""
|
|
AND_1.Add(FlagDisabled(1512))
|
|
AND_1.Add(FlagEnabled(1503))
|
|
AND_1.Add(CharacterDead(1410410))
|
|
AND_1.Add(CharacterDead(1410411))
|
|
AND_1.Add(CharacterDead(1410412))
|
|
AND_1.Add(CharacterDead(1410413))
|
|
AND_1.Add(CharacterAlive(character))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
|
|
|
|
@ContinueOnRest(11410543)
|
|
def Event_11410543(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410543"""
|
|
AND_1.Add(FlagDisabled(1512))
|
|
AND_1.Add(FlagEnabled(1504))
|
|
AND_1.Add(HealthRatio(character) < 0.5)
|
|
AND_1.Add(HealthRatio(character) > 0.0)
|
|
AND_1.Add(CharacterDead(1410410))
|
|
AND_1.Add(CharacterDead(1410411))
|
|
AND_1.Add(CharacterDead(1410412))
|
|
AND_1.Add(CharacterDead(1410413))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
SetNest(character, region=1412360)
|
|
|
|
|
|
@ContinueOnRest(11410544)
|
|
def Event_11410544(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410544"""
|
|
AND_1.Add(FlagDisabled(1512))
|
|
AND_1.Add(FlagEnabled(1504))
|
|
AND_1.Add(HealthRatio(character) >= 0.5)
|
|
AND_1.Add(CharacterDead(1410410))
|
|
AND_1.Add(CharacterDead(1410411))
|
|
AND_1.Add(CharacterDead(1410412))
|
|
AND_1.Add(CharacterDead(1410413))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
SetNest(character, region=1412360)
|
|
|
|
|
|
@ContinueOnRest(11410545)
|
|
def Event_11410545(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410545"""
|
|
AND_1.Add(FlagDisabled(1512))
|
|
AND_1.Add(FlagEnabled(1506))
|
|
AND_1.Add(FlagEnabled(11410591))
|
|
AND_1.Add(ThisEventFlagDisabled())
|
|
AND_2.Add(FlagDisabled(1512))
|
|
AND_2.Add(FlagEnabled(flag))
|
|
AND_2.Add(ThisEventFlagEnabled())
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
if not LastResult(AND_2):
|
|
Kill(character, award_souls=True)
|
|
RemoveSpecialEffect(character, 90111)
|
|
return
|
|
|
|
DropMandatoryTreasure(character)
|
|
|
|
|
|
@ContinueOnRest(11410546)
|
|
def Event_11410546(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410546"""
|
|
if ThisEventSlotFlagEnabled():
|
|
DropMandatoryTreasure(character)
|
|
return
|
|
|
|
AND_1.Add(FlagDisabled(1506))
|
|
AND_1.Add(FlagDisabled(1508))
|
|
AND_1.Add(HealthRatio(character) <= 0.0)
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
|
|
|
|
@ContinueOnRest(11410547)
|
|
def Event_11410547(_, character: Character | int):
|
|
"""Event 11410547"""
|
|
if FlagEnabled(1512):
|
|
return
|
|
|
|
if ThisEventSlotFlagEnabled():
|
|
if FlagDisabled(11410593):
|
|
ResetStandbyAnimationSettings(character)
|
|
|
|
return
|
|
|
|
OR_1.Add(ThisEventFlagEnabled())
|
|
OR_1.Add(FlagEnabled(1503))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if ThisEventFlagDisabled():
|
|
MAIN.Await(FlagDisabled(814))
|
|
|
|
SetStandbyAnimationSettings(character, cancel_animation=7856)
|
|
|
|
|
|
@ContinueOnRest(11410548)
|
|
def Event_11410548(_, character: Character | int):
|
|
"""Event 11410548"""
|
|
if FlagEnabled(1512):
|
|
return
|
|
|
|
if ThisEventSlotFlagEnabled():
|
|
SetStandbyAnimationSettings(character, standby_animation=7855)
|
|
return
|
|
|
|
AND_1.Add(FlagDisabled(1512))
|
|
AND_1.Add(FlagEnabled(1507))
|
|
AND_1.Add(FlagEnabled(11410593))
|
|
AND_2.Add(ThisEventFlagEnabled())
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
SetStandbyAnimationSettings(character, standby_animation=7855)
|
|
|
|
|
|
@ContinueOnRest(11410549)
|
|
def Event_11410549(_, character: Character | int):
|
|
"""Event 11410549"""
|
|
AND_1.Add(FlagDisabled(1512))
|
|
AND_1.Add(FlagEnabled(1507))
|
|
AND_1.Add(FlagEnabled(11410594))
|
|
if ThisEventFlagDisabled():
|
|
AND_1.Add(CharacterBackreadDisabled(character))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableCharacter(character)
|
|
|
|
|
|
@ContinueOnRest(11410550)
|
|
def Event_11410550(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11410550"""
|
|
AND_1.Add(Host())
|
|
AND_1.Add(FlagDisabled(1512))
|
|
AND_1.Add(FlagEnabled(1505))
|
|
AND_1.Add(FlagEnabled(11410594))
|
|
if ThisEventFlagDisabled():
|
|
AND_1.Add(CharacterBackreadDisabled(character))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
DisableCharacter(character)
|
|
|
|
|
|
@ContinueOnRest(11415030)
|
|
def Event_11415030():
|
|
"""Event 11415030"""
|
|
if Host():
|
|
SetNetworkUpdateAuthority(6542, authority_level=UpdateAuthority.Forced)
|
|
|
|
if FlagDisabled(11415033):
|
|
AND_2.Add(Client())
|
|
AND_2.Add(FlagEnabled(11415031))
|
|
SkipLinesIfConditionTrue(1, AND_2) # NOTE: skip goes past end of event
|
|
|
|
DisableCharacter(6542)
|
|
if FlagEnabled(10):
|
|
return
|
|
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterIsHuman(PLAYER))
|
|
AND_1.Add(FlagDisabled(1004))
|
|
AND_1.Add(FlagEnabled(1007))
|
|
AND_1.Add(CharacterBackreadEnabled(6542))
|
|
AND_1.Add(EntityWithinDistance(entity=6542, other_entity=PLAYER, radius=20.0))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
PlaceSummonSign(
|
|
sign_type=SummonSignType.BlueEyeSign,
|
|
character=6542,
|
|
region=1412000,
|
|
summon_flag=11415031,
|
|
dismissal_flag=11415033,
|
|
)
|
|
|
|
|
|
@ContinueOnRest(11415029)
|
|
def Event_11415029():
|
|
"""Event 11415029"""
|
|
if Host():
|
|
SetNetworkUpdateAuthority(6542, authority_level=UpdateAuthority.Forced)
|
|
|
|
if FlagDisabled(11415033):
|
|
AND_2.Add(Client())
|
|
AND_2.Add(FlagEnabled(11415031))
|
|
SkipLinesIfConditionTrue(1, AND_2) # NOTE: skip goes past end of event
|
|
|
|
DisableCharacter(6542)
|
|
if FlagEnabled(10):
|
|
return
|
|
|
|
If_Unknown_3_24(AND_1, unk1=4, unk2=3)
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterIsHuman(PLAYER))
|
|
AND_1.Add(FlagDisabled(11415031))
|
|
AND_1.Add(FlagDisabled(11415033))
|
|
AND_1.Add(FlagDisabled(1004))
|
|
AND_1.Add(FlagEnabled(1007))
|
|
AND_1.Add(CharacterBackreadEnabled(6542))
|
|
AND_1.Add(EntityWithinDistance(entity=6542, other_entity=PLAYER, radius=20.0))
|
|
AND_1.Add(CharacterHasSpecialEffect(PLAYER, 28))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
PlaceSummonSign(
|
|
sign_type=SummonSignType.BlueEyeSign,
|
|
character=6542,
|
|
region=1412000,
|
|
summon_flag=11415031,
|
|
dismissal_flag=11415033,
|
|
)
|
|
|
|
|
|
@ContinueOnRest(14015990)
|
|
def Event_14015990(_, flag: Flag | int, summoned_character: Character | int):
|
|
"""Event 14015990"""
|
|
MAIN.Await(FlagEnabled(flag))
|
|
|
|
EraseNPCSummonSign(summoned_character=summoned_character)
|
|
|
|
MAIN.Await(FlagDisabled(flag))
|
|
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415032)
|
|
def Event_11415032():
|
|
"""Event 11415032"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
AND_1.Add(FlagEnabled(11415031))
|
|
AND_1.Add(FlagEnabled(11415383))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
AICommand(6542, command_id=10, command_slot=0)
|
|
ReplanAI(6542)
|
|
|
|
MAIN.Await(CharacterInsideRegion(6542, region=1412898))
|
|
|
|
FaceEntity(6542, target_entity=1412897)
|
|
ForceAnimation(6542, 7410)
|
|
AICommand(6542, command_id=-1, command_slot=0)
|
|
ReplanAI(6542)
|
|
|
|
|
|
@ContinueOnRest(11415035)
|
|
def Event_11415035():
|
|
"""Event 11415035"""
|
|
DisableNetworkSync()
|
|
if Client():
|
|
return
|
|
|
|
if FlagEnabled(11415036):
|
|
return
|
|
|
|
if FlagEnabled(11410410):
|
|
return
|
|
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterIsHuman(PLAYER))
|
|
AND_1.Add(FlagDisabled(11410810))
|
|
if ThisEventFlagDisabled():
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412010))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
PlaceSummonSign(
|
|
sign_type=SummonSignType.BlackEyeSign,
|
|
character=6560,
|
|
region=1412001,
|
|
summon_flag=11415036,
|
|
dismissal_flag=11415037,
|
|
)
|
|
Wait(20.0)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415038)
|
|
def Event_11415038():
|
|
"""Event 11415038"""
|
|
DisableNetworkSync()
|
|
if Client():
|
|
return
|
|
|
|
if FlagEnabled(11415039):
|
|
return
|
|
|
|
if FlagEnabled(10):
|
|
return
|
|
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterIsHuman(PLAYER))
|
|
AND_1.Add(FlagDisabled(11410811))
|
|
if ThisEventFlagDisabled():
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1412520))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
PlaceSummonSign(
|
|
sign_type=SummonSignType.BlackEyeSign,
|
|
character=6561,
|
|
region=1412002,
|
|
summon_flag=11415039,
|
|
dismissal_flag=11415040,
|
|
)
|
|
Wait(20.0)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11410810)
|
|
def Event_11410810(_, character: Character | int, flag: Flag | int, flag_1: Flag | int):
|
|
"""Event 11410810"""
|
|
if Client():
|
|
AND_1.Add(FlagEnabled(flag))
|
|
AND_1.Add(FlagDisabled(flag_1))
|
|
SkipLinesIfConditionTrue(1, AND_1) # NOTE: skip goes past end of event
|
|
|
|
DisableCharacter(character)
|
|
if ThisEventSlotFlagEnabled():
|
|
return
|
|
|
|
MAIN.Await(CharacterDead(character))
|
|
|
|
return
|
|
|
|
|
|
@ContinueOnRest(11415843)
|
|
def Event_11415843(_, flag: Flag | int, line_intersects: int, anchor_entity: int, target_entity: int):
|
|
"""Event 11415843"""
|
|
AND_1.Add(Host())
|
|
AND_1.Add(Multiplayer())
|
|
AND_1.Add(FlagEnabled(flag))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=anchor_entity,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
boss_version=True,
|
|
line_intersects=line_intersects,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=target_entity)
|
|
ForceAnimation(PLAYER, 7410, wait_for_completion=True)
|
|
Unknown_2003_47()
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11415846)
|
|
def Event_11415846(_, flag: Flag | int, obj: Object | int, vfx_id: VFXEvent | int):
|
|
"""Event 11415846"""
|
|
OR_1.Add(Multiplayer())
|
|
OR_1.Add(UnknownPlayerType5())
|
|
AND_1.Add(OR_1)
|
|
AND_1.Add(FlagEnabled(flag))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableObject(obj)
|
|
CreateVFX(vfx_id)
|
|
AND_3.Add(UnknownPlayerType5())
|
|
AND_2.Add(not AND_3)
|
|
AND_2.Add(Singleplayer())
|
|
|
|
MAIN.Await(AND_2)
|
|
|
|
DisableObject(obj)
|
|
DeleteVFX(vfx_id)
|
|
return RESTART
|