Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[scripts][go2] Re-supporting the ability to use spaces in custom go2 locations #6780

Merged
merged 2 commits into from
Mar 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions go2.lic
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
original author: Shaelun
game: any
tags: core, movement
version: 1.35
version: 1.36
required: Lich >= 4.6.14

changelog:
1.36 (2024-03-03)
Re-supporting the ability to use spaces in custom go2 locations.
1.35 (2023-02-04)
Add support for custom named targets with an array of roomnumbers. Finds nearest.
1.34 (2022-11-26)
Expand Down Expand Up @@ -350,7 +352,7 @@ elsif script.vars[0] =~ /^list$/i
respond output
exit
elsif script.vars[1] =~ /^save/i
unless script.vars[0] =~ /^save ([a-zA-Z0-9!@.#$%_-]+)\s?=\s?(current|\d+)$/ || script.vars[0] =~ /^save ([a-zA-Z0-9!@.#$%_-]+)\s?=\s?\[?([current\d,\s]+)\]?$/
unless script.vars[0] =~ /^save ([a-zA-Z0-9!@.#$%_\s-]+)\s?=\s?(current|\d+)$/ || script.vars[0] =~ /^save ([a-zA-Z0-9!@.#$%_\s-]+)\s?=\s?\[?([current\d,\s]+)\]?$/
echo "error: format"
echo "error: proper format examples - ;go2 save test=1234 OR ;go2 save test=[1234, 1432] etc."
exit
Expand Down
Loading