ID:176964
Nov 24 2002, 9:35 am
|
|
How do i make a long ranged attack and make it show? How do i deduct it from my MP?
|
Nov 24 2002, 9:38 am
|
|
By using the missile() proc. By using the -= operator.
|
In response to Garthor
|
|
huh?
|
it says i need to put proc at the end of a statement and i did. what do i do now? tell me where to put it in this script
mob verb Kamehameha(mob/M as mob in oview(100)) //attack a mob within 1 tile of you set category = "Battle" flick("ki",usr) sleep(100) if (M.HP <= 0) //if M's HP are at or below 0... usr << "[M] is already dead!" else //otherwise... usr << "You attack [M] with a Kamehameha!" //send this message to the usr oview() << "[usr] attacks [M] with a Kamehameha!" //send this message to everybody else var/damage = rand(5,10) //assign a random # to a new variable world << "[damage] damage!" //tell the damage to the world M.HP -= damage //take away the damage from M M:DeathCheck() |
In response to Leahcim
|
|
Leahcim wrote:
it says i need to put proc at the end of a statement and i did. what do i do now? tell me where to put it in this script Probably make sure you have the following components somewhere else in the script: mob/proc DeathCheck() //code what the deathcheck will do |
In response to DarkHiei
|
|
i do
|