Here is my scripting trial below :
;Artificial Intelligence Script
;Header
desc = Monster Script
;Triggers
; Monster Stands in its idle state
:state=0,animate=0,plrdistwithin=300,plrcanbeseen:state=1,rotatetoplr
; Walk to player if player's distance is between 299 and 150
:state=1,plrdistwithin=299,animate=1,movefore=200
; Walk to player if player's distance is less than 150
:state=1,plrdistwithin=150,animate=2,movefore=400:state=2
; Monster Starts Attacking Player [ Attack Method 2 if health is less than 50 ]
:state=2,plrdistwithin=30,healthless=50:state=3,animate=4,shootplr,plraddhealth=-5
; Monster Starts Attacking Player [ Attack Method 1 if health is 100 or greater than 50 ]
:state=2,plrdistwithin=30,healthless=50:state=3,animate=3,shootplr,plraddhealth=-1
;End of Script
Anyone has comments ?
Techno VaLLeY