Page 1 of 1

Efficiently Replicating a Trigger With Tables?

Posted: Wed Nov 19, 2014 1:06 am
by imany
I'd like to be able to use the following more efficiently than creating an individual trigger. This trigger is for remembering a character's short description with a name.

Code: Select all

selectString("short description",1)
fg("cyan")
replace("short description (Example Name)"
I think, theoretically, I should be able to alias variables into a table that can be called and run through a function but I'm not really sure how to make that work. I basically only know very very basic scripting. I also think, reading over the documentation, that cinserttext is probably a more efficient way instead of replacing the whole description twice? But I'm not sure how to use movecursor(???) correctly. I also don't know how to alias putting variables into a table to begin with.

So if anyone could explain how it works to a scripting newbie, I would really really appreciate it.

Re: Efficiently Replicating a Trigger With Tables?

Posted: Thu Nov 20, 2014 6:58 am
by Vadi
Hiya - individual triggers would be more efficient in Mudlet, as the trigger engine is lightning-fast.