Search found 535 matches

by demonnic
Tue Sep 04, 2018 4:59 pm
Forum: Help Forum
Topic: click callback on gauges
Replies: 3
Views: 511

Re: click callback on gauges

Geyser does this as well, yes. In your example it would be GaugeTest.text
by demonnic
Sun Aug 19, 2018 7:54 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Using Info from a Table in an alias
Replies: 4
Views: 575

Re: Using Info from a Table in an alias

you shouldn't need to tonumber(1), you can just use 1. You have to use tonumber on matches from aliases and perl regex triggers because they're read in as strings, and have to be changed before math can be done with them. should be able to just use puppets[1].id
by demonnic
Thu Jul 27, 2017 3:12 am
Forum: Help Forum
Topic: Diku Mud Stat roller
Replies: 7
Views: 1551

Re: Diku Mud Stat roller

So you would make a trigger, type of perl regex, with a pattern of ^Str: (\d+)/(\d+) Int:(\d+) Wis:(\d+) Dex:(\d+) Con:(\d+) Cha: (\d+) Then put the code in the box like so: myStr = tonumber(matches[2]) myStr2 = tonumber(matches[3]) myInt = tonumber(matches[4]) myWis = tonumber(matches[5]) myDex = t...
by demonnic
Wed Jul 19, 2017 9:42 pm
Forum: Help Forum
Topic: Is there a way to export all of my Scripts / Triggers / Variables / Aliases?
Replies: 3
Views: 782

Re: Is there a way to export all of my Scripts / Triggers / Variables / Aliases?

There are a couple of options for using dropbox to sync things up. Or you can use "save profile as" but that won't include things like any images you've included etc
by demonnic
Wed Jul 19, 2017 6:05 pm
Forum: Help Forum
Topic: Can I invoke a custom LUA function from an Alias? If yes, how?
Replies: 4
Views: 1041

Re: Can I invoke a custom LUA function from an Alias? If yes, how?

What you want to do then is make a testMovement() function inside the TestMovement script object. Doesn't matter waht the script object is called in this case, just what you call the function below.
Code: [show] | [select all] lua
function testMovement()
  echo("test")
end
and in the alias call
Code: [show] | [select all] lua
testMovement()
by demonnic
Wed Jul 19, 2017 6:03 pm
Forum: Help Forum
Topic: How to create a trigger that reacts to two separate lines?
Replies: 3
Views: 820

Re: How to create a trigger that reacts to two separate lines?

You could use a child-parent trigger setup for this. Have alias for your command A which sets a variable to true: commandA = true send("commandA") Make a trigger for the first line, named something which makes sense, but I'll use "First line" here. Make the fire length 99. Make a trigger for the fai...
by demonnic
Thu Jul 13, 2017 8:17 pm
Forum: Help Forum
Topic: command, ";"
Replies: 4
Views: 1280

Re: command, ";"

The command separator is something which can be set in the Mudlet settings. So this is not guarunteed to be a semi colon. It's actually fairly common practice to change it to ";;" so you can use a semicolon in your writing. I'm not really sure what it is you're trying to do here? IE what is your end...
by demonnic
Sat Jul 08, 2017 11:03 pm
Forum: Scripts & Packages
Topic: Animated timers using Geyser
Replies: 21
Views: 14394

Re: Animated timers using Geyser

New updated animated timers package available. I added the ability to pass an execution hook to the constructor, allowing you to call a function, or arbitrary lua code, when the timer finishes.
Check the github page at https://github.com/demonnic/animatedtimers for full info.