medalselect is reposnible for summoning eudemons
so all oyu need to make it works is:
1. make npc asking about : how many eudemons player is able to summon
2.check if he tells right
3.allow or not to join the map
when he wants to get out then he has to ask npc to teleport him, and then this npc has also action with makeing player able to summon
to do it you have to use a special number action called mission
Thats enough, now your turn ----- make it works
REGARDS