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]
[SOLVED]WARNING: Beginning DECORATEer. BulletPuff unexpected token?
-
NegativeInfinity
- Posts: 26
- Joined: Sat Mar 22, 2014 7:54 am
- Location: Mesa AZ
[SOLVED]WARNING: Beginning DECORATEer. BulletPuff unexpected token?
Last edited by NegativeInfinity on Mon Jun 15, 2015 12:57 am, edited 1 time in total.
- 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?
Hi, here is the problem:
And here is the fix:
Hoping it will help you.
Code: Select all
SHTG A 7 A_FireBullets (5.5, 6, 8, "BulletPuff", 1)
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)
-
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?
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.
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?
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! ^^
