Author Topic: TRPG Weapon Scripting  (Read 22531 times)

0 Members and 1 Guest are viewing this topic.

NatasD-DD

  • Goblin Pup
  • *
  • Posts: 26
  • Reputation: +0/-0
    • http://www.geocities.com/natasd
TRPG Weapon Scripting
« on: April 4, 2003 09:10 am CST »
I need some help with scripting a new wepon. I entred the code into the scripts.vol file, but when I launched the server, I got error messages saying "Game::EndFrame: UnknownCommand." Here is the weapon script:
Is there a different way I am supposed to enter my scripts into the files?


//****************************
//   SLAYER
//****************************
$AccessoryVar[Slayer, $AccessoryType] = $SwordAccessoryType;
$AccessoryVar[Slayer, $SpecialVar] = "1 300";
$AccessoryVar[Slayer, $Weight] = 10;
$AccessoryVar[Slayer, $MiscInfo] = "A great sword used by the mighty Dragon Slayers";
$SkillType[Slayer] = $SkillSlashing;
$WeaponDelay[Slayer] = 2.5;

ItemImageData SlayerImage
{
     shapeFile  = "sword";
     mountPoint = 0;

     weaponType = 0; // Single Shot
     reloadTime = 0;
     fireTime = GetDelay(Slayer);
     minEnergy = 0;
     maxEnergy = 0;

     accuFire = true;

     sfxFire = SoundSwing1;
     sfxActivate = AxeSlash2;
};
ItemData Slayer
{
     heading = "bWeapons";
     description = "Slayer";
     className = "Weapon";
     shapeFile  = "sword";
     hudIcon = "blaster";
     shadowDetailMask = 4;
     imageType = SlayerImage;
     price = 0;
     showWeaponBar = true;
};
function SlayerImage::onFire(%player, %slot)
{
     MeleeAttack(%player, GetRange(Slayer), Slayer);
}
« Last Edit: December 31, 1969 06:00 pm CST by NatasD-DD »


<img src="http://www.geocities.com/natasd/natasd2.txt">

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #1 on: April 4, 2003 04:58 pm CST »
Don't EVER edit directly into the scripts.vol


Use Winvol or something to extract the files... Edit them then... ANd finally pack it into a vol.

You can get winvol from planettribes.com

They also have visual VT which will compile the files into a scripts.vol
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

NatasD-DD

  • Goblin Pup
  • *
  • Posts: 26
  • Reputation: +0/-0
    • http://www.geocities.com/natasd
(No subject)
« Reply #2 on: April 4, 2003 11:23 pm CST »
So once I extract weapons.cs from scripts.vol I edit it and place my weapon script in the weapon.cs file, then build it as a .vol file?  Then just exec the weapons.vol file? Excuse me, but still new at this  :roll:

Thanks for your help...
« Last Edit: December 31, 1969 06:00 pm CST by NatasD-DD »


<img src="http://www.geocities.com/natasd/natasd2.txt">

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #3 on: April 4, 2003 11:27 pm CST »
no no no...

once you edit weapons.cs..

Put all the cs files back into scripts.vol and replace with the one in your TRPG dir.
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

NatasD-DD

  • Goblin Pup
  • *
  • Posts: 26
  • Reputation: +0/-0
    • http://www.geocities.com/natasd
(No subject)
« Reply #4 on: April 4, 2003 11:32 pm CST »
Okay, okay, okay I think I have it now.

Extract all .cs files from scripts.vol Edit the .cs files that I need to, and then re-build the scripts.vol file, then replace the the scripts.vol file in the /rpg folder. Right? I think...
« Last Edit: December 31, 1969 06:00 pm CST by NatasD-DD »


<img src="http://www.geocities.com/natasd/natasd2.txt">

eViL

  • Uber Menace
  • *******
  • Posts: 1,022
  • Reputation: +0/-0
(No subject)
« Reply #5 on: April 5, 2003 12:52 am CST »
yea, you got it that time.
« Last Edit: December 31, 1969 06:00 pm CST by eViL »
Quote from: "LastWish || NextWish"
eViL, you were probably the coolest but most misunderstood person in this community.. maybe the rest will find out how cool of a person you are some day, and don't get too mad at the people who dont understand you.. its their loss in the end.

NatasD-DD

  • Goblin Pup
  • *
  • Posts: 26
  • Reputation: +0/-0
    • http://www.geocities.com/natasd
(No subject)
« Reply #6 on: April 5, 2003 11:33 pm CST »
Yeah I got it now. I downloaded the Winvol and extracted the .cs files, edited them, but now I cant find a damn rebuilder. Do you know where I would be able to find one?
« Last Edit: December 31, 1969 06:00 pm CST by NatasD-DD »


<img src="http://www.geocities.com/natasd/natasd2.txt">

Dirk

  • Undead Hero
  • ****
  • Posts: 227
  • Reputation: +0/-0
(No subject)
« Reply #7 on: April 6, 2003 12:40 am CST »
Not my area of expertise, but here:

http://www.annihilation.info/modules.ph ... load&cid=3

I believe that first one should do the trick.
« Last Edit: December 31, 1969 06:00 pm CST by Dirk »

NatasD-DD

  • Goblin Pup
  • *
  • Posts: 26
  • Reputation: +0/-0
    • http://www.geocities.com/natasd
(No subject)
« Reply #8 on: April 6, 2003 09:12 am CDT »
:D  Damn I have looked everywhere. Thanks a lot man...
« Last Edit: December 31, 1969 06:00 pm CST by NatasD-DD »


<img src="http://www.geocities.com/natasd/natasd2.txt">