Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - 0xBRIANSMITH

Pages: 1 2 3 4 5 [6]
76
Games / Candybox2, gentlemen.
« on: October 25, 2013, 12:12:32 AM »
gentlementalmen.

let the games
begin.

77
Games / Clicking Bad - Another loving cookie clicker remake
« on: October 22, 2013, 07:21:03 PM »
now with 90% more meth
My current stats:


fiteme

78
Off Topic / Whats your favorite board?
« on: October 19, 2013, 10:50:48 AM »
I am not sure I have ever seen one of these topics, so I am going for it.
What is your favorite board?
Mine, personally, is Modification Discussion. I love seeing new Add-Ons while indev.

79
Gallery / Sepia Shader
« on: October 16, 2013, 10:47:28 PM »
Just made a fun little sepia shader and made some interesting photo with it.

Made with the default MotE Mansion GameMode.

80
Modification Help / Player::giveTool not functioning (oddly)
« on: October 14, 2013, 08:47:11 PM »
   function Player::giveTool(%this,%image)
   {
      if(getWordCount(%image) == 1)
      {
         for(%i = 0; %i < %this.getDatablock().maxTools; %i++)
         {
            %tool = %this.tool[%i];
            talk(%tool);
            if(!%tool)
            {
               %this.tool[%i] = %image;
               %this.weaponCount++;
               messageClient(%this.client,'MsgItemPickup','',%i,%image.getID());
               break;
            }
         }
      }
      else
      {
         for(%j=0;%j<getWordCount(%image);%j++)
         {
            %img = getWord(%image,%j);
            for(%i = 0; %i < %this.getDatablock().maxTools; %i++)
            {
               %tool = %this.tool[%i];
               if(!%tool)
               {
                  %this.tool[%i] = %img;
                  %this.weaponCount++;
                  messageClient(%this.client,'MsgItemPickup','',%i,%img.getID());
                  break;
               }
            }
         }
      }
   }


There are no console errors. Though when I call
findclientbyname(brian).player.giveTool("hammerItem");
it does not work.

edit: adding in the messageClient .getID(), it makes it so it appears in my tools, but opening it nothing shows up in my hand.

Pages: 1 2 3 4 5 [6]