I have 2 problems here.
(1) I can't figure out how to make the computer reconize the bug.dmi file in my code. I made it and it is in my sidebar, but it cant seem to find it. this is my code:
//this is a test world crreated by Nick on 3/15/04
mob
icon = 'person.dmi' //makes it so all mobs will be created with the person icon
var
HP = 30 //declares a new variable called HP, with a value of 30
Login()
icon_state = gender //when a player logs in, make their icon's state
..() //the gender of their key. Then call the parent!
bug
icon = 'bug.dmi' <-THE PROBLEM IS HERE
proc
DeathCheck() //checks to see if an attack is deadly
if (HP <= 0) //if the defender's HP is low enough...
world << "[src] dies!" //do the death messaging
verb
attack(mob/M as mob in oview(1)) //attack a mob within 1 tile of you
usr << "You attack [M]!" //send this message to the usr
oview() << "[usr] attacks [M]!" //send this message to everybody else
var/damage = rand(1,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() //check for death with a proc
say(msg as text) //What the usr says is passed into "msg" as text
world << "[usr]: [msg]" //The world sees chatroom-like output
turf
grass //defines a "grass" prototype, which is a kind of turf...
icon = 'grass.dmi' //and has an icon named 'grass.dmi'. In single quotes!
world //we set one of our world's characteristics:
turf = /turf/grass //its default turf is the grass turf.
mob
//end of code
(2) i cannot figure out how to make a Kamehameha wave. I have the animations, but i dont know how to code it in.
Any help with either of these problems would be Highly appricieated!
Thanks in advance
---Tabu34---
ID:172881
![]() Mar 15 2004, 2:30 pm
|
|
Tabu34 wrote:
(2) i cannot figure out how to make a Kamehameha wave. I have the animations, but i dont know how to code it in. Zilal's Tutorial isn't coded to make a 'Kamehameha Wave'. It's to learn the basics of an RPG game, not the Kamehameha wave. |
Madpeter wrote:
bug icon = 'bug.dmi' <-THE PROBLEM IS HERE try putting mob back in after the login code And Madpeter, he didn't say that was a problem. It's fine, he has the mob coded in above. |
These are separate programs. I didnt use Zial's tutorial for this program. And the Kamehamea wave is from Dragon Ball Z.
|
Tabu34 wrote:
These are separate programs. I didnt use Zial's tutorial for this program. And the Kamehamea wave is from Dragon Ball Z. I know what the Kamehameha wave is. Look at my key. I'm ubssesed with DBZ. I hate the Zeta rips. But, I am a extremly huge fan of DBZ. Once again, look at my key. |
Right... I knew that ☺. So can u answer my second question? and y did say that the tutorial didn't show how to make a 'Kamehameha Wave'. It's kind of obvious. U said it like u knew nothing about it. Now that i look at your key, i realize u knew what it was,but the ''s threw me off.
|
I tried it and i couldn't get it to work. Whats the problem? I also cant figure out where to put it in. My code is this:
turf floor icon = 'floor.dmi' wall icon = 'wall.dmi' density = 1 start icon = 'start.dmi' mob icon = 'player.dmi' Login() loc = locate(/turf/start) Kamehameha icon = 'Kamehameha.dmi' mob verb smile() world << "[usr] grins." giggle() world << "[usr] giggles." cry() world << "[usr] cries \his heart out." say(msg as text) world << "[usr] says, [msg]" Kamahemeha() if(src.ki) <-- Debug <-- src<<"KAMEHAMEHA!" <-- new/obj/Kamehameha(src) <-- goto Debug <-- //end of code the arrows mark where it says i have "inconsistent indentation" Any Help would be nice! |
Lummox JR wrote:
No use goto for loops. Ungh.What the heck does that mean? I took it out and nothing happened! It had the same error less times. Because there were less lines. |
Just in case you are interested, Kamehameha was the chief of Hawaii when Captain James Cook discovered the islands in 1778. Chief Kamehameha united all but two of the islands under his rule shortly after Cook discovered it.
Interesting, eh? What I want to know is why Dragonball uses that name. Does Dragonball have anything to do with Hawaii? Kamehameha Wave sounds more like a surfing stunt than it does an attack. |
mob
bug
icon = 'bug.dmi'
but i dont know if this will fix it.