Skip to content
View in the app

A better way to browse. Learn more.

MagicDuel Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cleanup

Featured Replies

Deleting all keys K requires an exhaustive search of the player table to find exactly who has the keys. Granted, it would be done infrequently but it's still a big process.

How would you search for the has_keys() function in the script?
Using a regex? If so what would your delimiters be? The only guarenteed ending bracket you can take is ") or '), there are a multitude of function calls that end in the same way.
Tell me if you have some other idea in mind.

The possibilty of a player opening a clickable set for deletion is there, but from what I understand there would be no script for the input wto be sent to, they would jsut get an error message or something saying it expired. It shouldn't be anything to worry about.

  • Author

Yes there is a flaw :D
If you put the keyname into a String variable, no simple reg exp will find it but instead you need something close to an interpreter, which is too much work for sane people. Then again, did Mur ever claim to be sane?
You could demand keynames are never put into variables but are always spelled out completely, but that is quite a loss in scripting efficiency.

eg.
[code]@va = 'keyname';
mds_has_rpcq_keys(@va);[/code]
cannot be verified with only 1 regular expression.

Enforcing is not a requirement, but it will decrease efficiency because people are inherently lazy and thus liable to ignore labels and the cleaning.

Edited by Kafuuka

What about the concatentaion that I use in all the sample scripts with keys?
I have no intention of typing out the prefix all the time, especailly if it can change at the drop of a hat :D

  • 8 months later...

So my solution from the days of punchcards....

@vk is now my key holder. The 1-Bit is first key, 2-bit is second key, 4-bit is third key.... if(@vk "and" 4){ } else { }

I'm presuming fundamental "and" and "or" etc. functions still exist in some fashion here.... Sorry I havn't tested this, but you could make it work.

As long as I'm not sharing my keys with other coders, and only need 32 keys, I create no new storage needs, and never need to clean up, and just over-write it when I create a new quest.

Is there a problem with this? Won't @vk stay between me and the player indefinitly, using store() function on it?

Edited by Fyrd Argentus

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Forum Statistics

  • Total Topics 17.5k
  • Total Posts 182.2k

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.