Search found 24 matches

by Theiwar
Sun Jan 30, 2011 4:48 pm
Forum: Help Forum
Topic: Replacing a String
Replies: 18
Views: 10354

Re: Replacing a String

Ok still not working, however when I use the feedTriggers function to test it works great: feedTriggers("\nStanding the Aeon on your open palm, you blow it lightly at Bob and watch as it seems to slow his movement through the time stream.\n") Here is the trigger RegEx: ^Standing the Aeon o...
by Theiwar
Sun Jan 30, 2011 1:51 pm
Forum: Help Forum
Topic: Replacing a String
Replies: 18
Views: 10354

Re: Replacing a String

Ok so I used SelectCaptureGroup(0) assuming that using 0 would be the equivalent of matches[1]. Still no luck though.
Code: [show] | [select all] lua
selectCaptureGroup(0)
replace("+++++++++++++++++++++++++ AEON LANDED  ++++++++++++++++++++++++")
setFgColor(255,0,0)
setBgColor(255,255,255)
resetFormat()
by Theiwar
Sun Jan 30, 2011 1:09 pm
Forum: Help Forum
Topic: Replacing a String
Replies: 18
Views: 10354

Re: Replacing a String

Ahhh sorry missed the top line of my script. selectString("Standing the Aeon on your open palm, you blow it lightly at " ..matches[2].. " and watch as it seems to slow " ..matches[3].. " movement through the time stream.") replace("+++++++++++++++++++++++++ AEON LA...
by Theiwar
Sun Jan 30, 2011 10:41 am
Forum: Help Forum
Topic: Replacing a String
Replies: 18
Views: 10354

Replacing a String

I'm attempting to replace the string: Standing the Aeon on your open palm, you blow it lightly at Bob and watch as it seems to slow his movement through the time stream. with the following text to be highlighted: ++++++++AEON LANDED++++++++ Here is my code, what am I doing wrong? Trigger ^Standing t...
by Theiwar
Wed Jan 26, 2011 1:08 pm
Forum: Help Forum
Topic: Highlighting a variable
Replies: 2
Views: 2143

Highlighting a variable

How would you go about highlighting a variable? For example if I target 'BobDole' I want BobDole to be highlighted in the text.


Thanks!
by Theiwar
Sat Dec 25, 2010 4:01 pm
Forum: Help Forum
Topic: Summoning Script
Replies: 5
Views: 3378

Re: Summoning Script

Ok so this is what I came up with, let me know your thoughts/improvements: Alias: echo( "-----------BEGIN SUMMONING-----------" ) send("summon skyrax") sumindex = 1 summongo = 1 Triggers: ^You have recovered equilibrium.$ if summongo == 1 then summonall() end ^The Entity refuses ...
by Theiwar
Fri Dec 24, 2010 4:26 pm
Forum: Help Forum
Topic: Summoning Script
Replies: 5
Views: 3378

Re: Summoning Script

Actually I've worked out most of it, I just need to know how to do it using that table? So to keep things simple how would I summon the first name in the list i.e. send("summon" ..FIRSTnameINtable)
by Theiwar
Fri Dec 24, 2010 1:59 pm
Forum: Help Forum
Topic: Summoning Script
Replies: 5
Views: 3378

Summoning Script

On to my next project, trying to create a script to automate my summoning. Essentially I've got a simple table with the names of all my ents: summonlist = {"skyrax", "rixil", "eerion", "arctar", "scrag", "pyradius", "dameron", &qu...
by Theiwar
Thu Dec 23, 2010 11:21 pm
Forum: Help Forum
Topic: Global Balance Variable
Replies: 3
Views: 2568

Re: Global Balance Variable

How would you make the balance variable equal false when you are off balance?
by Theiwar
Thu Dec 23, 2010 2:22 am
Forum: Help Forum
Topic: Global Balance Variable
Replies: 3
Views: 2568

Global Balance Variable

Can anyone provide a sample script for a global variable to track balance for Achaea off of the prompt?

Was messing around with it, I have a feeling my attempt is not the most efficient of doing it though...