Basher stuff to consider
Helpful things to consider:
Do I have the map in the mudlet mapper?
Does the game support giving you information over GMCP or MSDP? This can make things a lot easier
what kind of combat does the game have? "kill <thing>" and wait till it dies, balance or turn based?
D
demonnic•343d ago
@Ieraeako we can work through it here. What game is it?
ok. iirc they do support gmcp
I'd be a little surprised if nobody's built one of these yet
UU
Unknown User•343d ago
D
demonnic•343d ago
you can check gmcp using
lua gmcp
and it should either return {}
in which case it doesn't support it, or a whole bunch of information. Which I'm pretty sure it'll do.UU
Unknown User•343d ago
D
demonnic•343d ago
alright. Well, how familiar/comfortable with scripting in general are you?
UU
Unknown User•343d ago
D
demonnic•343d ago
So if you want to walk a predetermined path, you'll want to record what that path is. Either as a table of directions to go or a table of room IDs to visit in order. If you've got the area mapped in the mudlet mapper the second one lets you use the built in pathfinding to just go to the first room versus having to be in the right starting room. Some of that may depend on what you get in
lua gmcp.Room
(or gmcp.room
but most places went with Room
) Also, I'm not sure what the game's rules around this sort of automation are but I'd check them before going too far down this rabbit hole. The general loop will be
UU
Unknown User•343d ago
D
demonnic•343d ago
I honestly don't mind either way, but I know some of that games admins hang around and I always want to make sure people are really sure they know it's ok and/or don't care before getting their characters deleted
I'd hate to help someone automate something they didn't actually check on and find out they got banned for it, but if they willingly break the rules or it's ok I don't mind. heh
UU
Unknown User•343d ago
D
demonnic•343d ago
well, I'd look over the output of
lua gmcp
to see if the list of mobs in the room is in it
and then take a look at https://wiki.mudlet.org/w/Manual:Event_Engine as you'll want to use an event handler for when you enter a room to checkUU
Unknown User•343d ago
D
demonnic•343d ago
I mean, I would go to any room with a mob in it, and then do
lua gmcp
and look to see if the information is there. Not as part of doing the killing, but as part of figuring out how you'll get the list of mobs to do the killingUU
Unknown User•343d ago
D
demonnic•343d ago
Doing work stuff simultaneously so have to go with the more 'teach you to fish' route
UU
Unknown User•343d ago
D
demonnic•343d ago
ok, so in that case you'll need to use some triggers to parse the mobs when you enter a room and store the data in a table, and triggers for when you kill a mob so you can remove them from said table. https://demonnic.com/a-look-at-trigger-gates-in-mudlet/ this recent blog post was for getting information on 'friendly' mobs but may still prove useful in capturing the overall list of mobs
UU
Unknown User•343d ago
D
demonnic•343d ago
One step at a time is all it takes. But it is gonna be some work.
UU
Unknown User•343d ago
D
demonnic•343d ago
Yeah, first step would be to get it to move to the rooms you want it to move to in the right order. You wanna move, stop, wait to be told to move on, move, stop, wait to be told to move on
once you have that working then you'll swap the 'wait to be told to move on' out for 'check for and kill anything in the room'
or approach it from the other side, get it killing everything in a room and moving manually, then have it do the movement.
4.8KMembers
View on DiscordWant results from more Discord servers?
More PostsMDK Loggingconsole writing plaintext logs as ansigonna look at this nowAnswer to "What's a MUD prompt"Importantly it *doesn't* end with a `<CR><LF>` pair because, like in a terminal window, it usually cClippy emojiI need a clippy emoji so I can pop in with things like "Hi there, you look like you're trying to comI personally use muddler for compilingI personally use muddler for compiling lua and json files into a mudlet package xml, but that's in pAnswer for the multiline triggerAnswer for the multiline trigger question above in this threadIf they re copies then they should beIf they're copies then they should be firing. I thought you were editing triggers in one profile, exOdd map room IDname widget positioningI assume that is (0,0) then? I had to drag it elsewhere. Now it vanishes when rooms are deselected, It may wait one second on some devicesIt may wait one second on some devices, tough to say. There is a hook in the programming that when MXP wikiIt's not a lot, but it at least helps with a simple and complex option for those wanting to make surNo worries thanks for taking the timeNo worries, thanks for taking the time! Right now I'm trying to isolate the difference between messaDiscord Rich Text Prescence?yeah, still working on this. I have been able to get `Game using a custom Discord server. Invite URLWell with the spell checking enabled IWell, with the spell-checking enabled I was pointing out that, so the user could tell that a word waMSDP Sub Tables@Fuligin ?I am also interested in this problemIncluding things from luarocks can be difficult, especially if you're trying to support all three OSkill aliasand I don't think what you typed is necessarily easier than inputting it in two spots. But we may ju.you can click and drag this window to another side, make it pop out, or click the X on the far rightRooms dialogThe room number in the centre of the Room Exit is the Id of the room you are setting the exits *from