ID:160037
 
hey does anyone have any idea of a code for a title system for a bleach game? if you do ill give you credit for the help...thanks
Title system?
Explain what that is, and correct your typos before clicking on "post", please.

=)
In response to Totally Unexpected
Totally Unexpected wrote:
Title system?
Explain what that is, and correct your typos before clicking on "post", please.

=)

he means using stuff like
turf
titleme{icon='blah.png'}
area
newme{Click(){usr<<"NewMe Was Clicked"}}
loadme{Click(){usr<<"Loadme Was Clicked"}}
delme{Click(){usr<<"DelMe Was Clicked"}}
In response to Entrepreneur
yea i mean somethin like that but i want it to post like (Game Owner)(Captain Of Squad 12)Seteden and stuff like that
In response to Seteden
Oh.

var/list/admins = list("Dan","Tom","Seteden")
mob
var
squad = null
rank = null
verb
say_1(T as text)
if(key in admins) world << "<b>(ADMIN) [key]:</b> [T]"
else world << "<b>[key]:</b> [T]"

say_2(T as text)
if(squad && rank) world << "<b>{[squad]::[rank]}[key]:</b> [T]"
else world << "<b>[key]:</b> [T]"

say_3(T as text)
if(squad && rank)
if(key in admins) world << "<b>(ADMIN) {[squad]::[rank]} [key]:</b> [T]"
else world << "<b>{[squad]::[rank]} [key]:</b> [T]"
else
if(key in admins) world << "<b>(ADMIN) key]:</b> [T]"
else world << "<b>[key]:</b> [T]"


Want me to add comments?
In response to Totally Unexpected
yea but how do i add that to everybody...including players?
In response to Seteden
In the code I posted above, the rank and the squad variables apply to any player in the world.

As in, anyone who is in a squad and has a rank within the squad will have the little squad "tag".

{Squad 14 :: Lieutenant} Gooseheaded: Hey guys!

The only "tag" that is "restricted", so to speak, is the ADMIN tag-- only Dan, Tom and You will have the ADMIN tag.

Keep asking if you have doubts! =)
In response to Totally Unexpected
kk i think i get it....thanks
In response to Seteden
i guess i dont get it xD....it wont pull up the titles or anything in OOC
In response to Seteden
Did you assign the squad/rank at some point or another?
In response to Elecrusher
Elecrusher wrote:
Did you assign the squad/rank at some point or another?

yea....i think so
In response to Seteden
I would suggest The DM Guide.
In response to Ephemerality
Ephemerality wrote:
I would suggest The DM Guide.


ok yea i have the squad thing added....i just needa figure out how to get em to appear in OOC
In response to Seteden
Assuming that, by "OOC", you mean some sort of proc that sends a message, or a separate output element... did you embed the var(iable) that is holding the title in the text string?
In response to Schnitzelnagler
eh...gimme a bit to check
In response to Seteden
It would help if you posted the relevant code snippet as well ;)
In response to Schnitzelnagler
i guess it would huh?
In response to Seteden
obj
ooc
name = "OOC"
icon = 'bars.dmi'
screen_loc = "3,1"
icon_state = "ooc"
layer = MOB_LAYER+100
Click()
var/msg=input("What do you wish to OOC?","OOC")as text
if(usr)
var/list/L
L = list("font size","font color")
for(var/H in L)
if(findtext(msg,H))
alert("No html in text!")
return
if(usr.GM<4)
if(usr.muted)
alert("You are muted!")
return
if(msg == "")
return
if(!worldC)
alert("The world is muted!")
return
if(length(msg) >= 200)
alert("Your message is too long.")
return
if(usr.filter(msg,tags) == TRUE)
usr.html()
return
if(usr.filter(msg,profane) == TRUE)
usr.profane()
return
else
if(usr.spamcheck == TRUE)
usr << "<b>Please wait before talking again."
return
else
usr.spamcheck()
world << "<b><font color=white>[usr]: [msg]"
text2file("[time2text(world.realtime)]:[usr] says, [msg]","log.txt")<\DM>
In response to Seteden
Many mistakes I see in that one. Rookie ones anyways. Improper indentation is a big one. That if(usr) line is going to get an error for not having any "effects" (as I call them) under it.
In response to Mizukouken Ketsu
the worldchat runs fine....i just dont understand how to get the titles to "pop-up"
Page: 1 2