ID:179025
 
in the game im making you have to go and find 3 rings. i need a code for each ring to get them. what im trying to say is i need a get code for the rings, and when you get them i want an announcement. example::: Soshin Has Found The Red Ring!! can anyone help?
Hmm.. You could use my tutorial, found under tutorials, or at http://www.angelfire.com/games4/byond

But ill answer your question.

You need to make a regular get verb..
obj
red_ring
verb
Get()
set src in oview(1)
src.Move(usr)


Then just announce that they got it, to the world.
world << "[usr] has obtained the Red Ring!"


Hope i helped.

-Rcet
In response to Rcet
i forgot onething that i hope you might answer. how could i make it to where you take the rings to tha king, then he knights you as a result and changes your icon to a knight icon? thanx for answering the last question
In response to Soshin
src.icon = 'newicon.dmi'
In response to Soshin
This is how you would do it. (a little advanced)
mob
King
verb
Return_Ring()
var/has_red_ring = locate(/obj/red_ring/) in usr.contents //set a var, to locate an obj
var/has_blue_ring = locate(/obj/blue_ring/) in usr.contents //set a var, to locate an obj
if(has_blue_ring && has_red_ring)
usr << "King: Good! You have the rings! Now I shall knight you!"
usr.icon = 'knight.dmi'
else
usr << "King: You don't have the rings??...."


Hope i helped.

-Rcet

In response to Rcet
there are 2 things now that are standing in my way, 1 the return rings verb dosent work, and 2 there is a HUGE lag problem. please help me again