forked from markdwags/Razor
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Scripts currently lack integration with Razor's Smart Targeting system.
Several enhancements would allow scripts to work with the entire system.
Add All last Aliases
- All aliases below should be accessible in scripts.
- Aliases should update automatically whenever they change (via manually targeting/attacking, hotkeys, or if set elsewhere in scripts/macros).
last // last any targeted exists already
lastbenefit // last benefit CURRENTLY INACCESSIBLE
lastharmful // last harmful CURRENTLY INACCESSIBLE
lastcombat // last combatant/aggressor CURRENTLY INACCESSIBLE
lastobject // last object used/dclick exists already
lastitem // last item targeted NEW ALIAS
lasttile // last tile targeted NEW ALIASAdd set unset for last Aliases
- Set any
lastaliases to a specific[serial/var] - Prompts if
[serial/var]omitted - Unset to clear
last | lastbenefit | lastharmful | lastcombat | lastobject | lastitem | lasttile
set (...) [serial/var]
unset (...)Add Smart Handling for target command
- Normal Handling applies for
[serials/vars]by default. - Smart Handling applies for all
last&selfaliases (if enabled). - Smart Handling applies
Range check Last Target(if enabled). - Smart Handling applies
Queue LastTarget and TargetSelf(if enabled). target lastshould behave same ashotkey 'Last Target'.target lastdirects cursorsBenefittolastbenefit,Harmfultolastharmful,Neutraltolastitem or lasttile.Neutralcursors are overwhelming intended for items or tiles, thuslastitem | lasttileare new aliases added to solve the issue thatlastcan potentially be anything.
// NORMAL HANDLING
target (serial/var) // No Smart/Range/Queue
// SMART HANDLING
target last // Goes to lastbeneficial, lastharmful, last (neutral)
target lastbeneficial // Only Benefit Cursors (Else Skip)
target lastharmful // Only Harmful Cursors (Else Skip)
target lastcombatant // Only Harmful Cursors (Else Skip)
target lasttile // Only Neutral Cursors (Else Skip)
target lastitem // Only Neutral Cursors (Else Skip)
target lastobject // Only Neutral Cursors (Else Skip)
target self // Only Benefit Cursors (Else Skip)Add Special Range Handling for target ... [range]
- Special Handling applies if
[range]parameter is specified whenever Smart Handling is in effect. - User's Range Check
## tilessetting should be overridden using[range] tilesfor that specific target. - User's Queue Target setting should also apply using
[range] tilesfor that specific target. - Ex) Tossing Explo Pot (which is limited to 10 tiles)
// User's Range Check is 12 tiles with Target Queue On.
dclicktype 'explosion pot'
target last ground any any 10
// - Queued to lastharmful
// -- Tosses if lastharmful comes within 10 tiles.
// --- Otherwise blows up in hand.Add Smart/Queue/Range Overrides for target command
- Force enables Smart, Queue, or Range Check on
[serials/vars]or if setting disabled. - Force enables Cursor Types on
[serials/vars]or permit additional Cursors whenever Smart Handling is in effect. - Overrides can be combined if desired.
$Enables Smart Handling.!Enables Queue Target.#Enables Range Check.[BHN]Permits specific Cursors Checks.
target$ (...) // Force Smart Handling
target! (...) // Force Queue Target
target# (...) // Force Range Check
target[B] (...) // Permit Benefit Cursors
target[H] (...) // Permit Harmful Cursors
target[N] (...) // Permit Neutral Cursors
target[BHN] (...) // Permit All Cursors
set lastbeneficial 'PET1'
cast 'Magic Arrow'
target$[H] lastbeneficial // Force Smart & Permit Harmful
cast 'Telekinesis'
target#[N] 'MyFrontDoor' ground any any 8 // Force Range & Permit Neutral
@target$!#[BHN] (...) [src] [hue] [qty] [range] // Quiet Mode + All OverridesReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request