Blockland Forums > Modification Help
Stupid questions must be asked
Pages: (1/1)
Katadeus:
So, I'm trying to make a weapon based off of the rocket launcher, but I cannot figure out one thing: how to "cite" the original weapon (Rocket launcher) but still change things. I know how to actually use the original weapon, thanks to the other threads, but I don't know how to make any modifications without them being rejected for inconsistency.
Red_Guy:
see my posts in this thread:
http://forum.blockland.us/index.php?topic=147039.0
Katadeus:
That is exactly what I tried to do. However, no matter what I do, it seems to find an error in a very unspecific location.
Here is the console, in a nice shade of blue for the discerning customer:
Loading Add-On: Weapon_Mod_Rocket
Add-Ons/Weapon_Mod_Rocket/Weapon_Mod_Rocket.cs Line: 21 - Syntax error.
>>> Some error context, with ## on sides of error halt:
^error("ERROR: You Dun Has Nu Rocket Lanchur!");
}
else
{
^exec("./Weapon_Rocket_Launcher.cs");
}
datablock ExplosionData(ModRocketExplosion)
{
^shakeCamera = false;
^radiusDamage = 0;
};
datablock ProjectileData(ModRocketProjectile)
^uiName ##=## "Modified Rocket";
};
datablock ItemData(ModRocketItem)
{
^uiName = "Modified Rocket";
};
>>> Error report complete.
ADD-ON "Weapon_Mod_Rocket" CONTAINS SYNTAX ERRORS
It has done this for modified directDamage values, too.
I did load the rocket launcher datablocks correctly, too.
otto-san:
--- Code: ---datablock ProjectileData(ModRocketProjectile)
^uiName ##=## "Modified Rocket";
};
--- End code ---
there needs to be an opening curly bracket
Katadeus:
lol. Can't believe I missed that.
Pages: (1/1)