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

Pages: [1]
1
Modification Help / Re: What's wrong with this code?
« on: December 11, 2013, 06:42:23 AM »
Mhhhh... You know what, I'll go pick up on Python.

2
Modification Help / Re: What's wrong with this code?
« on: December 08, 2013, 11:08:59 AM »
Forgot to include this, but it functions properly, executes on the game's start properly, but when executed, all chat is not printed onto the screen. It forces me to read people's chat via the console. When I give it the phrase "testing testing 123", I check console and it outputs the proper text, directly after mine.

3
Modification Help / What's wrong with this code?
« on: December 08, 2013, 11:04:37 AM »
As i'm learning TorqueScript, I've always had trouble with this line. I'm learning from ThinInvisible's old post, and I'm trying to create a roulette game in chat by myself. With this code failing, it makes the roulette game impossible, because of the clientCmdChatMessage being necessary to it. Here it is!
(Yes, I know chatbots are annoying unless they're only a calculator. Yes I will delete it after it works.)

package chatBot {
function clientCmdChatMessage(%a,%b,%c,%msg,%cp,%name,%cs,%msg) {
if (%msg $= "testing testing 123") {
  if (%name $= "Ark7") {
  commandToServer('messageSent',"Your testing is win!");
     }
}
}
};
activatePackage(chatBot);

Pages: [1]