-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubroutines.opy
44 lines (38 loc) · 1.22 KB
/
subroutines.opy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!mainFile "ANA_PB.opy"
def FromTheGrave():
waitUntil(attacker.isAlive(), 69)
attacker.MedalQueue.append(Medal.FROM_THE_GRAVE)
def SayVoiceline():
wait(0.4)
if attacker.isAlive():
switch random.randint(1,4):
case 1:
eventPlayer.communicate(Comms.VOICE_LINE_UP)
case 2:
eventPlayer.communicate(Comms.VOICE_LINE_RIGHT)
case 3:
eventPlayer.communicate(Comms.VOICE_LINE_DOWN)
case 4:
eventPlayer.communicate(Comms.VOICE_LINE_LEFT)
def SayUltStatus():
wait(0.4)
attacker.communicate(Comms.ULTIMATE_STATUS)
def SayThanks():
wait(0.4)
attacker.communicate(Comms.THANKS)
def SaySorry():
wait(0.4)
attacker.communicate(Comms.SORRY)
def RandomEmote(): # Used in nuclear win
switch random.randint(1,4):
case 1:
eventPlayer.communicate(Comms.EMOTE_UP)
case 2:
eventPlayer.communicate(Comms.EMOTE_RIGHT)
case 3:
eventPlayer.communicate(Comms.EMOTE_DOWN)
case 4:
eventPlayer.communicate(Comms.EMOTE_LEFT)
wait(1)
if not attacker.isCommunicatingAnything():
attacker.communicate(Comms.GOODBYE)