Hi all,
So i makeing a game and the player fight against zombieeees...
here is a script from zombi apocalypse:
desc = Random Melee Attack
;Triggers
;WALKING WAYPOINTS
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
;DETECT PLAYER
:state=0,plrdistwithin=300,plrcanbeseen:waypointstop,state=9,rotatetoplr,setframe=96,sound=audiobank\zombie_apocalypse\zombie1intro.wav
:state=0,shotdamage=1:waypointstop,state=9,rotatetoplr,setframe=96
;INTRO ANIMATION
:state=9:waypointstop,incframe=96
:state=9,frameatend=96:state=5
;CHOOSE MELEE ATTACK
:state=5,random=2:plrfreeze=0,state=21
;(USED TO DIRECT ZOMBIE TO SINGLE BITE ATTACK, NOT USED):state=5,random=2:state=6
:state=5,random=2:plrfreeze=0,state=22
;SLASH ATTACK
:state=21,plrdistfurther=40:sound=audiobank\zombie_apocalypse\zombie1moan.wav,state=1
:state=21:state=1
:state=1,plrdistfurther=40:waypointstop,rotatetoplr,movefore=2,animate=92
:state=1,plrdistwithin=40:waypointstop,rotatetoplr,setframe=93,state=7
:state=7,framebeyond=93 50,plrdistwithin=60:plraddhealth=-100,state=8
:state=7:incframe=93,rotatetoplr
:state=7,frameatend=93:state=5
:state=8:incframe=93
:state=8,frameatend=93:state=5
;BITE ATTACK (NOT USED, DECIDED TRIPLE BITE ATTACK WAS SUFFICIENT)
:state=6,plrdistfurther=35:waypointstop,rotatetoplr,movefore=2,animate=92
:state=6,plrdistwithin=35:plrfreeze=1,waypointstop,rotatetoplr,setframe=94,state=2
:state=2,framebeyond=94 55,plrdistwithin=60:plraddhealth=-100,plrfreeze=0,state=3
:state=2:incframe=94,plrfreeze=1,rotatetoplr
:state=2,frameatend=94:state=5
:state=3:incframe=94
:state=3,frameatend=94:state=5
;TRIPLE BITE
:state=22,plrdistfurther=40:sound=audiobank\zombie_apocalypse\zombie1moan.wav,state=16
:state=22:state=16
:state=16,plrdistfurther=40:waypointstop,rotatetoplr,movefore=2,animate=92
:state=16,plrdistwithin=40:plrfreeze=1,waypointstop,rotatetoplr,setframe=95,state=12,sound=audiobank\zombie_apocalypse\zombie1growl.wav
:state=12,framewithin=95 7:movefore=2
:state=12,framebeyond=95 44,plrdistwithin=60:plraddhealth=-100,plrfreeze=1,state=13
:state=12,plrdistwithin=40:incframe=95,plrfreeze=1,rotatetoplr
:state=12,plrdistfurther=40:plrfreeze=0,rotatetoplr,state=5
:state=12,frameatend=95:state=5
:state=13,framebeyond=95 66,plrdistwithin=60:plraddhealth=-100,plrfreeze=1,state=14
:state=13,plrdistwithin=40:incframe=95,plrfreeze=1,rotatetoplr
:state=13,plrdistfurther=40:plrfreeze=0,rotatetoplr,state=5
:state=13,frameatend=95:state=5
:state=14,framebeyond=95 90,plrdistwithin=60:plraddhealth=-100,plrfreeze=0,state=15
:state=14,plrdistwithin=40:incframe=95,plrfreeze=1,rotatetoplr
:state=14,plrdistfurther=40:plrfreeze=0,rotatetoplr,state=5
:state=14,frameatend=95:state=5
:state=15:plrfreeze=0,incframe=95
:state=15,frameatend=95:state=5
This script is for "slow zombie 1" and i set his attack to 100 but he still hurting me 20 with slash attack and 3x10 with bite attack.
Why not onehiting me?( the player health is 100 too )
Would be important because i want 1 hit to die.
!!! Yea dont say to set the plrhealt to 1 and hide the numeric !!!
Because:
I want the player to take damage which are cureable ( hit by bullet from a soldier or any falling dmg etc..) but if a zombie attack the player he die. ( zombie bite is uncureable right??
)
I don't buy games....i make them.