Decorate. An Issue.

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Beetow Brode
Posts: 69
Joined: Sat Sep 24, 2016 1:46 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: "We've Got Hostiles"

Decorate. An Issue.

Post by Beetow Brode »

Okay so I renamed an already put in actor for a weapon I'm trying to make, and I don't understand why it keeps saying unexpected end of file.

Code: Select all

Actor LocketRauncher : Weapon
{
  Obituary "%o was obliterated by %k's HellStorm Cannon!"
  Weapon.SelectionOrder 2500
  Weapon.AmmoUse 1
  Weapon.AmmoGive 3
  Weapon.AmmoType "Rockets"
  +Weapon.NoAutoFire
  +Weapon.NoAutoAim
  Inventory.PickupMessage "You got the HellStorm Cannon"
  States
  {
  Ready:
    HSTM B 1 A_WeaponReady
    Loop
  Deselect:
    HSTM B 1 A_Lower
    Loop
  Select:
    HSTM B 1 A_Raise
    Loop
  Fire:
    HSTM C 4 Bright A_GunFlash
    HSTM D 0 Bright A_PlayWeaponSound("HellStorm/Fire")
    HSTM D 5 Bright A_FireCustomMissile("Reckket")
    HSTM EF 6 Bright
    HSTM B 6
    HSTM B 45 A_PlaySoundEx("HellStorm/Reload", "SoundSlot6", 0)
    Goto Ready
  Flash:
    TNT1 A 1
    Stop
  Spawn:
    HSTM A -1
    Stop
  }
}

ACTOR Reckket
{
  Radius 11
  Height 8
  Speed 20
  Damage 20
  Projectile
  +RANDOMIZE
  +DEHEXPLOSION
  +ROCKETTRAIL
  SeeSound "weapons/rocklf"
  DeathSound "weapons/rocklx"
  Obituary "$OB_MPROCKET" // "%o rode %k's rocket."
  States
  {
  Spawn:
    MISL A 1 Bright
    Loop
  Death:
    MISL B 8 Bright A_Explode
    MISL C 6 Bright
    MISL D 4 Bright
    Stop
}
User avatar
Arctangent
Posts: 1235
Joined: Thu Nov 06, 2014 1:53 pm
Contact:

Re: Decorate. An Issue.

Post by Arctangent »

Your Reckket actor definition isn't closed. It has two open curly braces - which it should have - but only one has a closed one afterwards. Hence, the parser finds the end of the file when it doesn't expect it - because it expects the Reckket definition to be closed before that.
User avatar
Beetow Brode
Posts: 69
Joined: Sat Sep 24, 2016 1:46 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: "We've Got Hostiles"

Re: Decorate. An Issue.

Post by Beetow Brode »

oh my god, the sleep deprivation is getting to me...
Post Reply

Return to “Scripting”