ID:156951
 
Well, i would like to make a MOTD system..
where, Admin can change it
and players can see the message in a new window when its changed...
var/MOTD 

mob/admin/verb/Message_of_the_Day()
MOTD=input("What is the new Message of the Day?")as text
world<<MOTD



That is a simple version for you, from there you can work on that in checking for duplicate entries (as in not posting the same exact thing), looking if it is blank, etc.
In response to EnigmaticGallivanter
i want it to open in a new window!
In response to Gokussj22
Create one then.

Either in the interface (dmf file) or a HTML one.
In response to Gokussj22
Gokussj22 wrote:
i want it to open in a new window!

var/MOTD 

mob/admin/verb/Message_of_the_Day()
MOTD=input("What is the new Message of the Day?")as text
alert(world,MOTD)


that will have it be in an Alert box, to have it be in a new window, you could make a customized window using the interface, or have a browser popup and display the message.
In response to EnigmaticGallivanter
well,
i have made a MOTD that looks like
var/MOTD={"
<html>
<marquee direction=left>MOTD</marquee><BR>
Recent updates will be posted here!!
</html>
"}


// Remember to us <br> to break a line and go further down,
// or else it will all be on the same line!

mob/proc/MOTD_Display()
var/html="<body bgcolor=black><font color=white><b><u></b></u>[MOTD]</font></body>"
src << browse(html,"window=Stats;size=270x280") // Controls the size of the box.

mob/verb/View_MOTD()
set category="Channels"
src.MOTD_Display() // Display it when someone clicks the command


i want it so that
Admin can change it and it displays in A NEW WINDOW!
In response to Gokussj22
well,
i have made a MOTD that looks like
var/MOTD={"
<html>
<marquee direction=left>MOTD</marquee><BR>
Recent updates will be posted here!!
</html>
"}


// Remember to us <br> to break a line and go further down,
// or else it will all be on the same line!

mob/proc/MOTD_Display()
var/html="<body bgcolor=black><font color=white><b><u></b></u>[MOTD]</font></body>"
src << browse(html,"window=Stats;size=270x280") // Controls the size of the box.

mob/verb/View_MOTD()
set category="Channels"
src.MOTD_Display() // Display it when someone clicks the command


i want it so that
Admin can change it and it displays in A NEW WINDOW!
In response to Gokussj22
Make a verb for the admin. Make it so they can change the MOTD (or another) variable to what they input (MOTD = input...), redisplay it.
In response to GhostAnime
is Gem system possible to make??
In response to Gokussj22
I have no idea what that is. A lot of things are possible, its just the route you have to take (aka the journey) that is the hardest, not the goal.
In response to GhostAnime
well i want to make Gems and i have its icons...just need help in the coding
In response to Gokussj22
As I said before, I have no idea what you are talking about. If you want gems as objects, then you make objects with the gem name, icon, etc.
In response to Gokussj22
Gokussj22 wrote:
is Gem system possible to make??

obj
Gem