Efficiently Replicating a Trigger With Tables?

Post Reply
imany
Posts: 12
Joined: Mon May 16, 2011 7:32 pm

Efficiently Replicating a Trigger With Tables?

Post 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.

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: Efficiently Replicating a Trigger With Tables?

Post by Vadi »

Hiya - individual triggers would be more efficient in Mudlet, as the trigger engine is lightning-fast.

Post Reply