| View previous topic :: View next topic |
| Author |
Message |
fj34r
Joined: 21 Jun 2008 Posts: 2
|
Posted: Sat Jun 21, 2008 12:14 pm Post subject: issue with wild cards. |
|
|
What I'm trying to do is whenever i run the command 'checkwar' which is an alias to do 'who jus blood warg shadow' to display the players in the specified clans, i want it to grab their first name and highlight it certain colors. I'm rather new to the scripting biz so please be gentle with me.
Line from Mud: [51 M-Dwf Cle] [ Wargar ] Brandogar Stonesmoker, The Tyrant of Thaxanos.
Trigger: #ACTION {[%0] [ Wargar ] %1 %2} {#showme %1}
Result: echo's 'Brandogar Stonesmoker, The Tyrant of Thaxanos.' instead of just Brandogar...
any idea how to fix this? I can do the highlighting myself if i can get it to just get the first part of their name |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3274
|
Posted: Sun Jun 22, 2008 8:18 am Post subject: |
|
|
Odd that it does that, are you running the latest release?
Regardless, you could more specifically define the action:
| Code: |
#ACTION {[%0] [ Wargar ] %1 %2, } {#showme %1}
|
|
|
| Back to top |
|
 |
fj34r
Joined: 21 Jun 2008 Posts: 2
|
Posted: Sun Jun 22, 2008 2:42 pm Post subject: |
|
|
| the thing is though, not all names will have that , in them, that's where the true issue lies |
|
| Back to top |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3274
|
Posted: Sun Jun 22, 2008 3:39 pm Post subject: |
|
|
| I see. The trigger you used, however, should only report the first name with tintin++ 1.98.2. |
|
| Back to top |
|
 |
|