Hey guys, I've got a few questions in regards to Mudlet and triggers and the like.
I'm wanting to take a default line and replace it with a multiline of text mainly. I've been looking around and couldn't find anything on it. I've found some things showing how to highlight or color text, but I'm wanting to replace the line with something else that's a bit bigger/multiline and wondering how to do this and what would be the more efficient way to do it.
Ok, I thought I had more questions, but I guess this was the only one. If I come across another one, I'll post here. Thank you in advance.
0
Comments
deleteLine()
Then to replace it, use either echo or cecho.
As well, would this be done in the trigger itself? Like...
Pattern: Trigger Line
Code:
deleteLine()
cecho("line 1")
cecho("line 2")
cecho("line 3")
cecho("<green>This text is green!")
See the docs here
Yes, you'd put that in the code for the trigger. You can have each line as a separate echo, or use the newline character (\n) to insert newlines.
Specifically, I'm using m&m, and when I search for the trigger "dissolves the shimmering", it show a trigger for it, with the name 3787, but when I click on it to go to the trigger, nothing happens. So, I don't know where I can edit this at all.
EDIT: @Mrak shot me the answer to this in game. So, thanks goes to them. It's because the trigger was being loaded by Mudlet, but wasn't actually in Mudlet. It's being loaded from the base MMF LUA file, which can be edited with Notepad++.
You can make a script that does
function deleteFull()
deleteLine()
tempLineTrigger(1,1,[[if isPrompt() then deleteLine() end]])
end
and then use deleteFull() instead and it sort of tidies up the prompt issue
No need to make a script that does it.