Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
the iron hitman

Decorate Script Error

Recommended Posts

Hey all.

I'm quite new to "DECORATE" scripting, and I tried to make a sort of ash particle fall from the sky (similar to the snow in TUTNT) and I got this error:-

Execution could not continue.

Script error, "DECORATE" line 38:
Expected ',', got ')
GRVL B 8 A_Chase
GRVL B 8 A_CustomMissile('.

This is the script:-

Actor AshGen 30992
{
Height 6
Radius 6
Mass 1
Damage 0
Speed 0
+SPAWNCEILING
+NORADIUSDMG
+NOGRAVITY
RENDERSTYLE TRANSLUCENT
ALPHA 0

States
{
Spawn:
GRVL B 8 A_CustomMissile("Ash", 24, 36, 48")
GRVL B 8 A_Chase
GRVL B 8 A_CustomMissile("Ash", 36, 0, 32")
GRVL B 8 A_Chase
GRVL B 8 A_CustomMissile("Ash", 8, 24, 36")
GRVL B 8 A_Chase
GRVL B 8 A_CustomMissile("Ash", 16, 48, 56")
GRVL B 8 A_Chase
GRVL B 8 A_CustomMissile("Ash", 32, 40, 48")
GRVL B 8 A_Chase
GRVL B 8 A_CustomMissile("Ash", 48, 8, 72")
GRVL B 8 A_Chase
GRVL B 4 A_CustomMissile("Ash", 8, 16, 48")
GRVL B 4 A_Chase
GRVL B 4 A_CustomMissile("Ash", 48, 16, 32")
GRVL B 4 A_Chase
Loop

}
}

Thanks for any help :)

Share this post


Link to post

A_CustomMissile should not end in a ". That at least will confuse it. delete the quote sign at the end of each instance of that function and see if it works.

Share this post


Link to post

That worked :D Thanks DD, but now I have a new problem....

When I load up the map in GzDoom, I get a bunch of (!) signs. Do I need to create a particle for this? Or do I need to add more code to this?

Share this post


Link to post

The '!' sign means that the spawn state's sprite does not exist. If you want it to be invisible just use TNT1 as sprite name.

Share this post


Link to post

Seeing a diamond shaped box with a "!" in it means that Zdoom does not know which sprite it is supposed to be rendering at a given time. The two things I can think of offhand that cause this is either mistakenly mistyping the thing number wrong (in your case 30992) so that it is referring to nothing (I doubt you did that though) or:

The other thing is that the WAD does not have a sprite with the sprite code it's supposed to be rendering (which means your WAD must have a "GRVLB0" sprite defined. If you don't want anything to render, load an all cyan colored sprite called GRVLB0 so the generator will be invisible. Making "TNT1" the sprite code will work too; just a matter of personal preference. Whatever the projectile being spawned is also must have some type of sprite to refer to while executing its code.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×