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 - laremere

Pages: 1 ... 49 50 51 52 53 [54] 55 56 57 58 59 ... 196
796
Modification Help / Re: scripting help [STILL NEEDS HELP!]
« on: February 13, 2009, 07:57:02 AM »
No.


Are you wanting server sided code or client sided?

797
Modification Help / Re: Need help with a server command
« on: February 12, 2009, 09:47:38 PM »
You don't need to package everything, unless...uhhh i forgot what things you should package ._.
http://forum.blockland.us/index.php?topic=21811.0

798
Off Topic / Re: Ctrl + V game.
« on: February 12, 2009, 05:26:38 PM »
EulerToAxis(%euler)

799
Modification Help / Re: scripting help [STILL NEEDS HELP!]
« on: February 12, 2009, 01:55:22 AM »
No, that is a visual representation of what is going on in the code as far as functions being called.

If you look here: Entering clientCmdChatMessage(8026, , , 133 [N]Gamefandan TRPA: hello, [N], Gamefandan, TRPA, hello)

We see what function we need to use, but in order to use this function, we need to put it into a package.  You can find a tutorial on packaging functions here: http://forum.blockland.us/index.php?topic=21811.0 
I think you are smart enough to figure out exactly what attribute of clientCmdChatMessage does what.

800
Modification Help / Re: Brick Area
« on: February 12, 2009, 01:53:08 AM »
As far as I know capitalization doesn't matter in TGE scripts.

Edit: Typo

801
Modification Help / Re: Brick Area
« on: February 12, 2009, 01:47:01 AM »
Code: [Select]
package Lolzplant
{
function fxDtsBrick::onPlant(%brick)
{
parent::onPlant(%brick);
%client = getBrickGroupFromObject(%brick).client;
%Colorz = %brick.getcolorid();
%brickdatablock = %brick.getdatablock();
%Bmass = %brickdatablock.BrickSizeX * %brickdatablock.BrickSizeY * %brickdatablock.BrickSizeZ;

if(%Colorz >= 1 && %Colorz <= 46)
{
%Mattobuild = "Special";
}

if(%Colorz >= 47 && %Colorz <= 55)
{
%Mattobuild = "Stone";
}

if(%client.quantity[%Mattobuild] < %Bmass)
{
commandToClient(%client, 'centerPrint', "\c6You need " @ %Bmass @ " \c2" @ %Mattobuild @ "!", 3);
%brick.KillBrick();
return;
}
%client.quantity[%Mattobuild] -= %BMass;
}
};
activatepackage(Lolzplant);
That should work.  You are using the wrong variables.  (I just looked up an old building script I made, which when I was making it I found the variables exactly how I told you to when I first replied.)

802
Modification Help / Re: Brick Area
« on: February 11, 2009, 11:23:08 PM »
Does that code not work, you kinda posted it without explaining why you did.

803
Modification Help / Re: scripting help [STILL NEEDS HELP!]
« on: February 11, 2009, 11:18:55 PM »
Code: [Select]
Entering clientCmdChatMessage(8026, , , 133 [N]Gamefandan TRPA: hello, [N], Gamefandan, TRPA, hello) //This is the first line, this is when the server is telling the client that someone spoke.  (this is probably what you want to package, just make sure to call the parent, or you'll break your chat)
   Entering onChatMessage( [N]Gamefandan TRPA: hello, , ) //This is a function that was called by the first function.
      Entering newChatHud_AddLine( [N]Gamefandan TRPA: hello) //This is another function, the function names should be speaking for themselfs.  This is telling the chat hud in your game to add a new line to add a new line.
         Entering NewChatSO::addLine(8170, [N]Gamefandan TRPA: hello) //Each one of these lines is when the function is being entered within the processing of the code.  What comes after the function, as is in the parenthesis are what is entered into the function.  Note that datablocks and other named things are reverted into their number form when being shown here, so you may need to look the number up.
            Entering NewChatSO::displayLatest(8170)
               Entering newMessageHud::updatePosition(newMessageHud)
               Leaving newMessageHud::updatePosition() - return //This is the first leaving line.  The function is being left, and the program flow is going back into the function that called the function that is ending.  There is nothing that is returned in this code, but if there was something, it would be shown after "- return".
               Entering newChatHud_UpdateScrollDownIndicator()
                  Entering newChatHud_UpdateIndicatorPosition()
                  Leaving newChatHud_UpdateIndicatorPosition() - return
               Leaving newChatHud_UpdateScrollDownIndicator() - return
            Leaving NewChatSO::displayLatest() - return
         Leaving NewChatSO::addLine() - return
         Entering newMessageHud::updatePosition(newMessageHud)
         Leaving newMessageHud::updatePosition() - return
         Entering newChatHud_UpdateScrollDownIndicator()
            Entering newChatHud_UpdateIndicatorPosition()
            Leaving newChatHud_UpdateIndicatorPosition() - return
         Leaving newChatHud_UpdateScrollDownIndicator() - return
      Leaving newChatHud_AddLine() - return
   Leaving onChatMessage() - return
Leaving clientCmdChatMessage() - return
That help a bit?

Also, I'm assuming you want to be client sided, you'll want to look at some other stuff it your going for server sided.

804
Modification Help / Re: Brick Area
« on: February 11, 2009, 11:08:00 PM »
%brickdatablock = %brick.getdatablock();

%Bmass = %brickdatablock.SizeX * %brickdatablock.SizeY * %brickdatablock.SizeZ;

Think about what your working with.

805
Modification Help / Re: Brick Area
« on: February 11, 2009, 10:59:21 PM »
tree();

Look for the game objects, look for the datablocks (they come first on the list since the lowest numbers are always reserved for them), find a brick datablock, realize how simple that was.

806
Modification Help / Re: scripting help [STILL NEEDS HELP!]
« on: February 11, 2009, 10:54:46 PM »
Open blockland, do what I told you, then close blockland, and go into the console.log file, and copy everything that was echo'd during the trace, and I'll help you through it a bit, though I'm not going to help you with everything, since you need to learn on your own and be able to code without going strait to the help section every time you don't know something needed for your code.

807
Modification Help / Re: I need some help with my first script
« on: February 11, 2009, 10:50:24 PM »
Seriously, gamefandan, you're very new to scripting, and are in no way fit to help others.

I commented in a few areas, and used proper formatting.  There are a few ways you could cut down on the size of the code, but people need to take first learning coding logic one step at a time.
Code: [Select]
function servercmdStun(%client, %user)
{
if(%client.isSuperAdmin == false  || %user !$= "") //"=" is used for setting variables, such as "%variable= 5", you need to use "==", because that is used for comparing two variables.
{
return;
}
if(%user !$= "")
{
%target = findClientByName(%user).player;
%targetC = findClientByName(%user);
%target.shakeCamera(); //I don't know if this is a real function, and I can't get on to test if it is.  You may also not have everything you need to make it work.
messageClient(%client, '', '\c6You've Stunned %1', %targetC.name);
}
}

Though your better then someone who gets on the irc, asks how to use functions, then after asking what they do know several times they end up telling you they know nothing at all about coding.

808
Modification Help / Re: scripting help [STILL NEEDS HELP!]
« on: February 11, 2009, 10:39:06 PM »
1.In the console type: trace(1);
2.Close the console and say something in chat.
3.Type trace(0); in the console to stop trace.
4.Find the function your looking for and figure out the attributes.
5.Package and make sure to call the parent.

If you don't understand this, you need to look at basic scripts and try to figure out how they work, and mess around with them to get an understanding of how coding works.

809
Clan Discussion / Re: Blockland Alliance Navy [BAN]
« on: February 11, 2009, 10:31:22 PM »
Wow, the Candy Land invasion is sure looking good.



Ace, the thing I'm making for you (not map) is about half done I would think.  I have a bunch of it done, all that needs to be done is making the players physically chose the spawn point they're given, and then make an auto-sorter.

810
Clan Discussion / Re: Blockland Alliance Navy [BAN]
« on: February 10, 2009, 10:24:43 PM »
Ah, ok, that makes since.  We need to just make sure that don't get too filled up on some super duper yummy sugerplums, so we can save room for cookies once we reach Grandma Nut.

Also, how do we know that they don't have an informant here?  We need to make sure no squealers get out with our plan, or it may be bye bye Mr.Plumpy.

Pages: 1 ... 49 50 51 52 53 [54] 55 56 57 58 59 ... 196