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

Discuss all aspects related to modding Zandronum here.
Post Reply
NegativeInfinity
 
Posts: 26
Joined: Sat Mar 22, 2014 7:54 am
Location: Mesa AZ

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

#1

Post by NegativeInfinity » Sat Jun 13, 2015 3:02 pm

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]
Last edited by NegativeInfinity on Mon Jun 15, 2015 12:57 am, edited 1 time in total.
Image

User avatar
fr blood
Frequent Poster Miles card holder
Posts: 995
Joined: Wed Mar 06, 2013 4:04 pm
Location: France

RE: WARNING: Beginning DECORATEer. BulletPuff unexpected token?

#2

Post by fr blood » Sat Jun 13, 2015 3:45 pm

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.

Lord Smash
 
Posts: 39
Joined: Sat May 09, 2015 10:39 pm
Location: In the magical land of Whatever

RE: WARNING: Beginning DECORATEer. BulletPuff unexpected token?

#3

Post by Lord Smash » Sat Jun 13, 2015 3:52 pm

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.
Last edited by Lord Smash on Sat Jun 13, 2015 3:54 pm, edited 1 time in total.

NegativeInfinity
 
Posts: 26
Joined: Sat Mar 22, 2014 7:54 am
Location: Mesa AZ

RE: WARNING: Beginning DECORATEer. BulletPuff unexpected token?

#4

Post by NegativeInfinity » Sun Jun 14, 2015 4:53 am

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! ^^
Image

Post Reply