Code:
Problem description:
I'm making a Naruto game but i can't figure out this sharingan problem.
uchiha
verb
Sharingan() // Verb used for firing the beam
set category = "Doujutsu"
set name = "Sharingan"
if(usr.froze)
usr<<"Your frozen"
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.meditating)
usr<<"Not while meditating"
return
if(usr.Frozen)
usr<<"Your frozen"
return
if(usr.captured)
usr<<"Your captured"
return
if(usr.caught)
usr<<"Your captured"
return
if(!usr.shari&&usr.sharingan1&&!usr.ST) // If the mob's firing var is one...
usr.overlays+='sharinganthing.dmi'
usr.icon_state="1"
usr.overlays += 'sharingan.dmi'
view()<<"[usr] Says: Sharingan!"
view()<<"[usr]'s pupils dialate to form Stage 1 Sharingan"
usr.shari=1
usr.ST=1
usr.Suses += 1
usr.verbs += /mob/uchiha/verb/Sharinganilluminate
usr.see_invisible = 1
sleep(15)
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
if(usr.Mnin>=500&&usr.Suses>=50)
usr.sharingan2=1
usr.sharingan1=0
return
if(!usr.shari&&usr.sharingan2&&!usr.ST) // If the firing var isn't 1...
usr.overlays+='sharinganthing.dmi'
usr.overlays += 'sharingan.dmi'
usr.icon_state="2"
view()<<"[usr] Says: Sharingan!"
view()<<"[usr]'s pupils dialate to form Stage 2 Sharingan"
usr.shari=1
usr.ST=1
usr.Suses += 1
usr.verbs += /mob/uchiha/verb/Sharinganilluminate
usr.verbs += /mob/uchiha/verb/Sharinganfreeze
usr.see_invisible = 1
sleep(15)
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
if(usr.Mnin>=700&&usr.Mgen>=400&&usr.Suses>=70)
usr.sharingan3=1
usr.sharingan2=0
return
if(!usr.shari&&usr.sharingan3&&!usr.ST) // If the firing var isn't 1...
usr.overlays+='sharinganthing.dmi'
usr.overlays += 'sharingan.dmi'
usr.icon_state="3"
view()<<"[usr] Says: Sharingan!"
view()<<"[usr]'s pupils dialate to form Stage 3 Sharingan"
usr.Suses += 1
usr.shari=1
usr.ST=1
usr.Move_Delay=0
usr.nin=usr.nin*1.2
usr.verbs += /mob/uchiha/verb/Sharinganilluminate
usr.verbs += /mob/uchiha/verb/Sharinganfreeze
usr.verbs += /mob/uchi/verb/Counter
usr.see_invisible = 1
sleep(15)
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
if(usr.Mnin>=1000&&usr.Mgen>=700&&usr.Suses>=100&&u sr.kills>=150)
usr.sharingan3=0
usr.mangekyou=1
return
if(!usr.shari&&usr.mangekyou&&!usr.ST&&usr.goingmange)
usr.overlays+='sharinganthing.dmi'
usr.overlays += 'sharingan.dmi'
usr.icon_state="mangekyou"
view()<<"[usr] Says: Mangekyou Sharingan!"
view()<<"[usr]'s pupils dialate to form the Legendary Mangekyou Sharingan"
usr.Suses += 1
usr.shari=1
usr.gen=usr.gen*1.2
usr.ST=1
usr.sharingan3=1
usr.verbs += /mob/uchiha/verb/Sharinganilluminate
usr.verbs += /mob/uchiha/verb/Sharinganfreeze
usr.verbs += /mob/uchi/verb/Counter
usr.verbs += /mob/uchiha/verb/Amateratsu
usr.verbs += /mob/uchiha/verb/Tsukiyomi
usr.see_invisible = 1
sleep(15)
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
usr.overlays-='sharinganthing.dmi'
return
else if(usr.shari)
usr<<"You release your Sharingan."
usr.overlays -= 'sharingan.dmi'
usr.overlays -= 'sharingan.dmi'
usr.overlays -= 'sharingan.dmi'
usr.overlays -= 'sharingan.dmi'
usr.see_invisible = 0
usr.nin=usr.Mnin
usr.gen=usr.Mgen
usr.goingmange=0
usr.verbs -= /mob/uchiha/verb/Sharinganilluminate
usr.verbs -= /mob/uchiha/verb/Sharinganfreeze
usr.verbs -= /mob/uchiha/verb/Amateratsu
usr.verbs -= /mob/uchiha/verb/Tsukiyomi
usr.shari = 0
sleep(50)
usr.ST=0
return
mob/uchiha
verb
Sharinganfreeze(mob/M in oview(1)) // Verb used for firing the beam
set category = "Doujutsu"
set name = "Sharingan Freeze"
if(usr.firing)
return
if(M.PK==0)
return
if(usr.Frozen)
usr<<"Your frozen"
return
if(usr.captured)
usr<<"Your captured"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.PK==0)
usr<<"NON PK ZONE!"
return
if(M)
if(M.froze)
usr << "Their already froze.."
return
if(usr.froze)
usr<<"Your frozen"
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.meditating)
usr<<"Not while meditating"
return
else // If the firing var isn't 1...
M<<"Your frozen by [usr]'s Sharingan."
usr<<"You froze [M] with your Sharingan"
var/Sleeptime = round(usr.gen/10)
if(Sleeptime <= 1)
Sleeptime = 55
M.Frozen = 1
M.froze = 1
sleep(Sleeptime)
if(M)
M.Frozen=0
M<<"You break out of [usr]'s Sharingan freeze."
usr<<"[M] is free from your Sharingan!"
M.froze = 0
sleep(8)
else
M.Frozen=1
M.froze = 1
sleep(Sleeptime)
if(M)
M.Frozen=0
M<<"You break out of [usr]'s Sharingan freeze."
usr<<"[M] is free from your Sharingan!"
M.froze = 0
sleep(8)
sleep(100)
if(M)
M.froze=0
mob/var/tmp/illuminating=0
mob/uchiha
verb
Sharinganilluminate() // Verb used for firing the beam
set category = "Doujutsu"
set name = "Illuminate"
if(usr.illuminating)
return
if(usr.froze)
usr<<"Your frozen"
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.meditating)
usr<<"Not while meditating"
return
if(usr.Frozen)
usr<<"Your frozen"
return
if(usr.captured)
usr<<"Your captured"
return
usr.illuminating=1
for(var/mob/npcs/Bunshin/B in world)
if(usr.Mnin <= 25&&usr.Mgen <= 15&&usr.Mtai <= 20)
usr << "Sorry not strong enough......"
return
else
var/image/I = image('Bun.dmi',B,"googa")
src << I
usr.illu = 1
for(var/mob/npcs/KBunshin/K in world)
if(usr.Mnin <= 100&&usr.Mgen <= 111&&usr.Mtai <= 100)
usr << "no......"
return
else
var/image/I = image('Bun.dmi',K,"googa")
src << I
usr.illu = 1
for(var/mob/M in oview(10))
M.invisibility = 0
M.overlays += 'Bun.dmi'
sleep(30)
M.overlays -= 'Bun.dmi'
if(M.kawa)
M.overlays += 'Bun.dmi'
sleep(30)
M.overlays -= 'Bun.dmi'
sleep(30)
usr.illuminating=0
hurt
if(usr.froze)
usr<<"Your frozen"
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.meditating)
usr<<"Not while meditating"
return
if(usr.Frozen)
usr<<"Your frozen"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.captured)
usr<<"Your captured"
return
if(src.stop == 0)
src.health -= times
src<<"[dude] tsukiyomi does [times] damage."
dude<<"tsukiyomi does [times]."
usr.overlays-='tsukiyomistill.dmi'
usr.overlays -= 'sharingan.dmi'
sleep(20)
goto hurt
else
return
//Tsukiyomi
mob/uchiha
verb
Tsukiyomi(mob/M in oview(1)) // Verb used for firing the beam
set category = "Doujutsu"
set name = "Tsukiyomi"
if(usr.firing)
return
if(M.PK==0)
usr<<"NON PK ZONE!"
return
if(usr.PK==0)
usr<<"NON PK ZONE!"
return
if(usr.caught)
usr<<"Your captured"
return
if(usr.Frozen)
usr<<"Your frozen"
return
if(usr.captured)
usr<<"Your captured"
return
if(M.froze)
return
if(usr.froze)
usr<<"Your frozen"
return
if(usr.resting)
usr<<"Not while resting"
return
if(usr.meditating)
usr<<"Not while meditating"
return
else
usr.overlays+='Tsukiyomi.dmi'
sleep(8)
usr.overlays-='Tsukiyomi.dmi'
usr.overlays+='tsukiyomistill.dmi'
usr.overlays += 'sharingan.dmi'
usr.froze=1
M<<"Your frozen by [usr]'s Tsukiyomi."
usr<<"You froze [M] with your Tsukiyomi"
var/Sleeptime = round(usr.gen -M.gen/2)
if(Sleeptime <= 1)
Sleeptime = 1
M.Frozen=1
M.firing=1
M.froze = 1
sleep(Sleeptime)
if(M)
usr.overlays-='tsukiyomistill.dmi'
usr.overlays -= 'sharingan.dmi'
M.move=1
M<<"You break out of [usr]'s Tsukiyomi."
usr<<"[M] is free from your Tsukiyomi!"
M.froze = 0
M.Frozen=0
M.firing=0
sleep(20)
var/damage = round(usr.gen*3)
M.health -= damage
view(usr)<<"[M] has recieved [damage] damage from Tsukiyomi"
M.firing=0
if(M.health <=0)
M.Death(usr)
else
M.Frozen=1
M.froze = 1
sleep(Sleeptime)
if(M)
M<<"You break out of [usr]'s Tsukiyomi."
usr<<"[M] is free from your Tsukiyomi!"
usr.overlays-='tsukiyomistill.dmi'
usr.overlays -= 'sharingan.dmi'
M.froze = 0
M.Frozen=0
sleep(20)
var/damage = round(usr.gen*3)
M.health -= damage
view(usr)<<"[M] has recieved [damage] damage from Tsukiyomi"
if(M.health <=0)
M.Death(usr)
usr.froze = 0
sleep(100)
usr.froze=0
ID:263910
Feb 18 2008, 3:33 pm
|
|
Feb 18 2008, 3:36 pm
|
|
The code goes INSIDE the tags. And you haven't stated what the problem is. Though, I'll go out on a limb here and say your problem is using ripped code. Delete what you have and start with some tutorials.
|
hmmm man the code goes inside the DM - /DM tags o.O and tell us whats not working in the code man
|
In response to Garthor
|
|
man, most of the byond people are lazy guys that prefer to rip someone else works instead of make their own game.
|
In response to Pirata Inmortal
|
|
Unfortunate but true.
|