Decorate expection error, offending line of code looks fine

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!)

Decorate expection error, offending line of code looks fine

Postby Sgt Nate V » Fri Nov 10, 2017 7:39 pm

I'm attempting to make a decorate weapon based on Turrican, but everytime I attempt to load it up, it expects "", but finds "TURG" instead.
Here's the code.
Code: Select allExpand view
Actor Multiple : weapon
{
+WEAPON.AMMO_OPTIONAL
weapon.slotnumber 2
inventory.pickupmessage "Multiple!"
states
{
spawn:
MULT A -1
loop
ready:
TURG A 1 a_weaponready
select:
TURG a 1 a_raise
deselect:
TURG a 1 a_lower
fire:
TURG a 1 a_gunflash
TURG a 1 A_Firecustommissile("multipleshot", random(6, 6)
TURG a 1 A_Firecustommissile("multipleshot", random(6, 6)
TURG a 1 A_Firecustommissile("multipleshot", random(6, 6) a_refire
goto ready
}
}

actor: multipleshot
{
height 8
radius 2
damage 2
speed 15
seesound "multiple"
projectile
states:
spawn:
muls a 4 bright
death:
muls b 2
muls c 2
}
}
User avatar
Sgt Nate V
The Servo Crowation
 
Joined: 04 Mar 2017
Location: somewhere
Discord: 9869

Re: Decorate expection error, offending line of code looks f

Postby ZippeyKeys12 » Fri Nov 10, 2017 7:58 pm

Don't think it's your answer but aren't you missing the closing parentheses for a_firecustommissile
ZippeyKeys12
 
Joined: 15 Jun 2016

Re: Decorate expection error, offending line of code looks f

Postby Sgt Nate V » Fri Nov 10, 2017 8:03 pm

Got it fixed, thanks for the help though.
User avatar
Sgt Nate V
The Servo Crowation
 
Joined: 04 Mar 2017
Location: somewhere
Discord: 9869


Return to Scripting

Who is online

Users browsing this forum: No registered users and 4 guests