| pinku  Journeyman
 
  
 Posts: 118
 Likes Given: 4
 Likes Received: 2 in 2 posts
 Joined: Apr 2013
 Reputation: 4
 
 
 
 ![]() 
 | 
			| ON=@HIT, Poison 
 
				Using the wiki, I got to this trigger: Quote:@Hit - Fires when the character hits another in combat. 
So, I wrote these lines in hope to get poisoned when the character hits me.
 
Code:
 ON=@HITIF !(<SRC.FLAGS> &statf_poisoned)
 SRC.SPELLEFFECT S_POISON,800,<UID>
 ENDIF
 
This above does not work, however, if I use @GETHIT, for example:
 
Code:
 ON=@GETHITIF !(<SRC.FLAGS> &statf_poisoned)
 SRC.SPELLEFFECT S_POISON,800,<UID>
 ENDIF
 
Works just fine.
 
Where am I going wrong? 
Thanks!
			
				
(This post was last modified: 06-12-2013 05:17 PM by pinku.)
 |  | 
	| 06-12-2013 05:14 PM |  | 
	
	| ![[+]](images/collapse_collapsed.gif)  
 | 
	
		| Alaric  Journeyman
 
  
   Posts: 227
 Likes Given: 7
 Likes Received: 9 in 4 posts
 Joined: Oct 2012
 Reputation: 7
 
 
 
 ![]() 
 | 
			| RE: ON=@HIT, Poison 
 
				
(This post was last modified: 06-12-2013 06:10 PM by Alaric.)
 |  | 
	| 06-12-2013 06:10 PM |  | 
	
	| ![[+]](images/collapse_collapsed.gif)  
 | 
	
		| Monty  Apprentice
 
  
 Posts: 40
 Likes Given: 0
 Likes Received: 2 in 2 posts
 Joined: Jun 2012
 Reputation: 1
 
 
 
 ![]() 
 | 
			| RE: ON=@HIT, Poison 
 
				
Code:
 ON=@GETHITIF !(<SRC.FLAGS> &statf_poisoned)
 SRC.SPELLEFFECT S_POISON,800,<UID>
 ENDIF
 
It this triger: 
I 	The character being damaged. (defender) 
SRC 	The character responsible for the damage. (attacker)
 
why you check if is attacker poisoned?
			 C# application developer.
 C/C++,SQL,PLSQL programming.
 Oracle database / information system developer.
 Cooperation for development of new shard.
 
				
(This post was last modified: 06-12-2013 06:20 PM by Monty.)
 |  | 
	| 06-12-2013 06:17 PM |  | 
	
	| ![[+]](images/collapse_collapsed.gif)  
 | 
	
		| pinku  Journeyman
 
  
 Posts: 118
 Likes Given: 4
 Likes Received: 2 in 2 posts
 Joined: Apr 2013
 Reputation: 4
 
 
 
 ![]() 
 | 
			| RE: ON=@HIT, Poison 
 
				Thank you two! 
This link was very useful.
 
@Monty
 
I'm SO used with checking that I thought I needed to check, but now, thinking of it..... hahaha.
 
Thanks again.    |  | 
	| 06-13-2013 12:55 PM |  | 
	
	| ![[+]](images/collapse_collapsed.gif)  
 |