var/cardpick is an object.
Then I do:
var/cardname = "[cardpick]"
This will make cardname "/obj/Pieces/(something chosen at random by cardpick)"
How can I remove the "/obj/Pieces/" from cardname?
(I need to know, because I can't do 'usr << "[cardpick.name] (Rare)"')
ID:168958
![]() Aug 10 2005, 4:26 am
|
|
Hmmm...can you also tell me how to search cardname for _ and replace it with a space? I can search for it, but I don't know how to replace it.
|
copytext() has three arguments, the third one being default as the length of the text, so you don't need to do that unless you want to cut out the back part of the text. That should get rid of the "/obj/Pieces/", since the text is 12 characters long.
~~> Dragon Lord