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.


Messages - infiniteLoop

Pages: 1 2 [3] 4 5
31
Modification Help / Re: Gui Ml Text Edit Profile, Tabbing?
« on: September 15, 2011, 06:13:03 PM »
Alright, thanks.

32
Modification Help / Re: Gui Ml Text Edit Profile, Tabbing?
« on: September 15, 2011, 05:41:24 PM »
Several people, including myself, have tried this to no avail.  As it turns out, when you hit tab in a gui ml text edit box, it does add a tab, but the text box does not show tabs.  I would reccommend you make an accelerator that instead simulates hitting the spacebar 5 times when the tab key is pressed.

Yeah I was thinking about that space bar method. But how does one check if the tab key is pressed, besides key-binding?

33
Modification Help / Gui Ml Text Edit Profile, Tabbing?
« on: September 15, 2011, 02:22:15 PM »
I am trying to figure out a way so when i press Tab, it tabs like it would in let's say, notepad or some other text editor. I can't figure out a way to do this, anyone have any ideas?

34
Modification Help / Re: Client Sided Slash Command
« on: September 14, 2011, 03:00:39 PM »
Can we not overwrite packages for support code?

The way the code I posted works is that it allows scripters to implement functions beginning with "clCmd" that are triggered when the user types in their chat. So for example, if I created the function clCmdQuit, it would activate when I typed /quit on any server. Arguments are passed as you would expect if you have created "serverCmd" functions before.

Code: [Select]
// Called when I type /randomnum 1 6
// Above example shows a random number between 1 and 6

function clCmdRandomNum(%min,%max)
{
    commandToServer('messageSent',"Random number: " @ getRandom(%min,%max));
}

// Paste the clCmd package below here

Oh, thought that it was just his package name, not something of yours.

35
Suggestions & Requests / Re: Requesting script
« on: September 14, 2011, 02:20:49 PM »
I meant In the way for some reason i typed not, musta been tired, i meant your walking but cant see where your going cus a sword is BANG IN YOUR FACE the whole time

Because the sword is huge? The claymore looked nice and tidy on the hip.

37
Modification Help / Re: Bullstuff syntax error
« on: September 14, 2011, 07:19:22 AM »
I did that, it doesn't work.

Just wait for someone else to help you, I personally hate working with datablocks.

38
Modification Help / Re: Bullstuff syntax error
« on: September 14, 2011, 07:04:51 AM »
Alright now I no longer have a syntax error but I have one last issue.


Try taking dataBlock = "AngelFishEmitterNode"; completely.

39
Modification Help / Re: Bullstuff syntax error
« on: September 14, 2011, 06:58:29 AM »
datablock ParticleEmitterData(AngelFishEmitter)
{
   ejectionPeriodMS = 3500;
   periodVarianceMS = 0;
   ejectionVelocity = 0.0;
   ejectionOffset   = 1;
   velocityVariance = 0.0;
   thetaMin         = 0;
   thetaMax         = 0;
   phiReferenceVel  = 0;
   phiVariance      = 0;
   lifeTimeMS = 100;
   particles = "AngelFishParticle";
   datablock ParticleEmitterNodeData(AngelFishEmitterNode)
   overrideAdvance = false;
   useEmitterColors = true;
   uiName = "Angel Fish";
};

Should be

datablock ParticleEmitterData(AngelFishEmitter)
{
   ejectionPeriodMS = 3500;
   periodVarianceMS = 0;
   ejectionVelocity = 0.0;
   ejectionOffset   = 1;
   velocityVariance = 0.0;
   thetaMin         = 0;
   thetaMax         = 0;
   phiReferenceVel  = 0;
   phiVariance      = 0;
   lifeTimeMS = 100;
   particles = "AngelFishParticle";
   datablock = "AngelFishEmitterNode";
   overrideAdvance = false;
   useEmitterColors = true;
   uiName = "Angel Fish";
};


If i am incorrect, just wait until someone who likes to work with datablocks comes through.

40
Modification Help / Re: Bullstuff syntax error
« on: September 14, 2011, 06:48:30 AM »
I don't understand what is wrong with this code, I know that nothing is virtually wrong with it. It says something is wrong with "A" what could that possibly mean?


You can't just define a datablock inside of whatever that is. Post your whole code.

41
Modification Help / Re: Client Sided Slash Command
« on: September 14, 2011, 06:41:11 AM »
I don't know which way you are trying to do this but look below:

You type /j and it'll perform a jump for you, I could get more complex with it but I'm just keeping it simple.

package clCmd
{
   function NMH_Type::send(%this)
   {
      %msg = %this.getValue();
      
      %fw = getWord(%msg,0);

      if(%fw $= "/j")
      {
         jump(1);

         schedule(100,0,jump,0);

         canvas.popDialog(newMessageHud);

         return true;
      }
      
      Parent::send(%this);
   }
};
activatePackage(clCmd);



This way evaluates code so like if you typed, /moveForward(1); in the chat, it'll move forward for you.

package clCmd
{
   function NMH_Type::send(%this)
   {
      %msg = %this.getValue();

      if(getSubstr(%msg,0,1) $= "/")
      {
         %f = getSubStr(%msg,1,strLen(%msg));

         %if = getSubStr(%msg,1,strStr(%msg,"(")-1);

         if(isFunction(%if))
         {
            eval(%f);

            canvas.popdialog(newmessagehud);

            return true;
         }
      }
      Parent::send(%this);
   }
};
activatePackage(clCmd);

42
Modification Help / Re: is this Possible?
« on: September 12, 2011, 04:56:21 PM »
Oh, excuse me for that error, remove my messageBoxOk and use the commandToClient(%client,'messageBoxOk',%title,%text);

43
Modification Help / Re: is this Possible?
« on: September 11, 2011, 05:48:55 PM »
where do you want them to pop up?

I think
for(%i = 0; %i < clientGroup.getCount(); %i++)
{
%i = %client;
if(%client.isAdmin())
{
echo(%client)
}
}
will work (could be wrong, been a while since I have done much with blockland or torque)
replace echo with whatever you want to do to find out the list of names, might I suggest using fileobject to write it into a txt doc?

function serverCmdAdmin(%client)
{
     for(%i=0;%i<clientGroup.getCount();%i++)
     {
          %cl = clientGroup.getObject(%i);
          if(%cl.isAdmin || %cl.isSuperAdmin)
          {
               %add = (%add $= "") ? %add = %cl SPC %cl.name : %add = %add @ "\n" @ %cl SPC %cl.name;
          }
     }
     messageBoxOk("Admins",%add);
}

44
Modification Help / Re: Buttons
« on: September 11, 2011, 05:27:24 PM »
then find that it still does not always work.

No, it always does work.

45
Modification Help / Re: Blockland Adventure Mode
« on: September 09, 2011, 04:40:34 PM »
Bump. infiniteLoop has completed our first script, building may be able to begin sometime soon.

Not any time soon*

Pages: 1 2 [3] 4 5