Help with a Death Note Code in Developer Help
|
|
Code:I need someone to help make this work into a pop-up Death Note.
obj Contents_Objects Death_Note name = "Death Note" icon = 'Icons.dmi' icon_state = "DeathNote" verb Write_Name(mob/M in world) set src in usr if(M.client == null) return if(usr.key == usr.key) switch(alert(usr,"Writing?","DN","Yes","No")) if("Yes") usr.text = input("What should the name be?","Enter the name")as text M.cause = input("What should the cause of death be? (if blank it will be heart attack) ","Enter the cause of death")as text if(M.cause == "") M.cause = "heart attack" if(M.n1 == usr.text) sleep(400) M<<"You have been killed by a [M.cause]" world<<"[M] has been killed of a [M.cause]" M.DeathCheck() else sleep(400) usr<<"Nothing Happens..." else if(M.n1 == usr.text) sleep(400) M<<"You have been killed by a [M.cause]" world<<"[M] has been killed of a [M.cause]" M.DeathCheck()
|
Problem description:needs to be a Pop-up death note like a Png file
(note:M.n1 is the players "real name"
|
The DM reference is located in dream maker under the tab Help --> Help On
Here is a link to the article on the web based DM Reference: http://www.byond.com/docs/ref/info.html#/proc/browse