-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom_trigger.ts
More file actions
38 lines (31 loc) · 877 Bytes
/
custom_trigger.ts
File metadata and controls
38 lines (31 loc) · 877 Bytes
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
#Simple custom trigger script
#Asks for trigger, as well as the response
#Obviously, not spoof proof :P
:vars
setVar $count 0
setVar $scriptname "$playerName's Custom Trigger"
setVar $script "(Custom_Trigger)"
setVar $version "v. 1.0"
:get_inputs
echo ansi_11 "*Enter the desired Trigger : *"
getConsoleInput $trigger
echo ansi_11 "*Enter the desired Response : *"
getConsoleInput $response
:test_response
replaceText $response #42 "*"
:wait
killalltriggers
setTextTrigger 1 :trigger_activated $trigger
pause
:trigger_activated
killalltriggers
send $response
:script_paused
echo ansi_11 "*Custom Responder " ansi_12 "PAUSED " ansi_11 "--- press " ansi_13 " [ " ansi_11 " to resume *"
killalltriggers
setTextOutTrigger 2 :un_paused "["
pause
:un_paused
killalltriggers
echo ansi_11 "*Custom Responder " ansi_12 "ACTIVE*"
goto :wait