Bandage resurrection by gorloke
Description: Resurrects/heals a target. Wont heal criminals.
1@unsetvar somedeadguy
2@setvar! somedeadguy
3
4@unsetvar isdead
5@setvar isdead 1
6
7clearsysmsg
8
9 say "You poor lost soul! I shall aid you."
10
11while isdead == 1
12
13 hotkey 'Use Bandage (No Timer)'
14 waitfortarget
15 target somedeadguy
16 wait 500
17
18 if insysmsg "You cannot perform beneficial acts on your target"
19 say "Criminals shall get no aid from me"
20 @setvar isdead 0
21 endif
22 if insysmsg "That being is not damaged!"
23 overhead "They are not dead"
24 @setvar isdead 0
25 endif
26 if insysmsg "That is too far away."
27 overhead "Too Far"
28 endif
29
30
31
32 while bandaging
33 wait 500
34 endwhile
35
36 if insysmsg "You fail to resurrect your patient."
37 overhead "Failed to res, Retrying"
38 endif
39 if insysmsg "You are able to resurrect your patient."
40 overhead "Successful res"
41 say "Welcome back to the world!"
42 @unsetvar somedeadguy
43 @setvar isdead 0
44 endif
45 if insysmsg "You finish applying the bandages"
46 say "I have healed your wounds."
47 @setvar isdead 0
48 endif
49 wait 650
50endwhile
51