|  | 
	
	
		| Monkeyman Newbie
 
 
 Joined: 23 Aug 2006
 Posts: 1
 
 
 | 
			
			  |  Posted: Wed Aug 23, 2006 2:59 am 
 Help with Achaean trigger
 
 |  
				| If there is a line that comes as: 
 You suddenly perceive the vague outline of an aura of rebounding around <name>.
 
 Usually, if the name is a normal length name, it will appear on the same line and there won't be a problem. I'd set the trigger as;
 
 #TRIGGER {You suddenly perceive the vague outline of an aura of rebounding around (%w).} {#if (@enemy=%1) {#var rebound 1}}
 
 But sometimes the names are long and this makes it appear on the next line. So it would have "You suddenly perceive the vague outline of an aura of rebound around" on the first line and "<name>" on the line right after that.
 
 How do I make it so that the trigger checks if the name is the same as the variable @enemy and if so, set #var rebound 1?
 
 Thanks for help
 |  | 
	
	  |  | 
	
		|  | 
	
		| shalimar GURU
 
  
 Joined: 04 Aug 2002
 Posts: 4774
 Location: Pensacola, FL, USA
 
 | 
			
			  |  Posted: Wed Aug 23, 2006 3:29 am 
 |  
				| #TRIGGER {You suddenly perceive the vague outline of an aura of rebounding around$(%w).} {#if (@enemy=%1) {#var rebound 1}} 
 might need to just have two triggers for it
 |  | 
	
	  | 
		    
			  | _________________ Discord: Shalimarwildcat
 |   |  | 
	
		|  | 
	
		| Vitae Enchanter
 
  
 Joined: 17 Jun 2005
 Posts: 673
 Location: New York
 
 | 
			
			  |  Posted: Wed Aug 23, 2006 12:04 pm 
 |  
				| #TRIGGER {You suddenly perceive the vague outline of an aura of rebounding around {(%w)|$(%w)}.} {#if (@enemy=%1) {#var rebound 1}} 
 |  | 
	
	  |  | 
	
		|  | 
	
		| Rolly Wanderer
 
 
 Joined: 16 Oct 2006
 Posts: 62
 
 
 | 
			
			  |  Posted: Sun Oct 22, 2006 10:16 pm 
 |  
				| I tried this and it seems to work in testing: 
 #TRIGGER {You suddenly perceive the vague outline of an aura of rebounding around @Enemy.}
 and also:
 #TRIGGER {@Enemy's aura of weapons rebounding disappears.}
 
 This seems too simple to be true so maybe there are other issues with it I haven't seen yet.
 
 Rolly
 |  | 
	
	  |  | 
	
		|  | 
	
		| Larkin Wizard
 
  
 Joined: 25 Mar 2003
 Posts: 1113
 Location: USA
 
 | 
			
			  |  Posted: Tue Oct 24, 2006 8:26 pm 
 |  
				| I know this is old new now, but maybe this will help? 
 
 
 
	  | Code: |  
	  | #REGEX {^You suddenly perceive the vague outline of an aura of rebounding around} {} #COND {@enemy\.$} {rebound = 1} {regex|reparse}
 #COND {@enemy\.$} {rebound = 1} {regex|within|param=1}
 |  
 The reparse state should catch the enemy's name at the end of the single line version and the within|param=1 state should catch it at the beginning of the second line.
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |