rune

Settable:
no
Arguments:
object
Return Value:
object

Returns the rune on the given object, or NULL if it has no rune.


Example:

setpr grenade 3 on_rune-test
if (rune(%o),
 (msg_character(%a,'has rune!'),msg_character(%a,'runename: '+name(rune(%o))),return(true)),
 (msg_character(%a,'not has rune!'),return(true))
),
return(false)
@

Result:

> make obj 763
You magestically create Water Opal Rune!

> rune-test
Not has rune!

> socket rune grenade
The holy grenade glows brightly as the Water Opal Rune is inserted and now feels more powerful!

> rune-test
Has rune!
Runename: Water_Opal rune