Error in decorate

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
PsyFi
Posts: 3
Joined: Tue Jun 13, 2023 4:35 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: Intel (Modern GZDoom)

Error in decorate

Post by PsyFi »

i have an error in my decorate,

Code: Select all

Execution could not continue.

Script error, "revolver.wad:DECORATE" line 15:
Unexpected 'weapon/gigafart' in definition of 'Revolver'
here is my decorate code.

Code: Select all

ACTOR MRL: DoomPlayer
{
	Player.WeaponSlot 1, Fist, Revolver
}

ACTOR Revolver: Weapon
{
	Weapon.SelectionOrder 50
	Weapon.AmmoUse 1
	Weapon.AmmoGive 100
	Weapon.AmmoType "Clip"
	
	Inventory.PickupSound "weapon/click"
	Inventory.PickupMessage "You Got a totally super normal revolver, trust me! i'm not lying!"
	AttackSound = "weapon/gigafart"
	
	States {
		Spawn:
		RRVL A -1
		Stop
		
		Select:
		RRVL A 1 A_Raise
		Loop
		
		Deselect:
		RRVL A 1 A_Lower
		Loop
		
		Ready:
		RRVL A 1 A_WeaponReady
		Loop
		
		Fire:
		RRVL A 3
		Goto Ready
	}	

}

User avatar
Xeotroid
Posts: 448
Joined: Sat Jun 23, 2012 7:44 am
Graphics Processor: nVidia with Vulkan support
Location: Czech Rep.

Re: Error in decorate

Post by Xeotroid »

The = is not supposed to be there.
Post Reply

Return to “Scripting”