Decorate. An Issue.

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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.

Decorate. An Issue.

Postby Beetow Brode » Sat Nov 10, 2018 11:39 pm

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 allExpand view
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
Beetow Brode
 
Joined: 24 Sep 2016
Location: Canadia, Im Serious
Discord: Punkin#8267

Re: Decorate. An Issue.

Postby Arctangent » Sat Nov 10, 2018 11:44 pm

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
Arctangent
squawky
 
Joined: 06 Nov 2014
Discord: SquawkyAtan#2371

Re: Decorate. An Issue.

Postby Beetow Brode » Sat Nov 10, 2018 11:52 pm

oh my god, the sleep deprivation is getting to me...
User avatar
Beetow Brode
 
Joined: 24 Sep 2016
Location: Canadia, Im Serious
Discord: Punkin#8267


Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest