PvPred (script)
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)