|  | 
	
	
		| Dagnimaer Wanderer
 
 
 Joined: 05 Apr 2003
 Posts: 60
 Location: USA
 
 | 
			
			  |  Posted: Fri Feb 27, 2004 7:53 am 
 Prompt Question
 
 |  
				| ok, here is my prompt output on how I have it confured. 
 
 
 H:374 M:374 W:1773 <eb db>
 
 what I want to know if it will be possible to get Zmud to read the second b in it for a different variable?  Right now the first b is set for balance, I need the second one to be for blindness.  Thanks a mil.
 |  | 
	
	  |  | 
	
		|  | 
	
		| Timas Novice
 
 
 Joined: 05 Jan 2003
 Posts: 39
 Location: Netherlands
 
 | 
			
			  |  Posted: Fri Feb 27, 2004 12:48 pm 
 |  
				| what would it look like if the B was different? would it be gone? a different letter maybe? 
 For now this is what I can come up with:
 
 #TRIGGER {H~:(%d) M~:(%d) W~:(%d) ~<(?)(?) (?)(?)~>} {#VAR prompt.H %1;#VAR prompt.M %2;#VAR prompt.W %3;#VAR prompt.E %4;#VAR prompt.B1 %5;#VAR prompt.D %6;#VAR prompt.B2 %7}
 
 edit: rehprase my question.
 |  | 
	
	  |  | 
	
		|  | 
	
		| Dagnimaer Wanderer
 
 
 Joined: 05 Apr 2003
 Posts: 60
 Location: USA
 
 | 
			
			  |  Posted: Fri Feb 27, 2004 11:11 pm 
 |  
				| the problem with this is there are other prompts that come up that are temporary, like s for stunned, p for prone, f for flying. 
 |  | 
	
	  |  | 
	
		|  | 
	
		| nexela Wizard
 
  
 Joined: 15 Jan 2002
 Posts: 1644
 Location: USA
 
 | 
			
			  |  Posted: Fri Feb 27, 2004 11:40 pm 
 |  
				| Then how bout a little more info. give us an example of your prompt with EVERYTHING in it in the correct order with the correct letters I have yet to run across something Zmud couldnt do :P something like this perhaps 
 #TRIGGER {H~:(%d) M~:(%d) W~:(%d) ~<(%w) (%w)~>} {#VAR prompt.H %1;#VAR prompt.M %2;#VAR prompt.W %3;#IF (%pos(b,%5) {#ADDITEM badaffects blind} {#DELITEM badaffects blind}}
 
 Edit: Added missing {}'s
 |  | 
	
	  |  | 
	
		|  | 
	
		| Dagnimaer Wanderer
 
 
 Joined: 05 Apr 2003
 Posts: 60
 Location: USA
 
 | 
			
			  |  Posted: Sat Feb 28, 2004 11:02 am 
 |  
				| H:340 M:374 W:1773 <eb fpsdb>  is the full prompt postitioning if that helps 
 e = equilibrium
 b = balance
 
 then
 
 f = flying  p = prone  s = stunned b = blindness and d = deafness
 |  | 
	
	  |  | 
	
		|  | 
	
		| Timas Novice
 
 
 Joined: 05 Jan 2003
 Posts: 39
 Location: Netherlands
 
 | 
			
			  |  Posted: Sat Feb 28, 2004 11:24 am 
 |  
				| I let a SAY show the output becouse again I'm uncertain what you want with the affects. What I got works, however.. if the F disappears from your prompt the P will be the first one it sees, you need a few if statement to put the stuff in the right variables. 
 If you can't work it out yet just gimie some details on what you want where and what should be done with them and I'm sure we can work out more.
 
 Here we go:
 
 #TRIGGER {H~:(%d) M~:(%d) W~:(%d) ~<(?)(?) (?)(?)(?)(?)(?)~>} {#SAY H:%1 M:%2 W:%3 ~<1:%4 2:%5 3:%6 4:%7 5:%8 6:%9 7:%10~>}
 |  | 
	
	  |  | 
	
		|  | 
	
		| nexela Wizard
 
  
 Joined: 15 Jan 2002
 Posts: 1644
 Location: USA
 
 | 
			
			  |  Posted: Sat Feb 28, 2004 7:38 pm 
 |  
				| If thats how its set up then using my trigger from earlier in this thread should work 
 |  | 
	
	  |  | 
	
		|  | 
	
		| Dagnimaer Wanderer
 
 
 Joined: 05 Apr 2003
 Posts: 60
 Location: USA
 
 | 
			
			  |  Posted: Sat Feb 28, 2004 8:37 pm 
 |  
				| the thing about the F is that its only temporary, would Nexela's solution take into account that? 
 I also keep track of equilibrium and balance as well.
 
 Also, the fpsdb  are all colored yellow, maybe this info can help
 |  | 
	
	  |  | 
	
		|  | 
	
		| nexela Wizard
 
  
 Joined: 15 Jan 2002
 Posts: 1644
 Location: USA
 
 | 
			
			  |  Posted: Sat Feb 28, 2004 9:16 pm 
 |  
				| yup 
 Syntax: %pos(p,s)
 
 return the position of pattern p in string s.  Return 0/false if not found
 
 IF (return the position of b in %5) {True} {False}
 0/no/false/off returns false
 yes/true/on/>=1 returns true
 
 There are prolly faster ways to do this but
 Adding these in your prompt trigger would add or remove affects as your prompt showed up
 
 #IF (%pos(b,%5) {#ADDITEM affects blind} {#DELITEM affects blind}
 #IF (%pos(d,%5) {#ADDITEM affects deafness} {#DELITEM affects deafness}
 #IF (%pos(s,%5) {#ADDITEM affects stunned} {#DELITEM affects stunned}
 #IF (%pos(f,%5) {#ADDITEM affects flying} {#DELITEM affects flying}
 etc etc
 
 then something like this (not recomended as is... it will fire too much but use a basis)
 #if (%ismember(blind,@affects)) {cast 'restore vision'}
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |