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.

mds_check_group_location()

Featured Replies

I didn't see this on forum, but found it when searching Announcements for something unrelated.
https://magicduel.com/page/Announcement/view/1506
It still works, I just tried it. :)

Check group location via MD Script
A new function was added to allow you to check if a given group of people are in that moment online in a given location on tha map. Placed on an item this could allow for example, items that work only when a team of players are together in the same place (team quest). Other possible uses are to unlock certain things if all the players from a "circle" gather in the same place to open a chest box. Remote checking if one single player or multiple players are online in a predefined spot can also have lots of creative uses.

Syntax and sample code:
@vn = 'Super Bozo,Nickmonster,Hocku,Kylar Stern,Grido,sinner,';
@va = mds_check_group_location(@vn,'1_-2x-1_2');
echo 'Group online in Paper Cabin '.@va.'/6';

mds_check_group_location(playernames, location) will return the number of players from the given list that are currently online in the given location. You can pass the player list as a comma separated list OR as an array, both work. the second parameter should be the location coordinates of the place you want to check. This function should not be used to check in what location a player (or group) is, but to check if a player is or isn't in one place. (Usage limit of 4 automatically apply, editors found to use ways to avoid such restrictions will lose their editing ability)

Edited by Maebius

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.