FANDOM


Created by Taz.

Using "RC_Core.rcm"
; Define entry function 'Main'

Function Main()
Player = Actor()
Target = ContextActor()

PLevel = ActorLevel(Player)
TLevel = ActorLevel(Player)

THealth = Attribute(Player, "Health")

VampBlood% = Attribute(Player, "Blood")
AbilityCost% = 10

TotBloodCost% = VampBlood - AbilityCost

    If (VampBlood < AbilityCost)
        OutPut(Player, "You do not have enough blood for that.", 255, 0, 0)
        Return
     Endif
 
 ;------------------------------Damage Formula-----------------
Damage1% = PLevel + TLevel * 20
Damage2% = Plevel + TLevel * 20 + 10
Damage% = Rand(Damage1, Damage2)
FinalDamage% = THealth - Damage
;-----------------------------End Damage Formula--------------
AnimateActor(Player, "ClawStrike", .5, 2)
SetAttribute(Target, "Health", FinalDamage)
CreateFloatingNumber(Player, Damage, 0, 0, 0)

SetAttribute(Player, "Blood", TotBloodCost) ;take blood cost

Output(Player, "Spell done.")
Return
End Function