GMCP Mapper from trigger

Posted by Lerkista on Sat 06 Aug 2016 08:23 AM — 4 posts, 19,501 views.

#0
Hi

Is there a way to run the "mapper find ..." from a trigger??

I have tried with:


CallPlugin("b6eae87ccedd84f510b74714", "map_find", "%2")


But give me this error:


Run-time error
Plugin: Aardwolf_GMCP_Mapper (called from world: Aardwolf)
Function/Sub: map_find called by Plugin Aardwolf_GMCP_Mapper
Reason: Executing plugin Aardwolf_GMCP_Mapper sub map_find
[string "Plugin: Aardwolf_GMCP_Mapper"]:2969: attempt to index local 'wildcards' (a nil value)
stack traceback:
        [string "Plugin: Aardwolf_GMCP_Mapper"]:2969: in function <[string "Plugin: Aardwolf_GMCP_Mapper"]:2963>


Thanks
Amended on Sat 06 Aug 2016 08:25 AM by Lerkista
USA Global Moderator #1
mapper find is an alias accessible via Execute() or send_to: Execute.
There's no reason to be using CallPlugin on the underlying script function (poorly).
#2
Hi

Ok, that works :)

Another question, using this plugin, is there a way to change an exit to handle doors??

If i'm in a room with a door in the north, the mapper speedwalk only send a "n" and if the door is closed, the speedwalk fails

So is there a way to change that exit from "n" to "open door n;;n"

I've read the help about custom exits, but i don't think i understand how works, because the command


"mapper cexit open e;;e;;close w" 

don't seems to specify the destination room

Any help?

Thanks
USA Global Moderator #3
cexit is the right way.
You are correct that you don't specify a destination room.
The aardwolf mapper will run your command and link to wherever it ends up.