PvPblue (script)

From Elanthipedia
Revision as of 14:34, 18 October 2019 by MOTHRA (talk | contribs) (Created page with "{{Script |cat=Combat, Utility |fe=Genie |auth=User:Mothra }} ==Syntax== *{{tt|.blue name name name}} (where name= character names you wish to highlight; no numerical limi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
PvPblue (script)
Category Combat,Utility
Front-end Genie
Author User:Mothra


Syntax

  • .BLUE NAME NAME NAME (where name= character names you wish to highlight; no numerical limit)
  • .BLUE CLEAR (to clear team highlights)

Script

if "%1" = "remove" then goto Remove
if "%1" = "clear" then goto Clear
 
start:
if_1 then goto Add
goto done
 
Add:
if "$Blue" != "" then put #setvariable Blue $Blue|%1
if "$Blue" = "" then put #setvariable Blue %1
shift
goto start
 
Remove:
shift
if_1 then goto Remove.Name
goto done
 
Remove.Name:
if !contains("$Blue","%1") then goto Remove
if "$Blue" = "%1" then put #setvriable Blue ""
else put #eval Blue replacere("$Blue","(?:%1|||%1)","")
goto Remove
 
Clear:
put #setvariable Blue ""
goto done
 
done:
echo Blue: $Blue
put #var save
put #highlights clear
put #highlights load
if "$Blue" != "" then put #highlight RegEx Blue ($Blue)