3248 lines
93 KiB
Python
3248 lines
93 KiB
Python
"""
|
|
Undead Burg / Parish
|
|
|
|
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"""
|
|
Event_11010008()
|
|
DisableFlag(11010580)
|
|
if FlagEnabled(61010610):
|
|
EndOfAnimation(obj=1011101, animation_id=2)
|
|
AddNavmeshFaceFlag(navmesh_id=1013100, navmesh_type=NavmeshFlag.Disable)
|
|
|
|
if Host():
|
|
DisableObject(1011994)
|
|
DeleteVFX(1011995, erase_root_only=False)
|
|
DisableObject(1011996)
|
|
DeleteVFX(1011997, erase_root_only=False)
|
|
DisableObject(1011998)
|
|
DeleteVFX(1011999, erase_root_only=False)
|
|
DisableObject(1011988)
|
|
DeleteVFX(1011989, erase_root_only=False)
|
|
DisableObject(1011986)
|
|
DeleteVFX(1011987, erase_root_only=False)
|
|
DisableObject(1011984)
|
|
DeleteVFX(1011985, erase_root_only=False)
|
|
DisableObject(1011982)
|
|
DeleteVFX(1011983, erase_root_only=False)
|
|
DisableObject(1011980)
|
|
DeleteVFX(1011981, erase_root_only=False)
|
|
DisableObject(1011978)
|
|
DeleteVFX(1011979, erase_root_only=False)
|
|
DisableObject(1011976)
|
|
DeleteVFX(1011977, erase_root_only=False)
|
|
DisableObject(1011974)
|
|
DeleteVFX(1011975, erase_root_only=False)
|
|
DisableObject(1011972)
|
|
DeleteVFX(1011973, erase_root_only=False)
|
|
|
|
Event_11010090(0, obj=1011700, vfx_id=1011701, destination=1012600, destination_1=1012601)
|
|
Event_11010090(1, obj=1011702, vfx_id=1011703, destination=1012602, destination_1=1012603)
|
|
Event_11015070()
|
|
Event_11015071()
|
|
Event_11015072()
|
|
Event_11010903()
|
|
Event_11015110()
|
|
Event_11015113()
|
|
Event_11015112()
|
|
Event_11015130()
|
|
Event_11010710()
|
|
Event_11010111()
|
|
Event_11010120()
|
|
Event_11010150(0, flag=11010160, region=1012401, region_1=1012400)
|
|
Event_11010160(0, obj_act_id=11010160, obj=1011314)
|
|
Event_11010170(1, obj_act_id=11010171, text=10010873, obj=1011306)
|
|
Event_11010170(2, obj_act_id=11010172, text=10010860, obj=1011311)
|
|
Event_11010180(1, obj_act_id=11010181, text=10010881, anchor_entity=1011317)
|
|
Event_11010140(0, obj_act_id=11010140, text=10010881, anchor_entity=1011310, text_1=10010883, item=2021)
|
|
Event_11010190(0, obj_act_id=11010190, text=10010876, obj=1011308, text_1=10010883, item=2017)
|
|
Event_11010190(1, obj_act_id=11010191, text=10010878, obj=1011315, text_1=10010883, item=2019)
|
|
Event_11010190(2, obj_act_id=11010192, text=10010878, obj=1011316, text_1=10010883, item=2019)
|
|
Event_11010101(0, obj=1011320, animation_id=1, dummy_id=101, dummy_id_1=121, animation_id_1=7110)
|
|
Event_11010102(0, flag=11010142, anchor_entity=1011320, dummy_id=100)
|
|
Event_11015185()
|
|
Event_11010611()
|
|
Event_11010600()
|
|
Event_11010601()
|
|
Event_11015116()
|
|
Event_11010609()
|
|
Event_11010607()
|
|
Event_11010608()
|
|
Event_11010621()
|
|
Event_11010700()
|
|
Event_11015170()
|
|
Event_11010100()
|
|
Event_11010780()
|
|
Event_11010580()
|
|
Event_11010585()
|
|
DisableSoundEvent(sound_id=1013800)
|
|
if FlagDisabled(3):
|
|
DisableSoundEvent(sound_id=1013801)
|
|
|
|
if FlagEnabled(3):
|
|
Event_11015392()
|
|
DisableObject(1011990)
|
|
DeleteVFX(1011991, erase_root_only=False)
|
|
DisableObject(1011992)
|
|
DeleteVFX(1011993, erase_root_only=False)
|
|
else:
|
|
Event_11010000()
|
|
Event_11015390()
|
|
Event_11015391()
|
|
Event_11015393()
|
|
Event_11015392()
|
|
Event_11010001()
|
|
Event_11015394()
|
|
Event_11015395()
|
|
Event_11015396()
|
|
Event_11010750(0, character=1010800, item_lot=53500000)
|
|
Event_11010750(1, character=1010801, item_lot=53500100)
|
|
|
|
Event_11015397(0, character=1010800, npc_part_id=5350, npc_part_id_1=5350, character_1=1010810)
|
|
Event_11015398(0, character=1010801, character_1=1010811)
|
|
DisableSoundEvent(sound_id=1013802)
|
|
if FlagEnabled(11010901):
|
|
Event_11010901()
|
|
DisableObject(1011890)
|
|
DeleteVFX(1011891, erase_root_only=False)
|
|
DisableObject(1011892)
|
|
DeleteVFX(1011893, erase_root_only=False)
|
|
else:
|
|
Event_11015380()
|
|
Event_11015381()
|
|
Event_11015383()
|
|
Event_11015382()
|
|
Event_11015384()
|
|
Event_11015385()
|
|
Event_11015386()
|
|
Event_11010901()
|
|
|
|
DisableSoundEvent(sound_id=1013803)
|
|
if FlagEnabled(11010902):
|
|
Event_11010902()
|
|
DisableObject(1011790)
|
|
DeleteVFX(1011791, erase_root_only=False)
|
|
else:
|
|
Event_11015370()
|
|
Event_11015371()
|
|
Event_11015373()
|
|
Event_11015372()
|
|
Event_11015374()
|
|
Event_11015375()
|
|
Event_11010902()
|
|
|
|
if FlagEnabled(11010900):
|
|
Event_11010900()
|
|
else:
|
|
Event_11010899()
|
|
Event_11010900()
|
|
Event_11010782()
|
|
Event_11010783()
|
|
Event_11010790()
|
|
Event_11010791()
|
|
Event_11015301()
|
|
Event_11010784()
|
|
Event_11015302()
|
|
Event_11015303()
|
|
Event_11015304()
|
|
Event_11010851()
|
|
Event_11010852()
|
|
Event_11010890(
|
|
0,
|
|
flag=11015320,
|
|
flag_1=11015321,
|
|
flag_2=11015322,
|
|
flag_3=11015323,
|
|
flag_4=11015324,
|
|
flag_5=11015325,
|
|
flag_6=11015326,
|
|
)
|
|
Event_11010890(
|
|
1,
|
|
flag=11015327,
|
|
flag_1=11015328,
|
|
flag_2=11015329,
|
|
flag_3=11015330,
|
|
flag_4=11015331,
|
|
flag_5=11015332,
|
|
flag_6=11015333,
|
|
)
|
|
Event_11010890(
|
|
2,
|
|
flag=11015334,
|
|
flag_1=11015335,
|
|
flag_2=11015336,
|
|
flag_3=11015337,
|
|
flag_4=11015338,
|
|
flag_5=11015339,
|
|
flag_6=11015340,
|
|
)
|
|
Event_11010850()
|
|
Event_11015307()
|
|
Event_11015308()
|
|
Event_11010200(0, tae_event_id=10, animation_id=3000)
|
|
Event_11010200(1, tae_event_id=20, animation_id=3001)
|
|
Event_11010200(2, tae_event_id=30, animation_id=3002)
|
|
Event_11010200(3, tae_event_id=40, animation_id=3009)
|
|
Event_11010200(4, tae_event_id=50, animation_id=3010)
|
|
Event_11010200(5, tae_event_id=60, animation_id=7004)
|
|
Event_11010200(6, tae_event_id=70, animation_id=7005)
|
|
Event_11010200(7, tae_event_id=80, animation_id=7008)
|
|
Event_11010200(8, tae_event_id=90, animation_id=7009)
|
|
Event_11010200(9, tae_event_id=100, animation_id=7011)
|
|
|
|
Event_11015250(0, character=1010250, other_entity=1010250, radius=5.0, seconds=0.0)
|
|
Event_11015250(1, character=1010251, other_entity=1010250, radius=5.5, seconds=0.0)
|
|
Event_11015250(2, character=1010260, other_entity=1010260, radius=5.0, seconds=0.0)
|
|
Event_11015250(3, character=1010261, other_entity=1010260, radius=4.0, seconds=0.0)
|
|
Event_11015250(4, character=1010262, other_entity=1010260, radius=3.0, seconds=0.0)
|
|
Event_11015250(5, character=1010263, other_entity=1010260, radius=3.0, seconds=0.0)
|
|
Event_11010130(0, obj=1011250, character=1010150, region=1012150)
|
|
Event_11010130(1, obj=1011251, character=1010151, region=1012150)
|
|
Event_11010130(2, obj=1011252, character=1010152, region=1012150)
|
|
Event_11010130(3, obj=1011253, character=1010153, region=1012151)
|
|
Event_11010130(4, obj=1011254, character=1010154, region=1012151)
|
|
Event_11010130(5, obj=1011255, character=1010155, region=1012151)
|
|
Event_11010860(0, character=6580, left=0, item_lot=0)
|
|
Event_11010860(1, character=1010350, left=1, item_lot=27900000)
|
|
Event_11010860(2, character=1010351, left=1, item_lot=27900100)
|
|
Event_11010860(3, character=1010320, left=0, item_lot=0)
|
|
Event_11010860(4, character=1010340, left=0, item_lot=0)
|
|
Event_11010860(5, character=1010370, left=0, item_lot=0)
|
|
Event_11010860(6, character=6010, left=0, item_lot=0)
|
|
Event_11010400(2, obj=1011652, obj_1=1011502)
|
|
Event_11010400(3, obj=1011653, obj_1=1011503)
|
|
Event_11010400(4, obj=1011654, obj_1=1011504)
|
|
Event_11010650(0, obj=1011670, obj_act_id=11010650)
|
|
Event_11010650(1, obj=1011671, obj_act_id=11010651)
|
|
Event_11015846(0, flag=11010901, obj=1011890, vfx_id=1011891)
|
|
Event_11015843(0, flag=11010901, line_intersects=1011890, anchor_entity=1012898, target_entity=1012897)
|
|
Event_11015846(1, flag=11010902, obj=1011790, vfx_id=1011791)
|
|
Event_11015843(1, flag=11010902, line_intersects=1011790, anchor_entity=1012888, target_entity=1012887)
|
|
Event_11015846(2, flag=3, obj=1011990, vfx_id=1011991)
|
|
Event_11015843(2, flag=3, line_intersects=1011990, anchor_entity=1012998, target_entity=1012997)
|
|
|
|
|
|
@ContinueOnRest(50)
|
|
def Preconstructor():
|
|
"""Event 50"""
|
|
Event_11010583()
|
|
HumanityRegistration(6580, event_flag=8972)
|
|
HumanityRegistration(6540, event_flag=8310)
|
|
HumanityRegistration(6590, event_flag=8462)
|
|
Event_11015100()
|
|
Event_11015900()
|
|
Event_11015101()
|
|
Event_11015103()
|
|
Event_11015901()
|
|
Event_11015104()
|
|
Event_11015990(0, flag=11015102, summoned_character=6540)
|
|
Event_11015990(1, flag=11015105, summoned_character=6590)
|
|
Event_11015203()
|
|
HumanityRegistration(6001, event_flag=8310)
|
|
if FlagDisabled(1007):
|
|
if FlagDisabled(1004):
|
|
if FlagDisabled(1001):
|
|
if FlagDisabled(1000):
|
|
DisableCharacter(6001)
|
|
|
|
if FlagDisabled(11510594):
|
|
pass
|
|
else:
|
|
Move(6001, destination=1012530, destination_type=CoordEntityType.Region, set_draw_parent=1013050)
|
|
|
|
Event_11010510(0, character=6001, flag=1004)
|
|
Event_11010520(0, character=6001, first_flag=1000, last_flag=1029, flag=1005)
|
|
Event_11010530(0, character=6001, first_flag=1000, last_flag=1029, flag=1001)
|
|
Event_11010531(0, character=6001, first_flag=1000, last_flag=1029, flag=1007)
|
|
HumanityRegistration(6040, event_flag=8342)
|
|
if FlagRangeAnyEnabled((1112, 1113)):
|
|
DisableCharacter(6040)
|
|
|
|
Event_11010510(1, character=6040, flag=1114)
|
|
Event_11010520(1, character=6040, first_flag=1110, last_flag=1119, flag=1115)
|
|
Event_11010532(0, character=6040, first_flag=1110, last_flag=1119, flag=1111)
|
|
HumanityRegistration(6072, event_flag=8358)
|
|
if FlagDisabled(1175):
|
|
DisableCharacter(6072)
|
|
|
|
Event_11010533(0, character=6072, first_flag=1170, last_flag=1189, flag=1175)
|
|
Event_11010501(0, character=6072, flag=1179)
|
|
Event_11010535(0, character=6072, first_flag=1170, last_flag=1189, flag=1180)
|
|
Event_11010534(0, character=6072, first_flag=1170, last_flag=1189, flag=1181)
|
|
Event_11010537(0, character=6072, first_flag=1170, last_flag=1189, flag=1177)
|
|
Event_11010538()
|
|
Event_11010539()
|
|
Event_11010582()
|
|
Event_11010510(3, character=6190, flag=1321)
|
|
Event_11010520(3, character=6190, first_flag=1320, last_flag=1339, flag=1322)
|
|
Event_11015090(0, flag=1321, flag_1=1322, obj=1011010)
|
|
Event_11010510(4, character=6230, flag=1401)
|
|
Event_11010520(4, character=6230, first_flag=1400, last_flag=1409, flag=1402)
|
|
HumanityRegistration(6300, event_flag=8462)
|
|
if Host():
|
|
DisableFlag(11010584)
|
|
|
|
if FlagDisabled(11010584):
|
|
if FlagDisabled(1574):
|
|
if FlagDisabled(1570):
|
|
DisableCharacter(6300)
|
|
|
|
Event_11010510(6, character=6300, flag=1574)
|
|
Event_11010520(6, character=6300, first_flag=1570, last_flag=1599, flag=1575)
|
|
Event_11010550(0, character=6300, first_flag=1570, last_flag=1599, flag=1571)
|
|
Event_11010552(0, character=6300, first_flag=1570, last_flag=1599, flag=1577)
|
|
Event_11010551()
|
|
HumanityRegistration(6370, event_flag=8486)
|
|
if FlagDisabled(11010581):
|
|
DisableCharacter(6370)
|
|
|
|
Event_11010510(7, character=6370, flag=1701)
|
|
Event_11010520(7, character=6370, first_flag=1700, last_flag=1709, flag=1702)
|
|
Event_11010581(0, character=6370)
|
|
|
|
|
|
@ContinueOnRest(11010008)
|
|
def Event_11010008():
|
|
"""Event 11010008"""
|
|
RegisterBonfire(bonfire_flag=11010984, obj=1011961)
|
|
RegisterBonfire(bonfire_flag=11010976, obj=1011962)
|
|
RegisterBonfire(bonfire_flag=11010960, obj=1011964)
|
|
RegisterLadder(start_climbing_flag=11010010, stop_climbing_flag=11010011, obj=1011140)
|
|
RegisterLadder(start_climbing_flag=11010012, stop_climbing_flag=11010013, obj=1011141)
|
|
RegisterLadder(start_climbing_flag=11010014, stop_climbing_flag=11010015, obj=1011142)
|
|
RegisterLadder(start_climbing_flag=11010016, stop_climbing_flag=11010017, obj=1011143)
|
|
RegisterLadder(start_climbing_flag=11010018, stop_climbing_flag=11010019, obj=1011144)
|
|
RegisterLadder(start_climbing_flag=11010020, stop_climbing_flag=11010021, obj=1011145)
|
|
RegisterLadder(start_climbing_flag=11010022, stop_climbing_flag=11010023, obj=1011146)
|
|
RegisterLadder(start_climbing_flag=11010024, stop_climbing_flag=11010025, obj=1011147)
|
|
RegisterLadder(start_climbing_flag=11010026, stop_climbing_flag=11010027, obj=1011148)
|
|
RegisterLadder(start_climbing_flag=11010030, stop_climbing_flag=11010031, obj=1011150)
|
|
RegisterLadder(start_climbing_flag=11010032, stop_climbing_flag=11010033, obj=1011151)
|
|
RegisterLadder(start_climbing_flag=11010034, stop_climbing_flag=11010035, obj=1011152)
|
|
CreateHazard(
|
|
obj_flag=11010300,
|
|
obj=1011450,
|
|
dummy_id=200,
|
|
behavior_param_id=5000,
|
|
target_type=DamageTargetType.Character,
|
|
radius=1.2000000476837158,
|
|
life=0.0,
|
|
repetition_time=1.0,
|
|
)
|
|
CreateHazard(
|
|
obj_flag=11010308,
|
|
obj=1011407,
|
|
dummy_id=100,
|
|
behavior_param_id=5000,
|
|
target_type=DamageTargetType.Character,
|
|
radius=0.699999988079071,
|
|
life=0.0,
|
|
repetition_time=1.0,
|
|
)
|
|
CreateHazard(
|
|
obj_flag=11010309,
|
|
obj=1011408,
|
|
dummy_id=100,
|
|
behavior_param_id=5000,
|
|
target_type=DamageTargetType.Character,
|
|
radius=0.699999988079071,
|
|
life=0.0,
|
|
repetition_time=1.0,
|
|
)
|
|
|
|
|
|
@ContinueOnRest(11010090)
|
|
def Event_11010090(_, obj: Object | int, vfx_id: VFXEvent | int, destination: int, destination_1: int):
|
|
"""Event 11010090"""
|
|
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,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
line_intersects=obj,
|
|
))
|
|
AND_2.Add(ActionButton(
|
|
prompt_text=10010407,
|
|
anchor_entity=destination_1,
|
|
anchor_type=CoordEntityType.Region,
|
|
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(11015070)
|
|
def Event_11015070():
|
|
"""Event 11015070"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
DisableCharacter(1010900)
|
|
DisableCharacter(1010901)
|
|
DisableCharacter(1010902)
|
|
DisableCharacter(1010903)
|
|
DisableCharacter(1010904)
|
|
DisableCharacter(1010905)
|
|
DisableCharacter(1010906)
|
|
DisableCharacter(1010907)
|
|
DisableCharacter(1010908)
|
|
DisableCharacter(1010909)
|
|
DisableCharacter(1010910)
|
|
DisableCharacter(1010911)
|
|
DisableCharacter(1010912)
|
|
|
|
MAIN.Await(FlagEnabled(11010050))
|
|
|
|
if FlagEnabled(735):
|
|
return
|
|
|
|
EnableFlag(5000)
|
|
EnableCharacter(1010900)
|
|
EnableCharacter(1010901)
|
|
EnableCharacter(1010902)
|
|
EnableCharacter(1010903)
|
|
EnableCharacter(1010904)
|
|
EnableCharacter(1010905)
|
|
EnableCharacter(1010906)
|
|
EnableCharacter(1010907)
|
|
EnableCharacter(1010908)
|
|
EnableCharacter(1010909)
|
|
EnableCharacter(1010910)
|
|
EnableCharacter(1010911)
|
|
EnableCharacter(1010912)
|
|
|
|
|
|
@RestartOnRest(11015071)
|
|
def Event_11015071():
|
|
"""Event 11015071"""
|
|
OR_1.Add(FlagEnabled(11015075))
|
|
OR_1.Add(FlagEnabled(735))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if FlagEnabled(735):
|
|
DisableFlag(735)
|
|
|
|
DisableFlag(11010050)
|
|
DisableFlag(11015075)
|
|
EnableFlag(5001)
|
|
Kill(1010900)
|
|
Kill(1010901)
|
|
Kill(1010902)
|
|
Kill(1010903)
|
|
Kill(1010904)
|
|
Kill(1010905)
|
|
Kill(1010906)
|
|
Kill(1010907)
|
|
Kill(1010908)
|
|
Kill(1010909)
|
|
Kill(1010910)
|
|
Kill(1010911)
|
|
Kill(1010912)
|
|
|
|
|
|
@RestartOnRest(11015072)
|
|
def Event_11015072():
|
|
"""Event 11015072"""
|
|
if Client():
|
|
return
|
|
|
|
AND_1.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_1.Add(InsideMap(game_map=UNDEAD_BURG))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(FlagEnabled(11010050))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
WaitFrames(frames=1)
|
|
AND_2.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_2.Add(InsideMap(game_map=UNDEAD_BURG))
|
|
OR_2.Add(AND_2)
|
|
OR_2.Add(FlagEnabled(11010050))
|
|
if not OR_2:
|
|
return RESTART
|
|
|
|
WaitFrames(frames=1)
|
|
AND_3.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_3.Add(InsideMap(game_map=UNDEAD_BURG))
|
|
OR_3.Add(AND_3)
|
|
OR_3.Add(FlagEnabled(11010050))
|
|
if not OR_3:
|
|
return RESTART
|
|
|
|
WaitFrames(frames=1)
|
|
AND_4.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_4.Add(InsideMap(game_map=UNDEAD_BURG))
|
|
OR_4.Add(AND_4)
|
|
OR_4.Add(FlagEnabled(11010050))
|
|
if not OR_4:
|
|
return RESTART
|
|
|
|
WaitFrames(frames=1)
|
|
AND_5.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_5.Add(InsideMap(game_map=UNDEAD_BURG))
|
|
OR_5.Add(AND_5)
|
|
OR_5.Add(FlagEnabled(11010050))
|
|
if not OR_5:
|
|
return RESTART
|
|
|
|
WaitFrames(frames=1)
|
|
AND_6.Add(BlackWorldTendencyComparison(ComparisonType.GreaterThan, value=50))
|
|
AND_6.Add(InsideMap(game_map=UNDEAD_BURG))
|
|
OR_6.Add(AND_6)
|
|
OR_6.Add(FlagEnabled(11010050))
|
|
if not OR_6:
|
|
return RESTART
|
|
|
|
EnableFlag(11010050)
|
|
Wait(600.0)
|
|
AND_7.Add(BlackWorldTendencyComparison(ComparisonType.LessThanOrEqual, value=50))
|
|
AND_7.Add(InsideMap(game_map=UNDEAD_BURG))
|
|
if not AND_7:
|
|
return RESTART
|
|
|
|
DisableFlag(11010050)
|
|
EnableFlag(11015075)
|
|
|
|
|
|
@RestartOnRest(11010000)
|
|
def Event_11010000():
|
|
"""Event 11010000"""
|
|
if ThisEventFlagEnabled():
|
|
DisableCharacter(1010802)
|
|
return
|
|
|
|
DisableAI(1010802)
|
|
SetStandbyAnimationSettings(1010802, standby_animation=7000)
|
|
EnableInvincibility(1010802)
|
|
DisableHealthBar(1010802)
|
|
DisableCharacter(1010800)
|
|
AND_1.Add(FlagEnabled(11015390))
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012999))
|
|
|
|
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 Singleplayer():
|
|
PlayCutscene(100110, cutscene_flags=0, player_id=10000)
|
|
else:
|
|
PlayCutscene(100110, cutscene_flags=CutsceneFlags.Unskippable, player_id=10000)
|
|
|
|
WaitFrames(frames=1)
|
|
DisableCharacter(1010802)
|
|
EnableCharacter(1010800)
|
|
|
|
|
|
@ContinueOnRest(11015390)
|
|
def Event_11015390():
|
|
"""Event 11015390"""
|
|
AND_1.Add(FlagDisabled(3))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1012998,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
boss_version=True,
|
|
line_intersects=1011990,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1012997)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11015391)
|
|
def Event_11015391():
|
|
"""Event 11015391"""
|
|
AND_1.Add(FlagDisabled(3))
|
|
AND_1.Add(FlagEnabled(11015393))
|
|
AND_1.Add(CharacterIsWhitePhantom(PLAYER))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1012998,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
line_intersects=1011990,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1012997)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11015393)
|
|
def Event_11015393():
|
|
"""Event 11015393"""
|
|
if ThisEventFlagDisabled():
|
|
AND_1.Add(FlagDisabled(3))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012996))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
if Host():
|
|
NotifyBossBattleStart()
|
|
|
|
ActivateMultiplayerBuffs(1010800)
|
|
|
|
|
|
@RestartOnRest(11015392)
|
|
def Event_11015392():
|
|
"""Event 11015392"""
|
|
if FlagEnabled(3):
|
|
DisableCharacter(1010800)
|
|
DisableCharacter(1010801)
|
|
DisableCharacter(1010802)
|
|
DisableCharacter(1010810)
|
|
DisableCharacter(1010811)
|
|
Kill(1010800)
|
|
Kill(1010801)
|
|
Kill(1010802)
|
|
Kill(1010810)
|
|
Kill(1010811)
|
|
return
|
|
|
|
DisableAI(1010800)
|
|
AND_1.Add(FlagEnabled(11010000))
|
|
AND_1.Add(FlagEnabled(11015393))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012990))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableAI(1010800)
|
|
EnableBossHealthBar(1010800, name=5350)
|
|
|
|
|
|
@ContinueOnRest(11010001)
|
|
def Event_11010001():
|
|
"""Event 11010001"""
|
|
AND_1.Add(CharacterDead(1010800))
|
|
AND_2.Add(CharacterDead(1010801))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
AND_3.Add(CharacterDead(1010800))
|
|
AND_3.Add(CharacterDead(1010801))
|
|
|
|
MAIN.Await(AND_3)
|
|
|
|
EnableFlag(3)
|
|
if not LastResult(AND_1):
|
|
PlaySoundEffect(1010800, 777777777, sound_type=SoundType.s_SFX)
|
|
else:
|
|
PlaySoundEffect(1010801, 777777777, sound_type=SoundType.s_SFX)
|
|
|
|
KillBoss(game_area_param_id=1010800)
|
|
DisableObject(1011990)
|
|
DeleteVFX(1011991)
|
|
DisableObject(1011992)
|
|
DeleteVFX(1011993)
|
|
|
|
|
|
@ContinueOnRest(11015394)
|
|
def Event_11015394():
|
|
"""Event 11015394"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagDisabled(3))
|
|
AND_1.Add(FlagEnabled(11010000))
|
|
AND_1.Add(FlagEnabled(11015392))
|
|
if Client():
|
|
AND_1.Add(FlagEnabled(11015391))
|
|
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012990))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableSoundEvent(sound_id=1013801)
|
|
EnableSoundEvent(sound_id=1013800)
|
|
|
|
|
|
@ContinueOnRest(11015395)
|
|
def Event_11015395():
|
|
"""Event 11015395"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagEnabled(11015394))
|
|
AND_1.Add(FlagEnabled(3))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableSoundEvent(sound_id=1013800)
|
|
EnableSoundEvent(sound_id=1013801)
|
|
|
|
|
|
@RestartOnRest(11015396)
|
|
def Event_11015396():
|
|
"""Event 11015396"""
|
|
if FlagEnabled(3):
|
|
return
|
|
|
|
DisableAI(1010801)
|
|
SetStandbyAnimationSettings(1010801, standby_animation=7000)
|
|
EnableInvincibility(1010801)
|
|
DisableHealthBar(1010801)
|
|
|
|
MAIN.Await(HealthRatio(1010800) <= 0.6000000238418579)
|
|
|
|
ResetStandbyAnimationSettings(1010801)
|
|
Move(1010801, destination=1012650, destination_type=CoordEntityType.Region, short_move=True)
|
|
ForceAnimation(1010801, 7001, wait_for_completion=True)
|
|
DisableInvincibility(1010801)
|
|
EnableAI(1010801)
|
|
EnableBossHealthBar(1010801, name=5350, bar_slot=1)
|
|
|
|
|
|
@RestartOnRest(11015397)
|
|
def Event_11015397(_, character: int, npc_part_id: short, npc_part_id_1: int, character_1: int):
|
|
"""Event 11015397"""
|
|
DisableCharacter(character_1)
|
|
if ThisEventSlotFlagEnabled():
|
|
SetDisplayMask(character, bit_index=0, switch_type=OnOffChange.On)
|
|
SetCollisionMask(character, bit_index=1, switch_type=OnOffChange.Off)
|
|
AddSpecialEffect(character, 5434)
|
|
AICommand(character, command_id=20, command_slot=0)
|
|
return
|
|
|
|
AND_1.Add(FlagEnabled(11015392))
|
|
AND_1.Add(CharacterBackreadEnabled(character))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
CreateNPCPart(character, npc_part_id=npc_part_id, part_index=NPCPartType.Part1, part_health=65)
|
|
AND_2.Add(CharacterPartHealth(character, npc_part_id=npc_part_id_1) <= 0)
|
|
AND_3.Add(HealthRatio(character) <= 0.0)
|
|
OR_1.Add(AND_2)
|
|
OR_1.Add(AND_3)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_3):
|
|
return
|
|
|
|
Move(
|
|
character_1,
|
|
destination=character,
|
|
destination_type=CoordEntityType.Character,
|
|
dummy_id=130,
|
|
copy_draw_parent=character,
|
|
)
|
|
EnableCharacter(character_1)
|
|
ResetAnimation(character)
|
|
ForceAnimation(character, 8000)
|
|
ForceAnimation(character_1, 8100)
|
|
SetDisplayMask(character, bit_index=0, switch_type=OnOffChange.On)
|
|
SetCollisionMask(character, bit_index=1, switch_type=OnOffChange.Off)
|
|
AddSpecialEffect(character, 5434)
|
|
AICommand(character, command_id=20, command_slot=0)
|
|
ReplanAI(character)
|
|
OR_7.Add(CharacterIsHuman(PLAYER))
|
|
OR_7.Add(CharacterIsHollow(PLAYER))
|
|
if not OR_7:
|
|
return
|
|
|
|
AwardItemLot(53520000, host_only=True)
|
|
|
|
|
|
@RestartOnRest(11015398)
|
|
def Event_11015398(_, character: Character | int, character_1: Character | int):
|
|
"""Event 11015398"""
|
|
DisableCharacter(character_1)
|
|
|
|
MAIN.Await(CharacterBackreadEnabled(character))
|
|
|
|
SetCollisionMask(character, bit_index=1, switch_type=OnOffChange.Off)
|
|
SetCollisionMask(character, bit_index=2, switch_type=OnOffChange.Off)
|
|
|
|
|
|
@ContinueOnRest(11010750)
|
|
def Event_11010750(_, character: Character | int, item_lot: int):
|
|
"""Event 11010750"""
|
|
AND_1.Add(FlagDisabled(3))
|
|
AND_1.Add(CharacterAlive(character))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
MAIN.Await(CharacterDead(character))
|
|
|
|
OR_7.Add(CharacterIsHuman(PLAYER))
|
|
OR_7.Add(CharacterIsHollow(PLAYER))
|
|
if not OR_7:
|
|
return
|
|
|
|
AwardItemLot(item_lot, host_only=True)
|
|
|
|
|
|
@ContinueOnRest(11015380)
|
|
def Event_11015380():
|
|
"""Event 11015380"""
|
|
AND_1.Add(FlagDisabled(11010901))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1012898,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
boss_version=True,
|
|
line_intersects=1011890,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1012897)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11015381)
|
|
def Event_11015381():
|
|
"""Event 11015381"""
|
|
AND_1.Add(FlagDisabled(11010901))
|
|
AND_1.Add(FlagEnabled(11015383))
|
|
AND_1.Add(CharacterIsWhitePhantom(PLAYER))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1012898,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
line_intersects=1011890,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1012897)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11015383)
|
|
def Event_11015383():
|
|
"""Event 11015383"""
|
|
if ThisEventFlagDisabled():
|
|
AND_1.Add(FlagDisabled(11010901))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012896))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
if Host():
|
|
NotifyBossBattleStart()
|
|
SetNetworkUpdateAuthority(1010700, authority_level=UpdateAuthority.Forced)
|
|
|
|
ActivateMultiplayerBuffs(1010700)
|
|
|
|
|
|
@RestartOnRest(11015382)
|
|
def Event_11015382():
|
|
"""Event 11015382"""
|
|
if ThisEventFlagEnabled():
|
|
ResetStandbyAnimationSettings(1010700)
|
|
return
|
|
|
|
DisableAI(1010700)
|
|
SetStandbyAnimationSettings(1010700, standby_animation=9001)
|
|
DisableHealthBar(1010700)
|
|
AND_1.Add(Attacked(attacked_entity=1010700, attacker=PLAYER))
|
|
AND_2.Add(Host())
|
|
AND_2.Add(CharacterInsideRegion(PLAYER, region=1012701))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
EnableFlag(11010005)
|
|
ResetStandbyAnimationSettings(1010700)
|
|
ForceAnimation(1010700, 9061, wait_for_completion=True)
|
|
EnableAI(1010700)
|
|
|
|
|
|
@ContinueOnRest(11015384)
|
|
def Event_11015384():
|
|
"""Event 11015384"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagDisabled(11010901))
|
|
AND_1.Add(FlagEnabled(11015382))
|
|
if Client():
|
|
AND_1.Add(FlagEnabled(11015381))
|
|
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012890))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableBossHealthBar(1010700, name=2250)
|
|
EnableSoundEvent(sound_id=1013802)
|
|
|
|
|
|
@ContinueOnRest(11015385)
|
|
def Event_11015385():
|
|
"""Event 11015385"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagEnabled(11015384))
|
|
AND_1.Add(FlagEnabled(11010901))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableBossHealthBar(1010700, name=2250)
|
|
DisableSoundEvent(sound_id=1013802)
|
|
|
|
|
|
@ContinueOnRest(11015386)
|
|
def Event_11015386():
|
|
"""Event 11015386"""
|
|
if Client():
|
|
return
|
|
|
|
AND_1.Add(CharacterHasTAEEvent(1010700, tae_event_id=700))
|
|
AND_2.Add(CharacterHasTAEEvent(1010700, tae_event_id=710))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if not LastResult(AND_2):
|
|
Move(1010700, destination=1012741, destination_type=CoordEntityType.Region, short_move=True)
|
|
else:
|
|
Move(1010700, destination=1012740, destination_type=CoordEntityType.Region, short_move=True)
|
|
|
|
return RESTART
|
|
|
|
|
|
@RestartOnRest(11010901)
|
|
def Event_11010901():
|
|
"""Event 11010901"""
|
|
if ThisEventFlagEnabled():
|
|
DisableCharacter(1010700)
|
|
Kill(1010700)
|
|
return
|
|
|
|
MAIN.Await(HealthRatio(1010700) <= 0.0)
|
|
|
|
Wait(1.0)
|
|
PlaySoundEffect(1010700, 777777777, sound_type=SoundType.s_SFX)
|
|
|
|
MAIN.Await(CharacterDead(1010700))
|
|
|
|
EnableFlag(11010901)
|
|
KillBoss(game_area_param_id=1010700)
|
|
DisableObject(1011890)
|
|
DeleteVFX(1011891)
|
|
DisableObject(1011892)
|
|
DeleteVFX(1011893)
|
|
|
|
|
|
@ContinueOnRest(11015370)
|
|
def Event_11015370():
|
|
"""Event 11015370"""
|
|
AND_1.Add(FlagDisabled(11010902))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1012888,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.Human | TriggerAttribute.Hollow,
|
|
boss_version=True,
|
|
line_intersects=1011790,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1012887)
|
|
ForceAnimation(PLAYER, 7410, wait_for_completion=True)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11015371)
|
|
def Event_11015371():
|
|
"""Event 11015371"""
|
|
AND_1.Add(FlagDisabled(11010902))
|
|
AND_1.Add(FlagEnabled(11015373))
|
|
AND_1.Add(CharacterIsWhitePhantom(PLAYER))
|
|
AND_1.Add(ActionButton(
|
|
prompt_text=10010403,
|
|
anchor_entity=1012888,
|
|
anchor_type=CoordEntityType.Region,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
line_intersects=1011790,
|
|
))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
FaceEntity(PLAYER, target_entity=1012887)
|
|
ForceAnimation(PLAYER, 7410)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11015373)
|
|
def Event_11015373():
|
|
"""Event 11015373"""
|
|
if ThisEventFlagDisabled():
|
|
AND_1.Add(FlagDisabled(11010902))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012886))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
if Host():
|
|
NotifyBossBattleStart()
|
|
|
|
ActivateMultiplayerBuffs(1010750)
|
|
EnableFlag(11010597)
|
|
|
|
|
|
@RestartOnRest(11015372)
|
|
def Event_11015372():
|
|
"""Event 11015372"""
|
|
if ThisEventFlagDisabled():
|
|
DisableAI(1010750)
|
|
AND_1.Add(FlagEnabled(11015373))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012880))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableAI(1010750)
|
|
|
|
EnableBossHealthBar(1010750, name=2240)
|
|
|
|
|
|
@ContinueOnRest(11015374)
|
|
def Event_11015374():
|
|
"""Event 11015374"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagDisabled(11010902))
|
|
AND_1.Add(FlagEnabled(11015372))
|
|
if Client():
|
|
AND_1.Add(FlagEnabled(11015371))
|
|
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012880))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableSoundEvent(sound_id=1013803)
|
|
|
|
|
|
@ContinueOnRest(11015375)
|
|
def Event_11015375():
|
|
"""Event 11015375"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagEnabled(11015374))
|
|
AND_1.Add(FlagEnabled(11010902))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableSoundEvent(sound_id=1013803)
|
|
|
|
|
|
@RestartOnRest(11010902)
|
|
def Event_11010902():
|
|
"""Event 11010902"""
|
|
if ThisEventFlagEnabled():
|
|
DisableCharacter(1010750)
|
|
DisableCharacter(1010500)
|
|
DisableCharacter(1010501)
|
|
Kill(1010750)
|
|
Kill(1010500)
|
|
Kill(1010501)
|
|
return
|
|
|
|
DisableCharacter(1010510)
|
|
DisableCharacter(1010511)
|
|
Kill(1010510)
|
|
Kill(1010511)
|
|
|
|
MAIN.Await(HealthRatio(1010750) <= 0.0)
|
|
|
|
Wait(1.0)
|
|
PlaySoundEffect(1010750, 777777777, sound_type=SoundType.s_SFX)
|
|
|
|
MAIN.Await(CharacterDead(1010750))
|
|
|
|
EnableFlag(11010902)
|
|
KillBoss(game_area_param_id=1010750)
|
|
DisableObject(1011790)
|
|
DeleteVFX(1011791)
|
|
|
|
|
|
@RestartOnRest(11010903)
|
|
def Event_11010903():
|
|
"""Event 11010903"""
|
|
if ThisEventFlagEnabled():
|
|
DisableCharacter(1010310)
|
|
return
|
|
|
|
MAIN.Await(CharacterDead(1010310))
|
|
|
|
EnableFlag(11010903)
|
|
|
|
|
|
@RestartOnRest(11015110)
|
|
def Event_11015110():
|
|
"""Event 11015110"""
|
|
if ThisEventFlagEnabled():
|
|
PostDestruction(1011103)
|
|
return
|
|
|
|
DisableAI(1010102)
|
|
AND_1.Add(EntityWithinDistance(entity=PLAYER, other_entity=1010102, radius=5.0))
|
|
AND_2.Add(ObjectDestroyed(1011103))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if not LastResult(AND_2):
|
|
ForceAnimation(1010102, 3000, wait_for_completion=True)
|
|
|
|
EnableAI(1010102)
|
|
|
|
|
|
@RestartOnRest(11015111)
|
|
def Event_11015111():
|
|
"""Event 11015111"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
DisableAI(1010110)
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012110))
|
|
AND_2.Add(Attacked(attacked_entity=1010110, attacker=PLAYER))
|
|
AND_3.Add(EntityWithinDistance(entity=1010110, other_entity=PLAYER, radius=2.0))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
OR_1.Add(AND_3)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_1):
|
|
ForceAnimation(1010110, 13005, wait_for_completion=True)
|
|
|
|
EnableAI(1010110)
|
|
|
|
|
|
@RestartOnRest(11015113)
|
|
def Event_11015113():
|
|
"""Event 11015113"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
DisableAI(1010200)
|
|
OR_1.Add(CharacterInsideRegion(PLAYER, region=1012050))
|
|
OR_1.Add(Attacked(attacked_entity=1010200, attacker=PLAYER))
|
|
OR_1.Add(EntityWithinDistance(entity=1010200, other_entity=PLAYER, radius=5.0))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
EnableAI(1010200)
|
|
|
|
|
|
@RestartOnRest(11015112)
|
|
def Event_11015112():
|
|
"""Event 11015112"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
DisableAI(1010111)
|
|
OR_3.Add(Attacked(attacked_entity=1010111, attacker=PLAYER))
|
|
OR_3.Add(CharacterInsideRegion(PLAYER, region=1012122))
|
|
AND_1.Add(OR_3)
|
|
AND_2.Add(CharacterInsideRegion(PLAYER, region=1012121))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
EnableAI(1010111)
|
|
if LastResult(AND_1):
|
|
return
|
|
|
|
SetNest(1010111, region=1012120)
|
|
AICommand(1010111, command_id=10, command_slot=0)
|
|
ReplanAI(1010111)
|
|
OR_2.Add(CharacterInsideRegion(PLAYER, region=1012122))
|
|
OR_2.Add(Attacked(attacked_entity=1010111, attacker=PLAYER))
|
|
|
|
MAIN.Await(OR_2)
|
|
|
|
AICommand(1010111, command_id=-1, command_slot=0)
|
|
ReplanAI(1010111)
|
|
|
|
|
|
@RestartOnRest(11015130)
|
|
def Event_11015130():
|
|
"""Event 11015130"""
|
|
DisableCharacter(1010400)
|
|
if FlagEnabled(11010710):
|
|
return
|
|
|
|
MAIN.Await(ObjectDestroyed(1011000))
|
|
|
|
EnableCharacter(1010400)
|
|
if FlagDisabled(11015130):
|
|
ForceAnimation(1010400, 500, wait_for_completion=True)
|
|
ForceAnimation(1010400, 500, wait_for_completion=True)
|
|
ForceAnimation(1010400, 500, wait_for_completion=True)
|
|
ForceAnimation(1010400, 500, wait_for_completion=True)
|
|
|
|
SetNest(1010400, region=1012060)
|
|
AICommand(1010400, command_id=10, command_slot=0)
|
|
ReplanAI(1010400)
|
|
EnableFlag(11015130)
|
|
|
|
MAIN.Await(CharacterInsideRegion(1010400, region=1012060))
|
|
|
|
AICommand(1010400, command_id=-1, command_slot=0)
|
|
ReplanAI(1010400)
|
|
|
|
|
|
@RestartOnRest(11010710)
|
|
def Event_11010710():
|
|
"""Event 11010710"""
|
|
DisableCharacter(1010400)
|
|
if FlagEnabled(11010710):
|
|
return
|
|
|
|
MAIN.Await(CharacterDead(1010400))
|
|
|
|
OR_7.Add(CharacterIsHuman(PLAYER))
|
|
OR_7.Add(CharacterIsHollow(PLAYER))
|
|
if not OR_7:
|
|
return
|
|
|
|
AwardItemLot(33006000, host_only=True)
|
|
|
|
|
|
@RestartOnRest(11010111)
|
|
def Event_11010111():
|
|
"""Event 11010111"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
DisableAI(1010130)
|
|
AND_1.Add(Attacked(attacked_entity=1010130, attacker=PLAYER))
|
|
AND_2.Add(CharacterInsideRegion(PLAYER, region=1012170))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
EnableFlag(11010111)
|
|
EnableAI(1010130)
|
|
if LastResult(AND_1):
|
|
return
|
|
|
|
DisableObjectActivation(1011318, obj_act_id=-1, relative_index=0)
|
|
DisableObjectActivation(1011318, obj_act_id=-1, relative_index=1)
|
|
DisableObjectActivation(1011318, obj_act_id=-1, relative_index=2)
|
|
DisableObjectActivation(1011318, obj_act_id=-1, relative_index=3)
|
|
Move(1010130, destination=1012171, destination_type=CoordEntityType.Region, short_move=True)
|
|
ForceAnimation(1010130, 7000)
|
|
Wait(0.20000000298023224)
|
|
ForceAnimation(1011318, 2, wait_for_completion=True)
|
|
EnableFlag(61010518)
|
|
DisableNetworkSync()
|
|
Wait(4.0)
|
|
DisableObjectActivation(1011318, obj_act_id=1318, relative_index=0)
|
|
DisableObjectActivation(1011318, obj_act_id=1318, relative_index=1)
|
|
EnableObjectActivation(1011318, obj_act_id=1318, relative_index=2)
|
|
EnableObjectActivation(1011318, obj_act_id=1318, relative_index=3)
|
|
|
|
|
|
@RestartOnRest(11010120)
|
|
def Event_11010120():
|
|
"""Event 11010120"""
|
|
if ThisEventFlagEnabled():
|
|
EndOfAnimation(obj=1011102, animation_id=0)
|
|
return
|
|
|
|
DisableAI(1010103)
|
|
OR_1.Add(Attacked(attacked_entity=1010103, attacker=PLAYER))
|
|
OR_1.Add(CharacterInsideRegion(PLAYER, region=1012101))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
DisableNetworkSync()
|
|
ResetAnimation(1010103)
|
|
ForceAnimation(1010103, 3006)
|
|
Wait(0.5)
|
|
CreateObjectVFX(1011102, vfx_id=1, dummy_id=100100)
|
|
ForceAnimation(1011102, 0)
|
|
Wait(0.5)
|
|
EnableAI(1010103)
|
|
CreateHazard(
|
|
obj_flag=11010121,
|
|
obj=1011102,
|
|
dummy_id=1,
|
|
behavior_param_id=5020,
|
|
target_type=DamageTargetType.Character,
|
|
radius=0.6000000238418579,
|
|
life=3.0,
|
|
repetition_time=0.0,
|
|
)
|
|
Wait(3.0)
|
|
DeleteObjectVFX(1011102)
|
|
|
|
|
|
@ContinueOnRest(11010101)
|
|
def Event_11010101(_, obj: int, animation_id: int, dummy_id: short, dummy_id_1: int, animation_id_1: int):
|
|
"""Event 11010101"""
|
|
if ThisEventSlotFlagEnabled():
|
|
EndOfAnimation(obj=obj, animation_id=animation_id)
|
|
return
|
|
|
|
MAIN.Await(ActionButton(
|
|
prompt_text=10010400,
|
|
anchor_entity=obj,
|
|
anchor_type=CoordEntityType.Object,
|
|
facing_angle=60.0,
|
|
max_distance=1.5,
|
|
dummy_id=dummy_id,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
))
|
|
|
|
Move(PLAYER, destination=obj, destination_type=CoordEntityType.Object, dummy_id=dummy_id_1, short_move=True)
|
|
ForceAnimation(PLAYER, animation_id_1)
|
|
ForceAnimation(obj, animation_id)
|
|
|
|
|
|
@ContinueOnRest(11010102)
|
|
def Event_11010102(_, flag: Flag | int, anchor_entity: int, dummy_id: short):
|
|
"""Event 11010102"""
|
|
DisableNetworkSync()
|
|
OR_1.Add(FlagEnabled(flag))
|
|
OR_1.Add(ActionButton(
|
|
prompt_text=10010400,
|
|
anchor_entity=anchor_entity,
|
|
anchor_type=CoordEntityType.Object,
|
|
facing_angle=60.0,
|
|
max_distance=1.5,
|
|
dummy_id=dummy_id,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if FlagEnabled(flag):
|
|
return
|
|
|
|
DisplayDialog(text=10010161, anchor_entity=anchor_entity, button_type=ButtonType.Yes_or_No)
|
|
return RESTART
|
|
|
|
|
|
@RestartOnRest(11010125)
|
|
def Event_11010125():
|
|
"""Event 11010125"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
DisableCharacter(1010104)
|
|
Move(1010104, destination=1012130, destination_type=CoordEntityType.Region, short_move=True)
|
|
|
|
MAIN.Await(ThisEventFlagEnabled())
|
|
|
|
EnableCharacter(1010104)
|
|
|
|
|
|
@RestartOnRest(11010126)
|
|
def Event_11010126():
|
|
"""Event 11010126"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
MAIN.Await(FlagEnabled(51010030))
|
|
|
|
EnableFlag(11010125)
|
|
|
|
|
|
@RestartOnRest(11010130)
|
|
def Event_11010130(_, obj: int, character: int, region: Region | int):
|
|
"""Event 11010130"""
|
|
if ThisEventSlotFlagEnabled():
|
|
EndOfAnimation(obj=obj, animation_id=2)
|
|
return
|
|
|
|
DisableAI(character)
|
|
|
|
MAIN.Await(CharacterInsideRegion(PLAYER, region=region))
|
|
|
|
WaitRandomSeconds(min_seconds=0.0, max_seconds=1.0)
|
|
ForceAnimation(character, 7001)
|
|
EnableAI(character)
|
|
Wait(0.10000000149011612)
|
|
ForceAnimation(obj, 2)
|
|
|
|
|
|
@ContinueOnRest(11010150)
|
|
def Event_11010150(_, flag: Flag | int, region: Region | int, region_1: Region | int):
|
|
"""Event 11010150"""
|
|
DisableNetworkSync()
|
|
if FlagDisabled(flag):
|
|
MAIN.Await(CharacterInsideRegion(PLAYER, region=region))
|
|
|
|
AddSpecialEffect(PLAYER, 4150)
|
|
Wait(3.0)
|
|
return RESTART
|
|
|
|
OR_1.Add(CharacterInsideRegion(PLAYER, region=region))
|
|
OR_1.Add(CharacterInsideRegion(PLAYER, region=region_1))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
AddSpecialEffect(PLAYER, 4150)
|
|
Wait(3.0)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010160)
|
|
def Event_11010160(_, obj_act_id: Flag | int, obj: Object | int):
|
|
"""Event 11010160"""
|
|
if ThisEventSlotFlagEnabled():
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=0)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=1)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=2)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=3)
|
|
return
|
|
|
|
MAIN.Await(ObjectActivated(obj_act_id=obj_act_id))
|
|
|
|
EnableFlag(obj_act_id)
|
|
Wait(2.0)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=0)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=1)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=2)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=3)
|
|
|
|
|
|
@ContinueOnRest(11010180)
|
|
def Event_11010180(_, obj_act_id: int, text: EventText | int, anchor_entity: int):
|
|
"""Event 11010180"""
|
|
if ThisEventSlotFlagEnabled():
|
|
return
|
|
|
|
MAIN.Await(ObjectActivated(obj_act_id=obj_act_id))
|
|
|
|
if Client():
|
|
return
|
|
|
|
DisplayDialog(text=text, anchor_entity=anchor_entity, button_type=ButtonType.Yes_or_No)
|
|
|
|
|
|
@ContinueOnRest(11010170)
|
|
def Event_11010170(_, obj_act_id: Flag | int, text: EventText | int, obj: int):
|
|
"""Event 11010170"""
|
|
if ThisEventSlotFlagEnabled():
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=0)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=1)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=2)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=3)
|
|
return
|
|
|
|
MAIN.Await(ObjectActivated(obj_act_id=obj_act_id))
|
|
|
|
EnableFlag(obj_act_id)
|
|
if Client():
|
|
return
|
|
|
|
DisplayDialog(text=text, anchor_entity=obj, button_type=ButtonType.Yes_or_No)
|
|
Wait(2.0)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=0)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=1)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=2)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=3)
|
|
|
|
|
|
@ContinueOnRest(11010140)
|
|
def Event_11010140(
|
|
_,
|
|
obj_act_id: int,
|
|
text: EventText | int,
|
|
anchor_entity: int,
|
|
text_1: EventText | int,
|
|
item: BaseItemParam | int,
|
|
):
|
|
"""Event 11010140"""
|
|
if ThisEventSlotFlagEnabled():
|
|
return
|
|
|
|
MAIN.Await(ObjectActivated(obj_act_id=obj_act_id))
|
|
|
|
if Client():
|
|
return
|
|
|
|
AND_1.Add(PlayerHasGood(item))
|
|
if not AND_1:
|
|
DisplayDialog(text=text_1, anchor_entity=anchor_entity, button_type=ButtonType.Yes_or_No)
|
|
else:
|
|
DisplayDialog(text=text, anchor_entity=anchor_entity, button_type=ButtonType.Yes_or_No)
|
|
|
|
|
|
@ContinueOnRest(11010190)
|
|
def Event_11010190(
|
|
_,
|
|
obj_act_id: Flag | int,
|
|
text: EventText | int,
|
|
obj: int,
|
|
text_1: EventText | int,
|
|
item: BaseItemParam | int,
|
|
):
|
|
"""Event 11010190"""
|
|
if ThisEventSlotFlagEnabled():
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=0)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=1)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=2)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=3)
|
|
return
|
|
|
|
MAIN.Await(ObjectActivated(obj_act_id=obj_act_id))
|
|
|
|
EnableFlag(obj_act_id)
|
|
if Client():
|
|
return
|
|
|
|
AND_1.Add(PlayerHasGood(item))
|
|
if not AND_1:
|
|
DisplayDialog(text=text_1, anchor_entity=obj, button_type=ButtonType.Yes_or_No)
|
|
else:
|
|
DisplayDialog(text=text, anchor_entity=obj, button_type=ButtonType.Yes_or_No)
|
|
|
|
Wait(2.0)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=0)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=1)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=2)
|
|
DisableObjectActivation(obj, obj_act_id=-1, relative_index=3)
|
|
|
|
|
|
@ContinueOnRest(11010100)
|
|
def Event_11010100():
|
|
"""Event 11010100"""
|
|
if ThisEventFlagEnabled():
|
|
EndOfAnimation(obj=1011149, animation_id=0)
|
|
RegisterLadder(start_climbing_flag=11010028, stop_climbing_flag=11010029, obj=1011149)
|
|
return
|
|
|
|
MAIN.Await(ActionButton(
|
|
prompt_text=10010500,
|
|
anchor_entity=1011149,
|
|
anchor_type=CoordEntityType.Object,
|
|
facing_angle=60.0,
|
|
max_distance=1.5,
|
|
dummy_id=194,
|
|
trigger_attribute=TriggerAttribute.All,
|
|
))
|
|
|
|
EnableFlag(11010100)
|
|
Move(PLAYER, destination=1011149, destination_type=CoordEntityType.Object, dummy_id=192, short_move=True)
|
|
ForceAnimation(PLAYER, 8005)
|
|
Wait(0.5)
|
|
ForceAnimation(1011149, 0, wait_for_completion=True)
|
|
RegisterLadder(start_climbing_flag=11010028, stop_climbing_flag=11010029, obj=1011149)
|
|
|
|
|
|
@ContinueOnRest(11010400)
|
|
def Event_11010400(_, obj: int, obj_1: Object | int):
|
|
"""Event 11010400"""
|
|
if ThisEventSlotFlagEnabled():
|
|
EndOfAnimation(obj=obj, animation_id=101)
|
|
EnableTreasure(obj=obj)
|
|
return
|
|
|
|
DisableTreasure(obj=obj)
|
|
ForceAnimation(obj, 100, loop=True)
|
|
|
|
MAIN.Await(ObjectDestroyed(obj_1))
|
|
|
|
ForceAnimation(obj, 101, wait_for_completion=True)
|
|
EnableTreasure(obj=obj)
|
|
|
|
|
|
@RestartOnRest(11015250)
|
|
def Event_11015250(_, character: Character | int, other_entity: int, radius: float, seconds: float):
|
|
"""Event 11015250"""
|
|
if ThisEventSlotFlagEnabled():
|
|
ResetStandbyAnimationSettings(character)
|
|
return
|
|
|
|
DisableCharacterCollision(character)
|
|
|
|
MAIN.Await(EntityWithinDistance(entity=PLAYER, other_entity=other_entity, radius=radius))
|
|
|
|
DisableNetworkSync()
|
|
Wait(seconds)
|
|
EnableCharacterCollision(character)
|
|
SetStandbyAnimationSettings(character, cancel_animation=9060)
|
|
|
|
|
|
@ContinueOnRest(11015185)
|
|
def Event_11015185():
|
|
"""Event 11015185"""
|
|
AND_1.Add(FlagEnabled(61010610))
|
|
AND_1.Add(ObjectActivated(obj_act_id=11010600))
|
|
AND_2.Add(FlagDisabled(61010610))
|
|
AND_2.Add(ObjectActivated(obj_act_id=11010600))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
EnableFlag(11015180)
|
|
if not LastResult(AND_2):
|
|
EnableFlag(11015181)
|
|
return RESTART
|
|
|
|
EnableFlag(11015182)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010611)
|
|
def Event_11010611():
|
|
"""Event 11010611"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FramesElapsed(frames=10))
|
|
AND_1.Add(InsideMap(game_map=UNDEAD_BURG))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableObjectActivation(1011100, obj_act_id=-1)
|
|
|
|
|
|
@ContinueOnRest(11010600)
|
|
def Event_11010600():
|
|
"""Event 11010600"""
|
|
AND_1.Add(FlagEnabled(11015181))
|
|
AND_1.Add(Host())
|
|
AND_2.Add(FlagEnabled(11015182))
|
|
AND_2.Add(Host())
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
DisableFlag(11015180)
|
|
DisableFlag(11015181)
|
|
DisableFlag(11015182)
|
|
if not LastResult(AND_2):
|
|
if FlagDisabled(61010610):
|
|
Event_11010611()
|
|
return RESTART
|
|
|
|
AddNavmeshFaceFlag(navmesh_id=1013100, navmesh_type=NavmeshFlag.Disable)
|
|
EnableFlag(11010605)
|
|
ForceAnimation(1011101, 2)
|
|
WaitFrames(frames=60)
|
|
Event_11010611()
|
|
return RESTART
|
|
|
|
if FlagEnabled(61010610):
|
|
Event_11010611()
|
|
return RESTART
|
|
|
|
RemoveNavmeshFaceFlag(navmesh_id=1013100, navmesh_type=NavmeshFlag.Disable)
|
|
ForceAnimation(1011101, 4)
|
|
WaitFrames(frames=200)
|
|
Event_11010611()
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010601)
|
|
def Event_11010601():
|
|
"""Event 11010601"""
|
|
MAIN.Await(FlagEnabled(11010605))
|
|
|
|
DisableFlag(11010605)
|
|
Wait(0.5)
|
|
CreateHazard(
|
|
obj_flag=11010602,
|
|
obj=1011101,
|
|
dummy_id=42,
|
|
behavior_param_id=5010,
|
|
target_type=DamageTargetType.Character,
|
|
radius=0.6000000238418579,
|
|
life=0.5,
|
|
repetition_time=0.0,
|
|
)
|
|
CreateHazard(
|
|
obj_flag=11010603,
|
|
obj=1011101,
|
|
dummy_id=43,
|
|
behavior_param_id=5010,
|
|
target_type=DamageTargetType.Character,
|
|
radius=0.6000000238418579,
|
|
life=0.5,
|
|
repetition_time=0.0,
|
|
)
|
|
CreateHazard(
|
|
obj_flag=11010604,
|
|
obj=1011101,
|
|
dummy_id=44,
|
|
behavior_param_id=5010,
|
|
target_type=DamageTargetType.Character,
|
|
radius=0.6000000238418579,
|
|
life=0.5,
|
|
repetition_time=0.0,
|
|
)
|
|
return RESTART
|
|
|
|
|
|
@RestartOnRest(11015116)
|
|
def Event_11015116():
|
|
"""Event 11015116"""
|
|
AND_1.Add(FlagDisabled(61010610))
|
|
AND_1.Add(FlagDisabled(11010607))
|
|
AND_1.Add(FlagDisabled(11010600))
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012200))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableFlag(11015115)
|
|
OR_1.Add(FlagEnabled(11015181))
|
|
OR_1.Add(FlagEnabled(61010610))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
DisableFlag(11015115)
|
|
|
|
|
|
@RestartOnRest(11010609)
|
|
def Event_11010609():
|
|
"""Event 11010609"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagEnabled(11015115))
|
|
AND_1.Add(FlagDisabled(61010610))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
ActivateObject(1011100, obj_act_id=-1, relative_index=-1)
|
|
Wait(1.0)
|
|
return RESTART
|
|
|
|
|
|
@RestartOnRest(11010607)
|
|
def Event_11010607():
|
|
"""Event 11010607"""
|
|
if ThisEventFlagEnabled():
|
|
Move(6010, destination=1012201, destination_type=CoordEntityType.Region, short_move=True)
|
|
SetNest(6010, region=1012201)
|
|
return
|
|
|
|
AND_1.Add(CharacterInsideRegion(6010, region=1012771))
|
|
AND_1.Add(EntityWithinDistance(entity=6010, other_entity=1011100, radius=3.0))
|
|
AND_1.Add(FlagEnabled(11015181))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
SetNest(6010, region=1012201)
|
|
ClearTargetList(6010)
|
|
ReplanAI(6010)
|
|
|
|
|
|
@RestartOnRest(11010608)
|
|
def Event_11010608():
|
|
"""Event 11010608"""
|
|
AND_1.Add(FlagEnabled(61010610))
|
|
AND_1.Add(CharacterBackreadEnabled(1010310))
|
|
AND_1.Add(CharacterInsideRegion(1010310, region=1012771))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
AICommand(1010310, command_id=1, command_slot=0)
|
|
SetNest(1010310, region=1012773)
|
|
|
|
MAIN.Await(FlagDisabled(61010610))
|
|
|
|
AICommand(1010310, command_id=-1, command_slot=0)
|
|
SetNest(1010310, region=1012772)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010621)
|
|
def Event_11010621():
|
|
"""Event 11010621"""
|
|
if ThisEventFlagEnabled():
|
|
EndOfAnimation(obj=1011121, animation_id=4)
|
|
DisableObjectActivation(1011120, obj_act_id=-1)
|
|
return
|
|
|
|
EndOfAnimation(obj=1011121, animation_id=3)
|
|
|
|
MAIN.Await(ObjectActivated(obj_act_id=11010620))
|
|
|
|
ForceAnimation(1011121, 4)
|
|
|
|
|
|
@ContinueOnRest(11010700)
|
|
def Event_11010700():
|
|
"""Event 11010700"""
|
|
if ThisEventFlagEnabled():
|
|
DisableObjectActivation(1011110, obj_act_id=-1)
|
|
return
|
|
|
|
MAIN.Await(ObjectActivated(obj_act_id=11010700))
|
|
|
|
TriggerMultiplayerEvent(event_id=10010)
|
|
|
|
MAIN.Await(HealthRatio(PLAYER) > 0.0)
|
|
|
|
if FlagDisabled(11400200):
|
|
PlayCutscene(100100, cutscene_flags=0, player_id=10000)
|
|
else:
|
|
PlayCutscene(100105, cutscene_flags=0, player_id=10000)
|
|
EnableFlag(11500200)
|
|
|
|
WaitFrames(frames=1)
|
|
AwardAchievement(achievement_id=29)
|
|
|
|
|
|
@ContinueOnRest(11015170)
|
|
def Event_11015170():
|
|
"""Event 11015170"""
|
|
MAIN.Await(MultiplayerEvent(event_id=10010))
|
|
|
|
DisableNetworkSync()
|
|
PlaySoundEffect(1011111, 130300002, sound_type=SoundType.o_Object)
|
|
WaitRandomSeconds(min_seconds=0.5, max_seconds=2.0)
|
|
PlaySoundEffect(1011111, 130300002, sound_type=SoundType.o_Object)
|
|
WaitRandomSeconds(min_seconds=0.5, max_seconds=2.0)
|
|
PlaySoundEffect(1011111, 130300002, sound_type=SoundType.o_Object)
|
|
return RESTART
|
|
|
|
|
|
@RestartOnRest(11010860)
|
|
def Event_11010860(_, character: Character | int, left: int, item_lot: int):
|
|
"""Event 11010860"""
|
|
if ThisEventSlotFlagEnabled():
|
|
DisableCharacter(character)
|
|
Kill(character)
|
|
return
|
|
|
|
MAIN.Await(CharacterDead(character))
|
|
|
|
if ValueNotEqual(left=left, right=0):
|
|
OR_7.Add(CharacterIsHuman(PLAYER))
|
|
OR_7.Add(CharacterIsHollow(PLAYER))
|
|
if not OR_7:
|
|
return
|
|
|
|
AwardItemLot(item_lot, host_only=True)
|
|
|
|
return
|
|
|
|
|
|
@ContinueOnRest(11010650)
|
|
def Event_11010650(_, obj: Object | int, obj_act_id: int):
|
|
"""Event 11010650"""
|
|
if ThisEventSlotFlagEnabled():
|
|
EndOfAnimation(obj=obj, animation_id=0)
|
|
DisableObjectActivation(obj, obj_act_id=-1)
|
|
EnableTreasure(obj=obj)
|
|
return
|
|
|
|
MAIN.Await(ObjectActivated(obj_act_id=obj_act_id))
|
|
|
|
WaitFrames(frames=10)
|
|
EnableTreasure(obj=obj)
|
|
|
|
|
|
@ContinueOnRest(11010899)
|
|
def Event_11010899():
|
|
"""Event 11010899"""
|
|
EnableImmortality(1010300)
|
|
DisableCharacter(1010300)
|
|
SetNest(1010300, region=1012320)
|
|
if Host():
|
|
SetNetworkUpdateAuthority(1010300, authority_level=UpdateAuthority.Forced)
|
|
DisableFlag(11010782)
|
|
|
|
AND_1.Add(FlagEnabled(11010791))
|
|
AND_1.Add(FlagDisabled(11015311))
|
|
if AND_1:
|
|
DisableFlag(11015310)
|
|
EnableCharacter(1010300)
|
|
Move(1010300, destination=1012310, destination_type=CoordEntityType.Region, set_draw_parent=1013211)
|
|
SetStandbyAnimationSettings(1010300, standby_animation=7006)
|
|
DisableCharacterCollision(1010300)
|
|
DisableGravity(1010300)
|
|
|
|
AND_2.Add(FlagEnabled(11010791))
|
|
AND_2.Add(FlagEnabled(11015311))
|
|
if AND_2:
|
|
EnableCharacter(1010300)
|
|
Move(1010300, destination=1012320, destination_type=CoordEntityType.Region, short_move=True)
|
|
ResetStandbyAnimationSettings(1010300)
|
|
SetNest(1010300, region=1012340)
|
|
|
|
Event_11010805(0, first_flag=11015320, last_flag=11015325, animation_id=7004, flag=11015350)
|
|
Event_11010805(1, first_flag=11015326, last_flag=11015331, animation_id=7008, flag=11015350)
|
|
Event_11010805(2, first_flag=11015332, last_flag=11015333, animation_id=7009, flag=11015350)
|
|
Event_11010805(3, first_flag=11015334, last_flag=11015337, animation_id=7011, flag=11015350)
|
|
Event_11010805(4, first_flag=11015338, last_flag=11015339, animation_id=7006, flag=11015350)
|
|
Event_11010805(5, first_flag=11015320, last_flag=11015323, animation_id=7009, flag=11015351)
|
|
Event_11010805(6, first_flag=11015324, last_flag=11015339, animation_id=7006, flag=11015351)
|
|
Event_11010805(7, first_flag=11015320, last_flag=11015323, animation_id=7011, flag=11015352)
|
|
Event_11010805(8, first_flag=11015324, last_flag=11015339, animation_id=7006, flag=11015352)
|
|
Event_11010805(9, first_flag=11015320, last_flag=11015321, animation_id=7004, flag=11015353)
|
|
Event_11010805(10, first_flag=11015322, last_flag=11015333, animation_id=7008, flag=11015353)
|
|
Event_11010805(11, first_flag=11015334, last_flag=11015335, animation_id=7009, flag=11015353)
|
|
Event_11010805(12, first_flag=11015336, last_flag=11015337, animation_id=7011, flag=11015353)
|
|
Event_11010800(0, first_flag=11015338, last_flag=11015339, animation_id=7010, flag=11015353)
|
|
Event_11010800(1, first_flag=11015320, last_flag=11015339, animation_id=7010, flag=11015354)
|
|
|
|
|
|
@RestartOnRest(11010900)
|
|
def Event_11010900():
|
|
"""Event 11010900"""
|
|
if ThisEventFlagEnabled():
|
|
DisableCharacter(1010300)
|
|
DisableCharacter(1010301)
|
|
DisableCharacter(1010302)
|
|
return
|
|
|
|
AND_7.Add(HealthRatio(1010300) < 0.10000000149011612)
|
|
AND_7.Add(FlagDisabled(11015312))
|
|
AND_7.Add(FlagDisabled(11015300))
|
|
AND_1.Add(AND_7)
|
|
AND_2.Add(AND_7)
|
|
AND_3.Add(AND_7)
|
|
AND_1.Add(FlagDisabled(11010791))
|
|
AND_1.Add(FlagDisabled(11015311))
|
|
AND_2.Add(FlagEnabled(11010791))
|
|
AND_2.Add(FlagDisabled(11015311))
|
|
AND_3.Add(FlagEnabled(11010791))
|
|
AND_3.Add(FlagEnabled(11015311))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
OR_1.Add(AND_3)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
EnableFlag(11015310)
|
|
if LastResult(AND_1):
|
|
ForceAnimation(1010300, 7001, wait_for_completion=True)
|
|
DisableCharacter(1010300)
|
|
return
|
|
|
|
if LastResult(AND_2):
|
|
ForceAnimation(1010300, 7007, wait_for_completion=True)
|
|
DisableCharacter(1010300)
|
|
return
|
|
|
|
DisableImmortality(1010300)
|
|
Kill(1010300, award_souls=True)
|
|
|
|
|
|
@RestartOnRest(11010790)
|
|
def Event_11010790():
|
|
"""Event 11010790"""
|
|
DisableGravity(1010302)
|
|
EnableInvincibility(1010302)
|
|
DisableCharacter(1010302)
|
|
if Host():
|
|
SetNetworkUpdateAuthority(1010302, authority_level=UpdateAuthority.Forced)
|
|
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
MAIN.Await(CharacterInsideRegion(PLAYER, region=1012301))
|
|
|
|
EnableFlag(11010790)
|
|
SetNetworkUpdateRate(1010302, is_fixed=True, update_rate=CharacterUpdateRate.Always)
|
|
DisableMapCollision(collision=1013200)
|
|
EnableCharacter(1010302)
|
|
Move(1010302, destination=1012300, destination_type=CoordEntityType.Region, short_move=True)
|
|
ForceAnimation(1010302, 7012, wait_for_completion=True)
|
|
DisableCharacter(1010302)
|
|
EnableMapCollision(collision=1013200)
|
|
|
|
|
|
@ContinueOnRest(11010791)
|
|
def Event_11010791():
|
|
"""Event 11010791"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
AND_1.Add(FlagDisabled(11015310))
|
|
AND_1.Add(FlagEnabled(11010790))
|
|
AND_1.Add(FlagDisabled(11010782))
|
|
AND_1.Add(HealthRatio(1010300) >= 0.10000000149011612)
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012305))
|
|
AND_1.Add(AllPlayersOutsideRegion(region=1012337))
|
|
AND_2.Add(CharacterIsType(PLAYER, character_type=CharacterType.BlackPhantom))
|
|
AND_1.Add(not AND_2)
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableFlag(11015310)
|
|
EnableFlag(11010791)
|
|
EnableFlag(11010780)
|
|
EnableCharacter(1010300)
|
|
Move(1010300, destination=1012302, destination_type=CoordEntityType.Region, short_move=True)
|
|
SetStandbyAnimationSettings(1010300, standby_animation=7006)
|
|
ForceAnimation(1010300, 7005)
|
|
WaitFrames(frames=395)
|
|
Move(1010300, destination=1012310, destination_type=CoordEntityType.Region, short_move=True)
|
|
DisableFlag(11015310)
|
|
|
|
|
|
@ContinueOnRest(11010780)
|
|
def Event_11010780():
|
|
"""Event 11010780"""
|
|
if ThisEventFlagEnabled():
|
|
EndOfAnimation(obj=1011290, animation_id=2)
|
|
return
|
|
|
|
MAIN.Await(CharacterHasTAEEvent(1010300, tae_event_id=1000))
|
|
|
|
ForceAnimation(1011290, 1, wait_for_completion=True)
|
|
ForceAnimation(1011290, 2, loop=True)
|
|
|
|
|
|
@RestartOnRest(11010784)
|
|
def Event_11010784():
|
|
"""Event 11010784"""
|
|
MAIN.Await(CharacterHasTAEEvent(1010300, tae_event_id=500))
|
|
|
|
EnableFlag(11015300)
|
|
|
|
MAIN.Await(CharacterHasTAEEvent(1010300, tae_event_id=600))
|
|
|
|
DisableFlag(11015300)
|
|
return RESTART
|
|
|
|
|
|
@RestartOnRest(11015301)
|
|
def Event_11015301():
|
|
"""Event 11015301"""
|
|
DisableCharacter(1010301)
|
|
|
|
MAIN.Await(CharacterBackreadEnabled(1010300))
|
|
|
|
if ThisEventFlagEnabled():
|
|
SetDisplayMask(1010300, bit_index=0, switch_type=OnOffChange.On)
|
|
SetCollisionMask(1010300, bit_index=1, switch_type=OnOffChange.Off)
|
|
AICommand(1010300, command_id=20, command_slot=0)
|
|
return
|
|
|
|
CreateNPCPart(1010300, npc_part_id=3430, part_index=NPCPartType.Part1, part_health=200)
|
|
AND_1.Add(CharacterPartHealth(1010300, npc_part_id=3430) <= 0)
|
|
AND_1.Add(FlagDisabled(11015300))
|
|
AND_1.Add(Attacked(attacked_entity=1010300, attacker=PLAYER))
|
|
AND_1.Add(HealthRatio(1010300) >= 0.10000000149011612)
|
|
AND_2.Add(CharacterDead(1010300))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if LastResult(AND_2):
|
|
return
|
|
|
|
if FlagDisabled(11015311):
|
|
ForceAnimation(1010300, 8000)
|
|
else:
|
|
ForceAnimation(1010300, 8010)
|
|
|
|
MAIN.Await(CharacterHasTAEEvent(1010300, tae_event_id=400))
|
|
|
|
SetDisplayMask(1010300, bit_index=0, switch_type=OnOffChange.On)
|
|
SetCollisionMask(1010300, bit_index=1, switch_type=OnOffChange.Off)
|
|
Move(
|
|
1010301,
|
|
destination=1010300,
|
|
destination_type=CoordEntityType.Character,
|
|
dummy_id=66,
|
|
copy_draw_parent=1010300,
|
|
)
|
|
EnableCharacter(1010301)
|
|
ForceAnimation(1010301, 8100)
|
|
AICommand(1010300, command_id=20, command_slot=0)
|
|
ReplanAI(1010300)
|
|
OR_7.Add(CharacterIsHuman(PLAYER))
|
|
OR_7.Add(CharacterIsHollow(PLAYER))
|
|
if not OR_7:
|
|
return
|
|
|
|
AwardItemLot(34310000, host_only=True)
|
|
|
|
|
|
@ContinueOnRest(11015302)
|
|
def Event_11015302():
|
|
"""Event 11015302"""
|
|
OR_7.Add(Host())
|
|
OR_7.Add(CharacterIsWhitePhantom(PLAYER))
|
|
AND_1.Add(OR_7)
|
|
AND_1.Add(FlagDisabled(11015310))
|
|
AND_1.Add(FlagEnabled(11010791))
|
|
AND_1.Add(FlagDisabled(11015311))
|
|
AND_1.Add(HealthRatio(1010300) >= 0.10000000149011612)
|
|
AND_2.Add(AND_1)
|
|
AND_3.Add(AND_1)
|
|
AND_4.Add(AND_1)
|
|
AND_5.Add(AND_1)
|
|
AND_6.Add(AND_1)
|
|
AND_7.Add(AND_1)
|
|
AND_2.Add(FlagEnabled(11010100))
|
|
AND_2.Add(CharacterInsideRegion(PLAYER, region=1012330))
|
|
AND_3.Add(CharacterInsideRegion(PLAYER, region=1012331))
|
|
AND_4.Add(FlagEnabled(11010100))
|
|
AND_4.Add(CharacterInsideRegion(PLAYER, region=1012332))
|
|
AND_5.Add(CharacterInsideRegion(PLAYER, region=1012333))
|
|
AND_6.Add(FlagEnabled(11015305))
|
|
AND_7.Add(FlagEnabled(11015317))
|
|
OR_1.Add(AND_2)
|
|
OR_1.Add(AND_3)
|
|
OR_1.Add(AND_4)
|
|
OR_1.Add(AND_5)
|
|
OR_1.Add(AND_6)
|
|
OR_1.Add(AND_7)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
EnableFlag(11015310)
|
|
if LastResult(AND_2):
|
|
EnableFlag(11015350)
|
|
|
|
if LastResult(AND_3):
|
|
EnableFlag(11015351)
|
|
|
|
if LastResult(AND_4):
|
|
EnableFlag(11015352)
|
|
|
|
if LastResult(AND_5):
|
|
EnableFlag(11015353)
|
|
|
|
if not LastResult(AND_6):
|
|
SkipLinesIfLastConditionResultTrue(1, input_condition=AND_7) # NOTE: skip goes past end of event
|
|
else:
|
|
EnableFlag(11015354)
|
|
|
|
DisableFlagRange((11015320, 11015339))
|
|
if Host():
|
|
EnableRandomFlagInRange(flag_range=(11015320, 11015339))
|
|
EnableFlag(11015313)
|
|
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010805)
|
|
def Event_11010805(_, first_flag: Flag | int, last_flag: Flag | int, animation_id: int, flag: Flag | int):
|
|
"""Event 11010805"""
|
|
AND_1.Add(Host())
|
|
AND_1.Add(FlagEnabled(11015310))
|
|
AND_1.Add(FlagEnabled(flag))
|
|
AND_1.Add(FlagRangeAnyEnabled(flag_range=(first_flag, last_flag)))
|
|
AND_1.Add(HealthRatio(1010300) > 0.10000000149011612)
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
if FlagEnabled(11015311):
|
|
return RESTART
|
|
|
|
if Host():
|
|
Move(1010300, destination=1012310, destination_type=CoordEntityType.Region, short_move=True)
|
|
|
|
if ValueEqual(left=animation_id, right=7011):
|
|
EnableFlag(11015312)
|
|
AddSpecialEffect(1010300, 4160)
|
|
|
|
if ValueNotEqual(left=animation_id, right=7006):
|
|
ForceAnimation(1010300, animation_id)
|
|
|
|
if ValueEqual(left=animation_id, right=7004):
|
|
WaitFrames(frames=190)
|
|
|
|
if ValueEqual(left=animation_id, right=7006):
|
|
WaitFrames(frames=90)
|
|
|
|
if ValueEqual(left=animation_id, right=7008):
|
|
WaitFrames(frames=200)
|
|
|
|
if ValueEqual(left=animation_id, right=7009):
|
|
WaitFrames(frames=180)
|
|
|
|
if ValueEqual(left=animation_id, right=7011):
|
|
WaitFrames(frames=192)
|
|
|
|
RemoveSpecialEffect(1010300, 4160)
|
|
Move(1010300, destination=1012310, destination_type=CoordEntityType.Region, short_move=True)
|
|
DisableFlagRange((11015350, 11015354))
|
|
DisableFlagRange((11015320, 11015339))
|
|
DisableFlag(flag)
|
|
DisableFlag(11015312)
|
|
DisableFlag(11015310)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010800)
|
|
def Event_11010800(_, first_flag: Flag | int, last_flag: Flag | int, animation_id: int, flag: Flag | int):
|
|
"""Event 11010800"""
|
|
AND_1.Add(Host())
|
|
AND_1.Add(FlagEnabled(11015310))
|
|
AND_1.Add(FlagEnabled(flag))
|
|
AND_1.Add(FlagRangeAnyEnabled(flag_range=(first_flag, last_flag)))
|
|
AND_1.Add(HealthRatio(1010300) > 0.10000000149011612)
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
if FlagEnabled(11015311):
|
|
return RESTART
|
|
|
|
EnableFlag(11015311)
|
|
EnableCharacterCollision(1010300)
|
|
EnableGravity(1010300)
|
|
if Host():
|
|
Move(1010300, destination=1012310, destination_type=CoordEntityType.Region, short_move=True)
|
|
|
|
ResetStandbyAnimationSettings(1010300)
|
|
SetBackreadStateAlternate(1010300, True)
|
|
SetNetworkUpdateRate(1010300, is_fixed=True, update_rate=CharacterUpdateRate.Always)
|
|
AddSpecialEffect(1010300, 4160)
|
|
ForceAnimation(1010300, animation_id)
|
|
WaitFrames(frames=111)
|
|
RemoveSpecialEffect(1010300, 4160)
|
|
SetBackreadStateAlternate(1010300, False)
|
|
DisableFlagRange((11015350, 11015354))
|
|
DisableFlagRange((11015320, 11015339))
|
|
DisableFlag(flag)
|
|
DisableFlag(11015317)
|
|
DisableFlag(11015310)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010890)
|
|
def Event_11010890(
|
|
_,
|
|
flag: Flag | int,
|
|
flag_1: Flag | int,
|
|
flag_2: Flag | int,
|
|
flag_3: Flag | int,
|
|
flag_4: Flag | int,
|
|
flag_5: Flag | int,
|
|
flag_6: Flag | int,
|
|
):
|
|
"""Event 11010890"""
|
|
AND_1.Add(FlagEnabled(11015313))
|
|
AND_2.Add(FlagEnabled(11015313))
|
|
AND_3.Add(FlagEnabled(11015313))
|
|
AND_4.Add(FlagEnabled(11015313))
|
|
AND_5.Add(FlagEnabled(11015313))
|
|
AND_6.Add(FlagEnabled(11015313))
|
|
AND_7.Add(FlagEnabled(11015313))
|
|
AND_1.Add(FlagEnabled(flag))
|
|
AND_2.Add(FlagEnabled(flag_1))
|
|
AND_3.Add(FlagEnabled(flag_2))
|
|
AND_4.Add(FlagEnabled(flag_3))
|
|
AND_5.Add(FlagEnabled(flag_4))
|
|
AND_6.Add(FlagEnabled(flag_5))
|
|
AND_7.Add(FlagEnabled(flag_6))
|
|
OR_7.Add(AND_1)
|
|
OR_7.Add(AND_2)
|
|
OR_7.Add(AND_3)
|
|
OR_7.Add(AND_4)
|
|
OR_7.Add(AND_5)
|
|
OR_7.Add(AND_6)
|
|
OR_7.Add(AND_7)
|
|
|
|
MAIN.Await(OR_7)
|
|
|
|
DisableFlag(11015313)
|
|
if LastResult(AND_1):
|
|
EnableFlag(flag)
|
|
|
|
if LastResult(AND_2):
|
|
EnableFlag(flag_1)
|
|
|
|
if LastResult(AND_3):
|
|
EnableFlag(flag_2)
|
|
|
|
if LastResult(AND_4):
|
|
EnableFlag(flag_3)
|
|
|
|
if LastResult(AND_5):
|
|
EnableFlag(flag_4)
|
|
|
|
if LastResult(AND_6):
|
|
EnableFlag(flag_5)
|
|
|
|
if LastResult(AND_7):
|
|
EnableFlag(flag_6)
|
|
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11015303)
|
|
def Event_11015303():
|
|
"""Event 11015303"""
|
|
AND_1.Add(FlagDisabled(11015306))
|
|
AND_1.Add(FlagDisabled(11015311))
|
|
AND_1.Add(FlagEnabled(11010791))
|
|
AND_1.Add(FlagEnabled(11010100))
|
|
OR_7.Add(CharacterInsideRegion(PLAYER, region=1012332))
|
|
OR_7.Add(CharacterInsideRegion(PLAYER, region=1012335))
|
|
OR_7.Add(CharacterInsideRegion(PLAYER, region=1012336))
|
|
AND_1.Add(OR_7)
|
|
AND_2.Add(FlagEnabled(11015306))
|
|
AND_2.Add(FlagDisabled(11015311))
|
|
AND_2.Add(FlagEnabled(11010791))
|
|
AND_2.Add(AllPlayersOutsideRegion(region=1012332))
|
|
AND_2.Add(AllPlayersOutsideRegion(region=1012335))
|
|
AND_2.Add(AllPlayersOutsideRegion(region=1012336))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if not LastResult(AND_2):
|
|
EnableFlag(11015306)
|
|
return RESTART
|
|
|
|
DisableFlag(11015306)
|
|
RestartEvent(event_id=11015304)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11015304)
|
|
def Event_11015304():
|
|
"""Event 11015304"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagDisabled(11015305))
|
|
AND_1.Add(FlagEnabled(11015306))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
Wait(20.0)
|
|
EnableFlag(11015305)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010850)
|
|
def Event_11010850():
|
|
"""Event 11010850"""
|
|
AND_1.Add(FlagEnabled(11010791))
|
|
AND_1.Add(FlagDisabled(11015311))
|
|
AND_1.Add(HealthRatio(1010300) >= 0.10000000149011612)
|
|
AND_1.Add(Attacked(attacked_entity=1010300, attacker=PLAYER))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableFlag(11015317)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010851)
|
|
def Event_11010851():
|
|
"""Event 11010851"""
|
|
AND_1.Add(FlagDisabled(11015316))
|
|
AND_1.Add(FlagEnabled(11010791))
|
|
AND_1.Add(FlagDisabled(11015311))
|
|
AND_1.Add(AllPlayersOutsideRegion(region=1012338))
|
|
AND_1.Add(HealthRatio(1010300) < 0.699999988079071)
|
|
AND_1.Add(HealthRatio(1010300) >= 0.10000000149011612)
|
|
AND_2.Add(FlagEnabled(11015316))
|
|
AND_2.Add(FlagEnabled(11010791))
|
|
AND_2.Add(CharacterInsideRegion(PLAYER, region=1012338))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if not LastResult(AND_2):
|
|
EnableFlag(11015316)
|
|
return RESTART
|
|
|
|
DisableFlag(11015316)
|
|
RestartEvent(event_id=11010852)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010852)
|
|
def Event_11010852():
|
|
"""Event 11010852"""
|
|
DisableNetworkSync()
|
|
AND_1.Add(FlagDisabled(11015315))
|
|
AND_1.Add(FlagEnabled(11015316))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
Wait(60.0)
|
|
EnableFlag(11015315)
|
|
return RESTART
|
|
|
|
|
|
@RestartOnRest(11015307)
|
|
def Event_11015307():
|
|
"""Event 11015307"""
|
|
AND_1.Add(FlagDisabled(11015310))
|
|
AND_1.Add(FlagEnabled(11010791))
|
|
AND_1.Add(FlagEnabled(11015311))
|
|
AND_1.Add(HealthRatio(1010300) >= 0.10000000149011612)
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableAI(1010300)
|
|
ClearTargetList(1010300)
|
|
ReplanAI(1010300)
|
|
SetNest(1010300, region=1012320)
|
|
|
|
MAIN.Await(CharacterHasTAEEvent(1010300, tae_event_id=700))
|
|
|
|
Move(1010300, destination=1012340, destination_type=CoordEntityType.Region, short_move=True)
|
|
SetStandbyAnimationSettings(1010300, standby_animation=7006)
|
|
ForceAnimation(1010300, 7016)
|
|
WaitFrames(frames=110)
|
|
Move(1010300, destination=1012310, destination_type=CoordEntityType.Region, short_move=True)
|
|
AICommand(1010300, command_id=-1, command_slot=1)
|
|
DisableAI(1010300)
|
|
ClearTargetList(1010300)
|
|
ReplanAI(1010300)
|
|
DisableFlag(11015305)
|
|
DisableFlag(11015309)
|
|
DisableFlag(11015311)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11015308)
|
|
def Event_11015308():
|
|
"""Event 11015308"""
|
|
AND_1.Add(FlagDisabled(11015309))
|
|
AND_1.Add(FlagDisabled(11015310))
|
|
AND_1.Add(FlagEnabled(11010791))
|
|
AND_1.Add(HealthRatio(1010300) >= 0.10000000149011612)
|
|
AND_1.Add(AllPlayersOutsideRegion(region=1012334))
|
|
AND_2.Add(FlagEnabled(11015309))
|
|
AND_2.Add(FlagDisabled(11015310))
|
|
AND_2.Add(FlagEnabled(11010791))
|
|
AND_2.Add(HealthRatio(1010300) >= 0.10000000149011612)
|
|
AND_2.Add(CharacterInsideRegion(PLAYER, region=1012334))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
if not LastResult(AND_2):
|
|
EnableFlag(11015309)
|
|
AICommand(1010300, command_id=1, command_slot=1)
|
|
ClearTargetList(1010300)
|
|
ReplanAI(1010300)
|
|
return RESTART
|
|
|
|
DisableFlag(11015309)
|
|
AICommand(1010300, command_id=-1, command_slot=1)
|
|
ClearTargetList(1010300)
|
|
ReplanAI(1010300)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010782)
|
|
def Event_11010782():
|
|
"""Event 11010782"""
|
|
AND_1.Add(FlagDisabled(11015310))
|
|
AND_1.Add(FlagEnabled(11010790))
|
|
AND_1.Add(FlagEnabled(11010791))
|
|
AND_1.Add(FlagDisabled(11015311))
|
|
AND_7.Add(CharacterIsType(PLAYER, character_type=CharacterType.BlackPhantom))
|
|
AND_1.Add(not AND_7)
|
|
AND_1.Add(CharacterInsideRegion(PLAYER, region=1012337))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
WaitFrames(frames=10)
|
|
if FlagEnabled(11015311):
|
|
return RESTART
|
|
|
|
EnableFlag(11015310)
|
|
EnableFlag(11015312)
|
|
DisableFlag(11010791)
|
|
SetNetworkUpdateRate(1010300, is_fixed=True, update_rate=CharacterUpdateRate.Always)
|
|
ForceAnimation(1010300, 7013, wait_for_completion=True)
|
|
DisableCharacter(1010300)
|
|
Move(1010300, destination=1012310, destination_type=CoordEntityType.Region, set_draw_parent=1013210)
|
|
|
|
|
|
@ContinueOnRest(11010783)
|
|
def Event_11010783():
|
|
"""Event 11010783"""
|
|
AND_1.Add(FlagDisabled(11015310))
|
|
AND_1.Add(FlagEnabled(11010790))
|
|
AND_1.Add(FlagEnabled(11010791))
|
|
AND_1.Add(FlagDisabled(11015311))
|
|
AND_1.Add(FlagEnabled(11015315))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableFlag(11015310)
|
|
SetStandbyAnimationSettings(1010300, standby_animation=7018)
|
|
ForceAnimation(1010300, 7017, wait_for_completion=True)
|
|
|
|
MAIN.Await(HealthRatio(1010300) >= 0.699999988079071)
|
|
|
|
SetStandbyAnimationSettings(1010300, standby_animation=7006)
|
|
ForceAnimation(1010300, 7019)
|
|
WaitFrames(frames=50)
|
|
DisableFlag(11015315)
|
|
DisableFlag(11015316)
|
|
DisableFlag(11015310)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010200)
|
|
def Event_11010200(_, tae_event_id: int, animation_id: int):
|
|
"""Event 11010200"""
|
|
AND_1.Add(CharacterBackreadEnabled(1010300))
|
|
AND_1.Add(CharacterHasTAEEvent(1010300, tae_event_id=tae_event_id))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
HellkiteBreathControl(1010300, obj=1011060, animation_id=animation_id)
|
|
|
|
MAIN.Await(CharacterDoesNotHaveTAEEvent(1010300, tae_event_id=tae_event_id))
|
|
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010510)
|
|
def Event_11010510(_, character: Character | int, flag: Flag | int):
|
|
"""Event 11010510"""
|
|
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()
|
|
if ThisEventSlotFlagDisabled():
|
|
return RESTART
|
|
|
|
MAIN.Await(FlagEnabled(744))
|
|
|
|
EnableFlag(744)
|
|
|
|
MAIN.Await(FlagDisabled(744))
|
|
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010520)
|
|
def Event_11010520(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11010520"""
|
|
if ThisEventSlotFlagEnabled():
|
|
DropMandatoryTreasure(character)
|
|
return
|
|
|
|
MAIN.Await(HealthRatio(character) <= 0.0)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
|
|
|
|
@ContinueOnRest(11010501)
|
|
def Event_11010501(_, character: Character | int, flag: Flag | int):
|
|
"""Event 11010501"""
|
|
AND_1.Add(FlagDisabled(1176))
|
|
AND_1.Add(FlagDisabled(1179))
|
|
AND_1.Add(FlagEnabled(1175))
|
|
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(ThisEventFlagEnabled())
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
EnableFlag(flag)
|
|
EnableCharacter(character)
|
|
SetTeamTypeAndExitStandbyAnimation(character, team_type=TeamType.HostileAlly)
|
|
SetAIParamID(character, ai_param_id=1)
|
|
SaveRequest()
|
|
if ThisEventFlagDisabled():
|
|
return RESTART
|
|
|
|
MAIN.Await(FlagEnabled(744))
|
|
|
|
MAIN.Await(FlagDisabled(744))
|
|
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010530)
|
|
def Event_11010530(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11010530"""
|
|
AND_1.Add(FlagDisabled(1004))
|
|
AND_1.Add(FlagEnabled(1000))
|
|
AND_1.Add(FlagEnabled(11010591))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
EnableCharacter(character)
|
|
|
|
|
|
@ContinueOnRest(11010531)
|
|
def Event_11010531(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11010531"""
|
|
AND_1.Add(FlagDisabled(1004))
|
|
AND_1.Add(FlagEnabled(1008))
|
|
AND_1.Add(FlagEnabled(11510594))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
Move(character, destination=1012530, destination_type=CoordEntityType.Region, set_draw_parent=1013050)
|
|
SetNest(character, region=1012530)
|
|
EnableCharacter(character)
|
|
|
|
|
|
@ContinueOnRest(11010532)
|
|
def Event_11010532(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11010532"""
|
|
AND_1.Add(FlagDisabled(1114))
|
|
AND_1.Add(FlagEnabled(1110))
|
|
AND_1.Add(FlagEnabled(11010181))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
ResetStandbyAnimationSettings(character)
|
|
|
|
|
|
@ContinueOnRest(11010533)
|
|
def Event_11010533(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11010533"""
|
|
AND_1.Add(FlagDisabled(1176))
|
|
AND_1.Add(FlagDisabled(1179))
|
|
AND_1.Add(FlagEnabled(1174))
|
|
AND_1.Add(FlagEnabled(11310590))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
EnableCharacter(character)
|
|
ClearEventValue(600, bit_count=4)
|
|
|
|
|
|
@ContinueOnRest(11010534)
|
|
def Event_11010534(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11010534"""
|
|
AND_1.Add(FlagDisabled(1176))
|
|
AND_1.Add(FlagDisabled(1179))
|
|
AND_1.Add(FlagEnabled(1175))
|
|
AND_1.Add(FlagEnabled(724))
|
|
AND_1.Add(CharacterAlive(character))
|
|
AND_1.Add(ThisEventFlagDisabled())
|
|
AND_2.Add(Host())
|
|
AND_2.Add(FlagDisabled(1176))
|
|
AND_2.Add(FlagDisabled(1177))
|
|
AND_2.Add(FlagDisabled(1179))
|
|
AND_2.Add(FlagDisabled(1180))
|
|
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(11010535)
|
|
def Event_11010535(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11010535"""
|
|
AND_1.Add(FlagDisabled(1176))
|
|
OR_7.Add(FlagEnabled(1175))
|
|
OR_7.Add(FlagEnabled(1179))
|
|
AND_1.Add(OR_7)
|
|
AND_1.Add(HealthRatio(character) <= 0.0)
|
|
AND_1.Add(ThisEventFlagDisabled())
|
|
AND_2.Add(FlagEnabled(1180))
|
|
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 LastResult(AND_1):
|
|
return
|
|
|
|
DropMandatoryTreasure(character)
|
|
|
|
|
|
@ContinueOnRest(11010537)
|
|
def Event_11010537(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11010537"""
|
|
AND_1.Add(FlagDisabled(1176))
|
|
AND_1.Add(FlagDisabled(1179))
|
|
AND_1.Add(FlagEnabled(1175))
|
|
AND_1.Add(FlagDisabled(1196))
|
|
AND_1.Add(FlagDisabled(1198))
|
|
AND_1.Add(EventValue(flag=600, bit_count=4) >= 2)
|
|
AND_1.Add(ThisEventFlagDisabled())
|
|
AND_2.Add(FlagEnabled(703))
|
|
AND_3.Add(FlagEnabled(11010599))
|
|
AND_3.Add(FlagEnabled(flag))
|
|
AND_3.Add(ThisEventFlagEnabled())
|
|
AND_4.Add(FlagDisabled(11010599))
|
|
AND_4.Add(FlagEnabled(flag))
|
|
AND_4.Add(ThisEventFlagEnabled())
|
|
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(8, input_condition=AND_3)
|
|
SkipLinesIfLastConditionResultFalse(9, input_condition=AND_1)
|
|
EnableFlag(11010599)
|
|
SkipLinesIfClient(3)
|
|
EnableFlag(50006070)
|
|
DisableFlag(50006071)
|
|
DisableFlag(50006080)
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
DropMandatoryTreasure(character)
|
|
End()
|
|
if LastResult(AND_2):
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
return
|
|
|
|
DropMandatoryTreasure(character)
|
|
|
|
|
|
@ContinueOnRest(11010538)
|
|
def Event_11010538():
|
|
"""Event 11010538"""
|
|
AND_1.Add(FlagDisabled(1176))
|
|
AND_1.Add(FlagDisabled(1179))
|
|
AND_1.Add(FlagEnabled(1175))
|
|
AND_1.Add(FlagEnabled(11010596))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlag(11010596)
|
|
ClearEventValue(600, bit_count=4)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010539)
|
|
def Event_11010539():
|
|
"""Event 11010539"""
|
|
if Client():
|
|
return
|
|
|
|
AND_1.Add(FlagEnabled(1177))
|
|
AND_1.Add(FlagEnabled(50006071))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
EnableFlag(815)
|
|
|
|
|
|
@ContinueOnRest(11010550)
|
|
def Event_11010550(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11010550"""
|
|
AND_1.Add(FlagDisabled(1574))
|
|
AND_1.Add(FlagEnabled(1570))
|
|
AND_1.Add(FlagEnabled(11010190))
|
|
AND_1.Add(CharacterAlive(character))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
EnableFlag(11010584)
|
|
|
|
|
|
@ContinueOnRest(11010551)
|
|
def Event_11010551():
|
|
"""Event 11010551"""
|
|
if FlagEnabled(11010593):
|
|
return
|
|
|
|
DisableObjectActivation(1011308, obj_act_id=-1, relative_index=0)
|
|
DisableObjectActivation(1011308, obj_act_id=-1, relative_index=1)
|
|
DisableObjectActivation(1011308, obj_act_id=-1, relative_index=2)
|
|
DisableObjectActivation(1011308, obj_act_id=-1, relative_index=3)
|
|
|
|
MAIN.Await(FlagEnabled(11010593))
|
|
|
|
EnableObjectActivation(1011308, obj_act_id=-1, relative_index=0)
|
|
EnableObjectActivation(1011308, obj_act_id=-1, relative_index=1)
|
|
|
|
|
|
@ContinueOnRest(11010552)
|
|
def Event_11010552(_, character: Character | int, first_flag: Flag | int, last_flag: Flag | int, flag: Flag | int):
|
|
"""Event 11010552"""
|
|
AND_1.Add(FlagDisabled(1574))
|
|
AND_1.Add(FlagEnabled(1570))
|
|
OR_1.Add(FlagEnabled(3))
|
|
AND_2.Add(FlagEnabled(812))
|
|
AND_2.Add(FlagEnabled(813))
|
|
OR_1.Add(AND_2)
|
|
AND_1.Add(OR_1)
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
DisableFlagRange((first_flag, last_flag))
|
|
EnableFlag(flag)
|
|
DisableCharacter(character)
|
|
|
|
|
|
@ContinueOnRest(11010581)
|
|
def Event_11010581(_, character: Character | int):
|
|
"""Event 11010581"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
MAIN.Await(FlagEnabled(11010700))
|
|
|
|
EnableCharacter(character)
|
|
|
|
|
|
@RestartOnRest(11010582)
|
|
def Event_11010582():
|
|
"""Event 11010582"""
|
|
if Host():
|
|
DisableFlag(11010586)
|
|
|
|
if FlagDisabled(11010586):
|
|
OR_1.Add(FlagEnabled(1175))
|
|
OR_1.Add(FlagEnabled(1179))
|
|
OR_1.Add(FlagEnabled(1181))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
EnableFlag(11010586)
|
|
DisableCharacter(1010320)
|
|
|
|
|
|
@ContinueOnRest(11010583)
|
|
def Event_11010583():
|
|
"""Event 11010583"""
|
|
if Client():
|
|
return
|
|
|
|
MAIN.Await(FlagEnabled(744))
|
|
|
|
MAIN.Await(FlagDisabled(744))
|
|
|
|
Wait(1.0)
|
|
Move(6001, destination=1012010, destination_type=CoordEntityType.Region, short_move=True)
|
|
SetStandbyAnimationSettings(6001, standby_animation=7845)
|
|
Move(6040, destination=1012011, destination_type=CoordEntityType.Region, short_move=True)
|
|
Move(6072, destination=1012012, destination_type=CoordEntityType.Region, short_move=True)
|
|
SetStandbyAnimationSettings(6072, standby_animation=7880)
|
|
Move(6190, destination=1012013, destination_type=CoordEntityType.Region, short_move=True)
|
|
SetStandbyAnimationSettings(6190, standby_animation=9000)
|
|
DisableFlag(11015090)
|
|
RestoreObject(1011010)
|
|
RestartEvent(event_id=11015090)
|
|
Move(6230, destination=1012014, destination_type=CoordEntityType.Region, short_move=True)
|
|
SetStandbyAnimationSettings(6230, standby_animation=9000)
|
|
Move(6300, destination=1012015, destination_type=CoordEntityType.Region, short_move=True)
|
|
SetStandbyAnimationSettings(6300, standby_animation=7825)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010580)
|
|
def Event_11010580():
|
|
"""Event 11010580"""
|
|
OR_7.Add(CharacterIsHuman(PLAYER))
|
|
OR_7.Add(CharacterIsHollow(PLAYER))
|
|
AND_1.Add(OR_7)
|
|
AND_1.Add(FlagEnabled(11015030))
|
|
AND_1.Add(FlagDisabled(11015031))
|
|
AND_2.Add(OR_7)
|
|
AND_2.Add(FlagDisabled(11015030))
|
|
AND_2.Add(FlagEnabled(11015031))
|
|
OR_1.Add(AND_1)
|
|
OR_1.Add(AND_2)
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
WaitForNetworkApproval(max_seconds=3.0)
|
|
if LastResult(AND_1):
|
|
AddSpecialEffect(PLAYER, 4170)
|
|
if Host():
|
|
FaceEntity(PLAYER, target_entity=6480)
|
|
|
|
if Client():
|
|
SkipLinesIfThisEventFlagDisabled(1) # NOTE: skip goes past end of event
|
|
|
|
ForceAnimation(PLAYER, 7895, wait_for_completion=True)
|
|
ForceAnimation(PLAYER, 7896, loop=True)
|
|
EnableFlag(11015031)
|
|
return RESTART
|
|
|
|
RemoveSpecialEffect(PLAYER, 4170)
|
|
if Client():
|
|
SkipLinesIfThisEventFlagDisabled(1) # NOTE: skip goes past end of event
|
|
|
|
ForceAnimation(PLAYER, 7897, wait_for_completion=True)
|
|
DisableFlag(11015031)
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11010585)
|
|
def Event_11010585():
|
|
"""Event 11010585"""
|
|
DisableNetworkSync()
|
|
WaitFrames(frames=2)
|
|
EnableFlag(11010580)
|
|
|
|
|
|
@RestartOnRest(11015090)
|
|
def Event_11015090(_, flag: Flag | int, flag_1: Flag | int, obj: int):
|
|
"""Event 11015090"""
|
|
if FlagEnabled(flag):
|
|
return
|
|
|
|
if FlagEnabled(flag_1):
|
|
return
|
|
|
|
EnableObjectInvulnerability(obj)
|
|
OR_1.Add(FlagEnabled(flag))
|
|
OR_1.Add(FlagEnabled(flag_1))
|
|
|
|
MAIN.Await(OR_1)
|
|
|
|
DisableObjectInvulnerability(obj)
|
|
WaitFrames(frames=1)
|
|
DestroyObject(obj)
|
|
PlaySoundEffect(obj, 125200000, sound_type=SoundType.o_Object)
|
|
EnableFlag(11015090)
|
|
|
|
MAIN.Await(FlagEnabled(703))
|
|
|
|
return
|
|
|
|
|
|
@ContinueOnRest(11015100)
|
|
def Event_11015100():
|
|
"""Event 11015100"""
|
|
if Host():
|
|
SetNetworkUpdateAuthority(6540, authority_level=UpdateAuthority.Forced)
|
|
|
|
if ThisEventFlagEnabled():
|
|
DisableCharacter(6001)
|
|
|
|
if FlagDisabled(11015106):
|
|
AND_2.Add(Client())
|
|
AND_2.Add(FlagEnabled(11015102))
|
|
SkipLinesIfConditionTrue(1, AND_2) # NOTE: skip goes past end of event
|
|
|
|
DisableCharacter(6540)
|
|
if FlagEnabled(3):
|
|
return
|
|
|
|
If_Unknown_3_24(AND_1, unk1=5, unk2=2)
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterIsHuman(PLAYER))
|
|
AND_1.Add(FlagDisabled(11015102))
|
|
AND_1.Add(FlagDisabled(11015106))
|
|
OR_1.Add(FlagEnabled(1004))
|
|
OR_1.Add(FlagEnabled(1005))
|
|
OR_1.Add(FlagEnabled(1006))
|
|
OR_1.Add(FlagEnabled(1010))
|
|
OR_1.Add(FlagEnabled(1011))
|
|
AND_1.Add(not OR_1)
|
|
AND_1.Add(CharacterBackreadEnabled(6540))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
PlaceSummonSign(
|
|
sign_type=SummonSignType.BlueEyeSign,
|
|
character=6540,
|
|
region=1012000,
|
|
summon_flag=11015102,
|
|
dismissal_flag=11015106,
|
|
)
|
|
DisableCharacter(6001)
|
|
|
|
|
|
@ContinueOnRest(11015101)
|
|
def Event_11015101():
|
|
"""Event 11015101"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
AND_1.Add(FlagEnabled(11015102))
|
|
AND_1.Add(FlagEnabled(11015393))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
AICommand(6540, command_id=10, command_slot=0)
|
|
ReplanAI(6540)
|
|
|
|
MAIN.Await(CharacterInsideRegion(6540, region=1012998))
|
|
|
|
FaceEntity(6540, target_entity=1012997)
|
|
ForceAnimation(6540, 7410)
|
|
AICommand(6540, command_id=-1, command_slot=0)
|
|
ReplanAI(6540)
|
|
|
|
|
|
@ContinueOnRest(11015103)
|
|
def Event_11015103():
|
|
"""Event 11015103"""
|
|
if Host():
|
|
SetNetworkUpdateAuthority(6590, authority_level=UpdateAuthority.Forced)
|
|
|
|
if FlagDisabled(11015107):
|
|
AND_2.Add(Client())
|
|
AND_2.Add(FlagEnabled(11015105))
|
|
SkipLinesIfConditionTrue(1, AND_2) # NOTE: skip goes past end of event
|
|
|
|
DisableCharacter(6590)
|
|
if FlagEnabled(3):
|
|
return
|
|
|
|
If_Unknown_3_24(AND_1, unk1=5, unk2=2)
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterIsHuman(PLAYER))
|
|
AND_1.Add(FlagDisabled(11015105))
|
|
AND_1.Add(FlagDisabled(11015107))
|
|
AND_1.Add(FlagEnabled(11020607))
|
|
OR_1.Add(FlagEnabled(1572))
|
|
OR_1.Add(FlagEnabled(1573))
|
|
AND_1.Add(OR_1)
|
|
AND_1.Add(FlagDisabled(1574))
|
|
AND_1.Add(CharacterBackreadEnabled(6590))
|
|
AND_1.Add(EntityWithinDistance(entity=6590, other_entity=PLAYER, radius=20.0))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
PlaceSummonSign(
|
|
sign_type=SummonSignType.BlueEyeSign,
|
|
character=6590,
|
|
region=1012001,
|
|
summon_flag=11015105,
|
|
dismissal_flag=11015107,
|
|
)
|
|
|
|
|
|
@ContinueOnRest(11015203)
|
|
def Event_11015203():
|
|
"""Event 11015203"""
|
|
MAIN.Await(FlagEnabled(11015105))
|
|
|
|
AddSpecialEffect(6590, 5450)
|
|
|
|
|
|
@ContinueOnRest(11015104)
|
|
def Event_11015104():
|
|
"""Event 11015104"""
|
|
if ThisEventFlagEnabled():
|
|
return
|
|
|
|
AND_1.Add(FlagEnabled(11015105))
|
|
AND_1.Add(FlagEnabled(11015393))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
AICommand(6590, command_id=10, command_slot=0)
|
|
ReplanAI(6590)
|
|
|
|
MAIN.Await(CharacterInsideRegion(6590, region=1012998))
|
|
|
|
FaceEntity(6590, target_entity=1012997)
|
|
ForceAnimation(6590, 7410)
|
|
AICommand(6590, command_id=-1, command_slot=0)
|
|
ReplanAI(6590)
|
|
|
|
|
|
@ContinueOnRest(11015900)
|
|
def Event_11015900():
|
|
"""Event 11015900"""
|
|
if Host():
|
|
SetNetworkUpdateAuthority(6540, authority_level=UpdateAuthority.Forced)
|
|
|
|
if ThisEventFlagEnabled():
|
|
DisableCharacter(6001)
|
|
|
|
if FlagDisabled(11015106):
|
|
AND_2.Add(Client())
|
|
AND_2.Add(FlagEnabled(11015102))
|
|
SkipLinesIfConditionTrue(1, AND_2) # NOTE: skip goes past end of event
|
|
|
|
DisableCharacter(6540)
|
|
if FlagEnabled(3):
|
|
return
|
|
|
|
If_Unknown_3_24(AND_1, unk1=4, unk2=3)
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterIsHuman(PLAYER))
|
|
AND_1.Add(FlagDisabled(11015102))
|
|
AND_1.Add(FlagDisabled(11015106))
|
|
OR_1.Add(FlagEnabled(1004))
|
|
OR_1.Add(FlagEnabled(1005))
|
|
OR_1.Add(FlagEnabled(1006))
|
|
OR_1.Add(FlagEnabled(1010))
|
|
OR_1.Add(FlagEnabled(1011))
|
|
AND_1.Add(not OR_1)
|
|
AND_1.Add(CharacterBackreadEnabled(6540))
|
|
AND_1.Add(CharacterHasSpecialEffect(PLAYER, 28))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
PlaceSummonSign(
|
|
sign_type=SummonSignType.BlueEyeSign,
|
|
character=6540,
|
|
region=1012000,
|
|
summon_flag=11015102,
|
|
dismissal_flag=11015106,
|
|
)
|
|
DisableCharacter(6001)
|
|
|
|
|
|
@ContinueOnRest(11015901)
|
|
def Event_11015901():
|
|
"""Event 11015901"""
|
|
if Host():
|
|
SetNetworkUpdateAuthority(6590, authority_level=UpdateAuthority.Forced)
|
|
|
|
if FlagDisabled(11015107):
|
|
AND_2.Add(Client())
|
|
AND_2.Add(FlagEnabled(11015105))
|
|
SkipLinesIfConditionTrue(1, AND_2) # NOTE: skip goes past end of event
|
|
|
|
DisableCharacter(6590)
|
|
if FlagEnabled(3):
|
|
return
|
|
|
|
If_Unknown_3_24(AND_1, unk1=4, unk2=3)
|
|
AND_1.Add(Host())
|
|
AND_1.Add(CharacterIsHuman(PLAYER))
|
|
AND_1.Add(FlagDisabled(11015105))
|
|
AND_1.Add(FlagDisabled(11015107))
|
|
AND_1.Add(FlagEnabled(11020607))
|
|
OR_1.Add(FlagEnabled(1572))
|
|
OR_1.Add(FlagEnabled(1573))
|
|
AND_1.Add(OR_1)
|
|
AND_1.Add(FlagDisabled(1574))
|
|
AND_1.Add(CharacterBackreadEnabled(6590))
|
|
AND_1.Add(EntityWithinDistance(entity=6590, other_entity=PLAYER, radius=20.0))
|
|
AND_1.Add(CharacterHasSpecialEffect(PLAYER, 28))
|
|
|
|
MAIN.Await(AND_1)
|
|
|
|
PlaceSummonSign(
|
|
sign_type=SummonSignType.BlueEyeSign,
|
|
character=6590,
|
|
region=1012001,
|
|
summon_flag=11015105,
|
|
dismissal_flag=11015107,
|
|
)
|
|
|
|
|
|
@ContinueOnRest(11015990)
|
|
def Event_11015990(_, flag: Flag | int, summoned_character: Character | int):
|
|
"""Event 11015990"""
|
|
MAIN.Await(FlagEnabled(flag))
|
|
|
|
EraseNPCSummonSign(summoned_character=summoned_character)
|
|
|
|
MAIN.Await(FlagDisabled(flag))
|
|
|
|
return RESTART
|
|
|
|
|
|
@ContinueOnRest(11015843)
|
|
def Event_11015843(_, flag: Flag | int, line_intersects: int, anchor_entity: int, target_entity: int):
|
|
"""Event 11015843"""
|
|
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(11015846)
|
|
def Event_11015846(_, flag: Flag | int, obj: Object | int, vfx_id: VFXEvent | int):
|
|
"""Event 11015846"""
|
|
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
|