Outils pour utilisateurs

Outils du site


talents:posture_defensive

Ceci est une ancienne révision du document !


//////////////////////////////////////////////////////////////////////////////// ///////////////////////////POSTURE DÉFENSIVE/////////////////////////////// //////////////////////////////////////////////////////////////////////////////

[FUNCTION PostureDefensive]

if !(<src.tag0.posturedefensive»0)

src.messagerouge Vous ne possédez pas cette habileté
return 1

endif

if (<src.restest 1 i_mem_posture_defensive>)

src.messagerouge Vous devez attendre <src.findid.i_mem_posture_defensive.timer> secondes avant de refaire cette habileté
return 1 

endif

IF (<src.flags>&statf_freeze) || (<src.flags>&statf_stone)

  src.messagerouge Vous ne pouvez utiliser cette habileté dans votre état.
  return 1

endif

src.sfx=01f6 src.events +e_posture_defensive_move src.events +e_posture_defensive_hit src.tag.posturedefensivehits=2+(<src.tag0.posturedefensive>/100) src.MODAR +=<src.tag0.posturedefensive>/2 src.messagevert Vous vous mettez dans une posture défensive

serv.newitem i_posture_defensive_tile new.p <src.p>

serv.newitem i_mem_posture_defensive new.equip <src.uid> new.timer = 300-(<src.tag0.posturedefensive>/10)-(<src.int>/11)

[itemdef i_posture_defensive_tile] defname=i_posture_defensive_tile name=Tile de posture défensive id=i_water

on=@create ATTR=attr_invis timer=100

on=@step if !(<src.tag0.GlobalCooldownPosture>==1) src.tag.GlobalCooldownPosture=1 src.timerf 1, src.tag.GlobalCooldownPosture= LOCAL.PostureDefensive=<tag0.PostureDefensive> return 1

on=@timer remove return 1

[EVENTS e_posture_defensive_move] on=@move

foritems 0

if (<baseid>==i_posture_defensive_tile)
	remove
endif

endfor

i.events -e_posture_defensive_hit i.events -e_posture_defensive_move i.messagerouge Vous quittez votre posture défensive. i.MODAR -=<i.tag0.posturedefensive>/2 i.tag.posturedefensivehits=

[EVENTS e_posture_defensive_hit] on=@gethit i.EFFECT=3,i_fx_glow,6,15,1 i.tag0.posturedefensivehits -= 1

if (<i.tag0.posturedefensivehits>==0)

foritems 0
	if (<baseid>==i_posture_defensive_tile)
		remove
	endif
endfor
i.MODAR -=<i.tag0.posturedefensive>/2
i.events -e_posture_defensive_hit
i.events -e_posture_defensive_move
i.messagerouge Vous quittez votre posture défensive.

endif

[itemdef i_mem_posture_defensive] ////////////COOLDOWN id=i_memory name=Cooldown posture defensive TYPE=T_eq_script

ON=@TIMER remove return 1

talents/posture_defensive.1696372546.txt.gz · Dernière modification : de pintou10_live.fr