Author Topic: script line for KillBrick? New problems! D:  (Read 862 times)

I'm making a small private mod, and I want to destroy bricks when I click on them. I have everything else set up, but I would like to know how to write the KillBrick line. Is it in the same order as the Events one, or is there something else?

thanks :3


Fixed! Now I'm having problems I've had with changing and deleting parts of scripts.
It has a random error message and within the ##s, is where the paragraph break is. Can anyone fix this?
I believe I have the console still...
« Last Edit: March 01, 2009, 04:57:03 PM by GhostOfBetaTapes »


Sounds a bit like what I had on my server a little while back.

Sounds a bit like what I had on my server a little while back.
Thats so helpful to the question it makes me want to cry.

Thats so helpful to the question it makes me want to cry.
ahahahahahahaha

Thanks. Locked  :D

Ono, new problem. See first post.
« Last Edit: March 01, 2009, 04:57:18 PM by GhostOfBetaTapes »

Okay, here's the error with the script:
Code: [Select]
Loading Add-On: Script_Mining
Executing Add-Ons/Script_Mining/server.cs.
Add-Ons/Script_Mining/Script_Mining.cs Line: 187 - Syntax error.
>>> Some error context, with ## on sides of error halt:
function degrow(%brick) //recreate the brick

{

^%brick.killBrick

}##
##
package Miner

{

^^function Diggerprojectile::oncollision(%this,%obj,%col,%fade,%pos,%normal)
can anyone fix the error?  D:  It's just a normal paragraph break, and I don't think that changing to the UTF-8 format of compression will help :P

killBrick needs a (); at the end and I don't know what you're doing with the ^ at the start of the line. Also UTF-8 is a type of character encoding, not file compression.

Code: [Select]
function degrow(%brick)
{
%brick.killBrick();
}

killBrick needs a (); at the end and I don't know what you're doing with the ^ at the start of the line. Also UTF-8 is a type of character encoding, not file compression.
The ^ is actually added there in the console to show that there is a tab.

I'm just assuming he did something weird with the script file since he's talking about compressing it with a character encoding format.

I'm just assuming he did something weird with the script file since he's talking about compressing it with a character encoding format.

Oh. :P  I edited this in TextEdit in plain text mode, and save it as .cs format. ...and actually, it seems that te only problem I'm having is with the tool to kill the bricks (:O)   
killBrick needs a (); at the end and I don't know what you're doing with the ^ at the start of the line. Also UTF-8 is a type of character encoding, not file compression.

...and I didn't notice that. Lol. How did I miss that? *random facepalm*

Double post  :P

I have the (); after killBrick. I'll try recompressing into my add-ons folder again and see what happens.

EDIT: I'm out of it today! I have two of them, only did one. I'm kinda getting into the hang of scripting in torque... or that could have just jinxed it. Crap.
« Last Edit: March 01, 2009, 05:23:17 PM by GhostOfBetaTapes »

Lol. Fixed it. Locking nao  :P