Game Development Community

Cloak Staff That Makes The Name Dissapear

by Michael "Triskal" Collins · in General Discussion · 07/15/2003 (7:19 pm) · 4 replies

Hi, for anyof you who have wanted to change the cloak so you cant see the name when you cloak, just open up cloakStaff.cs, and after the %obj.setCloaked(True); type %obj.setShapeName(""); This will make the name dissapear.....but where it says %obj.setCloaked(False); you have to give the elf back its name, but i havent figured out how to do that so i put %obj.setShapeName("Im Nameless!"); This will set the elfs name to Im Nameless!
BTW, if someone knows how to put the original name on the elf after its done cloaking plz tell me!
thx
-Mike

#1
07/15/2003 (11:41 pm)
%obj.setCloaked(True);
%clientName = %obj.getShapeName();
%obj.setShapeName("");


%obj.setCloaked(False);
%obj.setShapeName(%clientName);

I'm pretty sure this won't work, but do some searching for the correct procedure on how to do it. and it should be able to work. You just need to get the client name and store it temporarily.
#2
07/16/2003 (6:32 am)
Hmm, ill give it a try, thx
-Mike
#3
07/16/2003 (8:56 am)
Use the following:

%obj.setShapeName(%obj.client.name);
#4
07/16/2003 (11:11 am)
I was close.