- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleEdit of P#11533 - Edit of P#11532 - Edit of P#11531 - Untitled Paste
TypeDenizen Script
Date2014/11/26 13:32:47 UTC-08:00
ByGuest
Other
Paste
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
80300
# +----------------------------------
# |   List of fight flags
# +----------------------------------

# target (The player you are attacking)
# fight (the fight number)
# fight_CD (fight cooldown)
# Player_Fight (fight number for the players)
# Fight_Turn (Whoever has this flag has the turn in the fight)
# Fight_Unhealthy_Start (starting with less than full health)
# Number_Of_Fighters (number of fighters in the match)
# Fighter (what number the fighter is)


#<p@player.flag[<flag_name>]>
#- holding wood qty:3 

#ยป Use to change a player's health limit to 50. 
#- health <player> 50 
#- heal (<#.#>) ({player}/<entity>|...)
#- hurt (<#.#>) ({player}/<entity>|...)
#<li@list.size> (returns the size of the list)
#<li@list.include[...|...]>
#.include[three|four]
#<player.location.distance[<player2.location>]> < 5

Fight_Script:
    type: world
    events:
# +----------------------------------
# |   Fight Start
# +----------------------------------
        on fight command:
        - determine passively fulfilled
        - if !<context.args.size.is[EQUALS].to[1]> {
          - narrate "<red>You need to specify the playername you wish to fight!"
          } else {
          - if !<player.flag[Fight_CD]> {

            - if <player.location.distance[<p@<context.parsed_args.get[1]>.location>]> < 10 {
              - narrate "You're too far away to initiate a fight"
              } else {

# +----------------------------------
# |   IMPORTANT - THE ABOVE IF STATEMENT WAS MESSED WITH TO ALLOW FOR TESTING; on release change to a ">" sign
# +----------------------------------
#Check if facing enemy

              - flag player health:<player.health.scale>
              - if <player.flag[health]> < 20 {
                - flag player Fight_Unhealthy_Start
                }
              - flag p@<context.parsed_args.get[1]> health:<player.health.scale>
              - if <p@<context.parsed_args.get[1]>.flag[health]> < 20 {
                - flag p@<context.parsed_args.get[1]> Fight_Unhealthy_Start
                }

              - flag server "Fight:++"


              - define NoF_<server.flag[Fight]> li@
              - define NoF_<server.flag[Fight]> <def[NoF_<server.flag[Fight]>].include[<player.name>|<context.parsed_args.get[1]>]>

              - flag player Player_Fight:<server.flag[Fight]>
              - flag p@<context.parsed_args.get[1]> Player_Fight:<server.flag[Fight]>
              - flag server Fight_Turn_Counter_<player.flag[Player_Fight]>:

              - narrate "<blue>Fight number<&co> <gold><server.flag[Fight].as_int> <blue>has started between <red><player.name> <blue>and <red><context.parsed_args.get[1]>" targets:p@wonderdude

              - flag player target:<context.parsed_args.get[1]>
              - flag p@<context.parsed_args.get[1]> target:<player.name>

              - narrate "<red>+-----------------------------------------------------+"
              - narrate "<red><blue>Starting fight with<&co> <red><player.flag[target]>"
              - narrate "<red>+-----------------------------------------------------+"

              - narrate "<red>+-----------------------------------------------------+" targets:p@<player.flag[target]>
              - narrate "<red><blue>Starting fight with<&co> <red><player.name>" targets:p@<player.flag[target]>
              - narrate "<red>+-----------------------------------------------------+" targets:p@<player.flag[target]>
              }
            } else {
            - run Fight_Cant_Fight
            }
          }
# +----------------------------------
# |   Attack
# +----------------------------------
        on attack command:
        - determine passively fulfilled
        - if <player.flag[Target]> {
          - if <player.flag[Fight_Turn]> {
            - if <player.item_in_hand> == i@wood_sword {
              - run Fight_Attack_Wood_Sword
              } else {
              - if <player.item_in_hand> == i@stone_sword {
                - run Fight_Attack_Stone_Sword
                } else {
                - if <player.item_in_hand> == i@iron_sword {
                  - run Fight_Attack_Iron_Sword
                  } else {
                  - if <player.item_in_hand> == i@gold_sword || i@diamond_sword {
                    - run Fight_Attack_Gold_Sword
                    } else {
                    - if <player.item_in_hand> == i@wood_axe {
                      - run Fight_Attack_Wood_Axe
                      } else {
                      - if <player.item_in_hand> == i@stone_axe {
                        - run Fight_Attack_Stone_Axe
                        } else {
                        - if <player.item_in_hand> == i@iron_axe {
                          - run Fight_Attack_Iron_Axe
                          } else {
                          - if <player.item_in_hand> == i@gold_axe || i@diamond_axe {
                            - run Fight_Attack_Gold_Axe
                            } else {
                            - run Fight_Attack
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            - flag Fight_Turn:!
            - flag server Fight_Turn_Counter_<player.flag[Player_Fight]>:++
            - run Fight_Turn_Chooser
            } else {
            - run Fight_Not_Your_Turn
            }
          } else {
          - narrate "<blue>You need to be in a fight to use these commands"
          }


# +----------------------------------
# |   Shoot
# +----------------------------------
        on Shoot command:
        - determine passively fulfilled
        - if <player.flag[Target]> {
          - if <player.flag[Fight_Turn]> {
#Check for Bow
#Check for CrossBow
            } else {
            - run Fight_Not_Your_Turn
            }
          } else {
          - narrate "You need to be in a fight to use these commands"
          }
# +----------------------------------
# |   Throw
# +----------------------------------
        on Throw command:
        - determine passively fulfilled
        - if <player.flag[Target]> {
          - if <player.flag[Fight_Turn]> {
#Check for Daggers
            } else {
            - run Fight_Not_Your_Turn
            }
          } else {
          - narrate "You need to be in a fight to use these commands"
          }
# +----------------------------------
# |   Dodge
# +----------------------------------
        on Dodge command:
        - determine passively fulfilled
        - if <player.flag[Target]> {
          - if <player.flag[Fight_Turn]> {
            - run Fight_Dodge
            } else {
            - run Fight_Not_Your_Turn
            }
          } else {
          - narrate "You need to be in a fight to use these commands"
          }
# +----------------------------------
# |   Block
# +----------------------------------
        on Block command:
        - determine passively fulfilled
        - if <player.flag[Target]> {
          - if <player.flag[Fight_Turn]> {

            } else {
            - run Fight_Not_Your_Turn
            }
          } else {
          - narrate "You need to be in a fight to use these commands"
          }
# +----------------------------------
# |   Taunt
# +----------------------------------
        on Taunt command:
        - determine passively fulfilled
        - if <player.flag[Target]> {
          - if <player.flag[Fight_Turn]> {

            } else {
            - run Fight_Not_Your_Turn
            }
          } else {
          - narrate "You need to be in a fight to use these commands"
          }
# +----------------------------------
# |   Target
# +----------------------------------
        on Target command:
        - determine passively fulfilled
        - if <player.flag[Target]> {
          - if <player.flag[Fight_Turn]> {

            } else {
            - run Fight_Not_Your_Turn
            }
          } else {
          - narrate "You need to be in a fight to use these commands"
          }
# +----------------------------------
# |   Escape
# +----------------------------------
        on escape command:
        - determine passively fulfilled
        - if <player.flag[Target]> {
          - if <player.flag[Fight_Turn]> {

            } else {
            - run Fight_Not_Your_Turn
            }
          } else {
          - narrate "You need to be in a fight to use these commands"
          }
# +----------------------------------
# |   forfeit
# +----------------------------------
        on forfeit command:
        - determine passively fulfilled
        - if <player.flag[Target]> {

          } else {
          - narrate "You need to be in a fight to use these commands"
          }
# +----------------------------------
# |   Roll
# +----------------------------------
        on roll command:
        - determine passively fulfilled
        - random {
          - narrate "<blue><player.name> Rolled<&co> <gold>0" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>1" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>2" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>3" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>4" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>5" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>6" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>7" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>8" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>9" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>10" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>11" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>12" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>13" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>14" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>15" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>16" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>17" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>18" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>19" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>20" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>21" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>22" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>23" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>24" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>25" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>26" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>27" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>28" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>29" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>30" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>31" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>32" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>33" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>34" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>35" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>36" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>37" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>38" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>39" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>40" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>41" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>42" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>43" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>44" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>45" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>46" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>47" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>48" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>49" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>50" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>51" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>52" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>53" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>54" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>55" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>56" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>57" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>58" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>59" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>60" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>61" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>62" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>63" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>64" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>65" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>66" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>67" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>68" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>69" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>70" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>71" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>72" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>73" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>74" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>75" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>76" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>77" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>78" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>79" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>80" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>81" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>82" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>83" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>84" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>85" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>86" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>87" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>88" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>89" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>90" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>91" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>92" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>93" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>94" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>95" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>96" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>97" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>98" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>99" targets:<player.location.find.players.within[10]>
          - narrate "<blue><player.name> Rolled<&co> <gold>100" targets:<player.location.find.players.within[10]>
          }

# +----------------------------------
# |   Winner Commands
# +----------------------------------
        on kill command:
        - determine passively fulfilled
        - if <player.flag[Fight_Winner]> {
          - if <player.flag[VA_Kill]> {
            - execute as_server "kill <player.flag[Target]>"
            } else {
            - narrate "<red>You don't have an accepted VA to kill"
            }
          }

        on capture command:
        - determine passively fulfilled

        on mame command:
        - determine passively fulfilled

        on knock out command:
        - determine passively fulfilled

        on leave command:
        - determine passively fulfilled


# +----------------------------------
# |   Other Commands
# +----------------------------------
        on Fight_Turn command:
        - determine passively fulfilled
        - narrate "<red>It's <li@NoF_<player.flag[Player_Fight]>.get[<server.flag[Fight_Turn_Counter_<player.flag[Player_Fight]>]>].formatted>'s turn!"
































# +----------------------------------
# |   Attack Damage
# +----------------------------------

Fight_Attack_Wood_sword:
    type: task
    Script:
      - random {
      - run Fight_Attack_0
      - run Fight_Attack_0
      - run Fight_Attack_1
      - run Fight_Attack_1
      - run Fight_Attack_1
      - run Fight_Attack_1
      - run Fight_Attack_2
      - run Fight_Attack_2
      - run Fight_Attack_2
      - run Fight_Attack_2
      - run Fight_Attack_3
      - run Fight_Attack_3
      }

Fight_Attack_Stone_sword:
    type: task
    Script:
      - random {
      - run Fight_Attack_0
      - run Fight_Attack_1
      - run Fight_Attack_1
      - run Fight_Attack_1
      - run Fight_Attack_1
      - run Fight_Attack_2
      - run Fight_Attack_2
      - run Fight_Attack_2
      - run Fight_Attack_2
      - run Fight_Attack_3
      - run Fight_Attack_3
      - run Fight_Attack_4
      }

Fight_Attack_Iron_sword:
    type: task
    Script:
      - random {
      - run Fight_Attack_0
      - run Fight_Attack_1
      - run Fight_Attack_1
      - run Fight_Attack_1
      - run Fight_Attack_2
      - run Fight_Attack_2
      - run Fight_Attack_2
      - run Fight_Attack_3
      - run Fight_Attack_3
      - run Fight_Attack_4
      - run Fight_Attack_4
      - run Fight_Attack_5
      }

Fight_Attack_Gold_sword:
    type: task
    Script:
      - random {
      - run Fight_Attack_0
      - run Fight_Attack_1
      - run Fight_Attack_1
      - run Fight_Attack_2
      - run Fight_Attack_2
      - run Fight_Attack_2
      - run Fight_Attack_3
      - run Fight_Attack_3
      - run Fight_Attack_4
      - run Fight_Attack_4
      - run Fight_Attack_5
      - run Fight_Attack_5
      }

# +----------------------------------
# |   Attack Messages
# +----------------------------------

Fight_Attack_0:
    type: task
    Script:
      - random {
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      }
Fight_Attack_1:
    type: task
    Script:
      - random {
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      }
Fight_Attack_2:
    type: task
    Script:
      - random {
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      }
Fight_Attack_3:
    type: task
    Script:
      - random {
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      }
Fight_Attack_4:
    type: task
    Script:
      - random {
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      }
Fight_Attack_5:
    type: task
    Script:
      - random {
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      }

# +----------------------------------
# |   Shoot Damage
# +----------------------------------

Fight_Shoot_Bow:
    type: task
    Script:
      - random {
      - run Fight_Shoot_0
      - run Fight_Shoot_0
      - run Fight_Shoot_1
      - run Fight_Shoot_1
      - run Fight_Shoot_1
      - run Fight_Shoot_1
      - run Fight_Shoot_2
      - run Fight_Shoot_2
      - run Fight_Shoot_2
      - run Fight_Shoot_2
      - run Fight_Shoot_3
      - run Fight_Shoot_3
      }

Fight_Shoot_CrossBow:
    type: task
    Script:
      - random {
      - run Fight_Shoot_0
      - run Fight_Shoot_1
      - run Fight_Shoot_1
      - run Fight_Shoot_1
      - run Fight_Shoot_1
      - run Fight_Shoot_2
      - run Fight_Shoot_2
      - run Fight_Shoot_2
      - run Fight_Shoot_2
      - run Fight_Shoot_3
      - run Fight_Shoot_3
      - run Fight_Shoot_4
      }

# +----------------------------------
# |   Shoot Messages
# +----------------------------------

Fight_Shoot_0:
    type: task
    Script:
      - random {
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      }
Fight_Shoot_1:
    type: task
    Script:
      - random {
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      }
Fight_Shoot_2:
    type: task
    Script:
      - random {
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      }
Fight_Shoot_3:
    type: task
    Script:
      - random {
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      }
Fight_Shoot_4:
    type: task
    Script:
      - random {
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      }
Fight_Shoot_5:
    type: task
    Script:
      - random {
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      }

# +----------------------------------
# |   Throw Damage
# +----------------------------------

Fight_Throw_Dagger:
    type: task
    Script:
      - random {
      - run Fight_Throw_0
      - run Fight_Throw_0
      - run Fight_Throw_1
      - run Fight_Throw_1
      - run Fight_Throw_1
      - run Fight_Throw_1
      - run Fight_Throw_2
      - run Fight_Throw_2
      - run Fight_Throw_2
      - run Fight_Throw_2
      - run Fight_Throw_3
      - run Fight_Throw_3
      }

# +----------------------------------
# |   Throw Messages
# +----------------------------------

Fight_Throw_0:
    type: task
    Script:
      - random {
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      - narrate "miss" targets:<player.location.find.players.within[10]>
      }
Fight_Throw_1:
    type: task
    Script:
      - random {
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      - narrate "1" targets:<player.location.find.players.within[10]>
      }
Fight_Throw_2:
    type: task
    Script:
      - random {
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      - narrate "2" targets:<player.location.find.players.within[10]>
      }
Fight_Throw_3:
    type: task
    Script:
      - random {
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      - narrate "3" targets:<player.location.find.players.within[10]>
      }
Fight_Throw_4:
    type: task
    Script:
      - random {
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      - narrate "4" targets:<player.location.find.players.within[10]>
      }
Fight_Throw_5:
    type: task
    Script:
      - random {
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      - narrate "5" targets:<player.location.find.players.within[10]>
      }

# +----------------------------------
# |   Dodge
# +----------------------------------

Fight_Dodge:
    type: task
    Script:
      - random {
      - run Dodge_0
      - run Dodge_1
      - run Dodge_2
      - run Dodge_3
      - run Dodge_4
      - run Dodge_5
      - run Dodge_6
      - run Dodge_7
      - run Dodge_8
      - run Dodge_9
      - run Dodge_10
      - run Dodge_11
      }


# +----------------------------------
# |   Other
# +----------------------------------


Fight_Not_Your_Turn:
    type: task
    Script:
      - random 2
      - narrate "<blue>It's not your turn to fight, please wait."
      - narrate "<blue>Please be patient and wait for your turn."

Fight_Cant_Fight:
    type: task
    Script:
      - random 1
      - narrate "<red>You're too wounded to fight. Please wait <player.flag[fight_CD]>"

Fight_Turn_Chooser:
    type: task
    Script:
      - if <li@NoF_<player.flag[Player_Fight]>.size> < <player.flag[Fight_Turn]> {
        - flag server Fight_Turn_Counter:1
        - flag p@<li@NoF_<player.flag[Player_Fight]>.get[1].formatted> Fight_Turn
        - narrate "<red>It's your turn to make a move!" targets: p@<li@NoF_<player.flag[Player_Fight]>.get[1].formatted>
        } else {
        - flag p@<li@NoF_<player.flag[Player_Fight]>.get[<server.flag[Fight_Turn_Counter_<player.flag[Player_Fight]>]>].formatted> Fight_Turn
        - narrate "<red>It's your turn to make a move!" targets: p@p@<li@NoF_<player.flag[Player_Fight]>.get[<server.flag[Fight_Turn_Counter_<player.flag[Player_Fight]>]>].formatted>
        }



RawRaw



Pastes made: 72036