PvPred (script)

From Elanthipedia
Revision as of 13:33, 18 October 2019 by MOTHRA (talk | contribs) (Created page with "{{Script |cat=Combat, Utility |fe=Genie |auth=User:Mothra }} ==Syntax== *{{tt|.red 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
PvPred (script)
Category Combat,Utility
Front-end Genie
Author User:Mothra


Syntax

  • .RED NAME NAME NAME (where name= character names you wish to highlight; no numerical limit)
  • .RED 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 "$Red" != "" then put #setvariable Red $Red|%1
if "$Red" = "" then put #setvariable Red %1
shift
goto start
 
Remove:
shift
if_1 then goto Remove.Name
goto done
 
Remove.Name:
if !contains("$Red","%1") then goto Remove
if "$Red" = "%1" then put #setvriable Red ""
else put #eval Red replacere("$Red","(?:%1|||%1)","")
goto Remove
 
Clear:
put #setvariable Red ""
goto done
 
done:
echo Red: $Red
put #var save
put #highlights clear
put #highlights load
if "$Red" != "" then put #highlight RegEx Red ($Red)