Page 1 of 1

[SOLVED]WARNING: Beginning DECORATEer. BulletPuff unexpected token?

Posted: Sat Jun 13, 2015 3:02 pm
by NegativeInfinity
Hello! I am just starting off in DECORATE, and am following an old tut from gun labs. Anyways, here is my basic script to create a custom gun:
ACTOR AutoLoadedShotty : Weapon
{
Inventory.PickupMessage "You snagged the Auto Loaded Shotgun. This thing is trippy..."
Weapon.AmmoType "Shell"
Weapon.AmmoUse 2
Weapon.SlotNumber 3
+ Weapon.NoAlert
States
{
Ready:
SHTG B 1 A_WeaponReady
Loop

Select:
SHTG A 1 A_Raise
Loop

Deselect:
SHTG A 1 A_Lower
Loop

Fire:
SHTG A 7 A_FireBullets (5.5, 6, 8, "BulletPuff", 1)
Goto Ready
}
}



Like I said, very basic. Though, this should be a working script, it raises an error on the BulletPuff ACTOR. No clue why, my script is indistinguishable from the tutors, but it won't seem to work. Any help?[/color]

RE: WARNING: Beginning DECORATEer. BulletPuff unexpected token?

Posted: Sat Jun 13, 2015 3:45 pm
by fr blood
Hi, here is the problem:

Code: Select all

SHTG A 7 A_FireBullets (5.5, 6, 8, "BulletPuff", 1)
And here is the fix:

Code: Select all

SHTG A 7 A_FireBullets (5.5,6,8,*number*,"BulletPuff")

that how it works
A_FireBullets(angle spread_horz,angle spread_vert,int numbullets,int damage, string pufftype) 
Hoping it will help you.

RE: WARNING: Beginning DECORATEer. BulletPuff unexpected token?

Posted: Sat Jun 13, 2015 3:52 pm
by Lord Smash
I see your problem.
The first 5 values of A_FireBullets are for the horizontal spread,vertical spread,amount of bullets,damage per bullet and puff type,respectively.
You placed "BulletPuff" where the damage is supossed to go.

RE: WARNING: Beginning DECORATEer. BulletPuff unexpected token?

Posted: Sun Jun 14, 2015 4:53 am
by NegativeInfinity
Thanks. I managed to fix it. As it turns out, just as you all said, I was missing an integer. My first practice mod was a success! ^^