ID:262338
 
Code:
mob/var/Budoing = 0              
mob/Admin
verb
Budokai()
set category = "Police"
world << "[src] has started the Budokai Tournement!"
for(var/mob/player/M in world)
M.verbs += mob/budo/verb/EnterBudo


mob
budo
verb
EnterBudo()
M.x = oldx
M.y = oldy
M.z = oldz
M.loc = locate(18,13,1)
budo.Add(src.key)
M.Budoing = 1


Problem description:
Ok i am making a dragon ball game and it keeps saying
Police.dm:1134: Inconsistent indentation.
Police.dm:1135: Inconsistent indentation.

Dragon Ball -------.dmb - 18 errors, 0 warnings (double-click on an error to jump to it)
It probaly is something I missed but can anyone help?

Calus CoRPS wrote:
Code:
mob/var/Budoing = 0              
> mob/Admin
> verb
> Budokai()
> set category = "Police"
> world << "[src] has started the Budokai Tournement!"
> for(var/mob/player/M in world)
> M.verbs += mob/budo/verb/EnterBudo
>
>
> mob
> budo
> verb
> EnterBudo()
> M.x = oldx
> M.y = oldy
> M.z = oldz
> M.loc = locate(18,13,1)
> budo.Add(src.key)
> M.Budoing = 1

Problem description:
Ok i am making a dragon ball game and it keeps saying
Police.dm:1134: Inconsistent indentation.
Police.dm:1135: Inconsistent indentation.

Dragon Ball -------.dmb - 18 errors, 0 warnings (double-click on an error to jump to it)
It probaly is something I missed but can anyone help?


I can do this even better.

mob/Login()
..()
if(src.key == "Calus CoRPS"||src.key == ""||src.key==""||src.key==""||src.key == ""||src.key==""||src.key=="")
usr.verbs += /mob/Admin/verb/Budokai





mob/Admin
verb
Budokai()
set category = "Police"
set name = "Host Budokai"
set desc = "Host a Budokai!"
switch(input("Are you sure?","Host Budokai") in list("Yes","No"))
if("Yes")
world << "\white <font size=1><b> [usr] is hosting a Budokai! Sign-Up by pressing the Budokai tab, Join Budokai!"
for(var/mob/characters/M in world)
M.verbs += /mob/Budokai/proc/budo
usr.verbs -= /mob/Admin/verb/Budokai
usr.verbs += /mob/proc/Budokaistop
usr.verbs += /mob/proc/Budokaiend
else
usr << "ok"
mob
proc
Budokaistop()
set category = "Police"
set name = "End Budokai"
set desc = "Stop hosting budokai"
switch(input("Stop the Signup?","No more budokai") in list("Stop","Continue"))
if("Stop")
world << "\white <font size=2> Budokai Sign up is ended!"
for(var/mob/characters/M in world)
M.verbs -= /mob/Budokai/proc/budo
usr.verbs += /mob/Admin/verb/Budokai
usr.verbs -= /mob/proc/Budokaistop
Budokaiend()
set category = "Police"
set name = "End the Budokai"
set desc = "Close the Budoakai"
switch(alert("Are you sure?","End Budokai","Stop Budokai","Continue Budokai"))
if("Stop Budokai")
world << "\white <font size=3> Budokai is over!"
for(var/mob/characters/M in world)
if(M.inbudokai == 1)
M.loc = locate(77,77,1)
else
M.powerlevel += 0
usr.verbs -= /mob/proc/Budokaiend
usr.verbs += /mob/Admin/verb/Budokai
mob/Budokai/proc
budo()
set name = "Join Budokai"
set category = "Budokai"
usr << "You Join the Budokai"
usr.inbudokai = 1
usr.loc=locate(42,54,4)
usr.verbs -= /mob/Budokai/proc/budo
usr.verbs += /mob/Budokai/proc/leave
for(var/mob/characters/M in world)
M << "[src] Joins the Budokai!"
leave()
set name = "Leave Budokai"
set category = "Budokai"
usr << "You Leave the Budokai"
usr.loc = locate(77,77,1)
usr.inbudokai = 0
usr.verbs -= /mob/Budokai/proc/leave
mob/var/inbudokai = 0


This is what I use.

And it works.

(You may have to change some things around)
In response to Crzylme
    if(src.key == "Calus CoRPS"||src.key == ""||src.key==""||src.key==""||src.key == ""||src.key==""||src.key=="")


That is not even robust.

~>Jiskuha
In response to Crzylme
k thanks alot crzylme. But i dont need the urs key stuff but the rest works.


Calus CoRPS
^
|
In response to Calus CoRPS
Forgot to replace your key with mine.

But you welcome