ID:176967
![]() Nov 24 2002, 6:56 am
|
|
How to I make an attack long-ranged? and how do i make it like a loading animation then the real thing? I'd really apprecitate it.
|
Change oview(1) to oview(X), where X is the range, and to show a charge up animation, flick("chargeup",usr), then sleep() for the number of frames in the chargeup animation * the tick delay in the chargeup animation.
|
thx that solves my problem on the loading part. now how do i make it have a picture of the attack go after the target?Also how to make it take off MP(forgot to metion it sry)
|
mob
verb Kamehameha(mob/M as mob in oview(1)) //attack a mob within 1 tile of you set category = "Battle" flick("bigbang",usr) sleep(10) 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(100) << "[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() this is what i have yet when i try to do the loading thing it dont work. Whats wrong with it? |
?????? can you plz give me the full thing? i got lost and my script went haywire so i lost everything.....
|
This depends on how attacks work right now. Can you explain in depth what you're going for, and what you've currently got for an attack?
Not sure at all what you mean here. If you could provide some specifics it'd help.
Lummox JR