[spoiler]
Execution could not continue.
Script error, "HGPublicBeta_1.wad:DECORATE" line 3:
Unexpected 'You got the bow.' in definition of 'NewWeapon'
[/spoiler]
Can someone tell me what's wrong? I'm a Decorate noob.
[spoiler]
actor NewWeapon : HungerGamesBow
{
Inventory.PickupMessage "You got the bow."
weapon.ammogive1 15
weapon.ammotype1 "Arrows"
weapon.ammotype2 "FireArrows"
weapon.ammouse1 1
weapon.selectionorder 10000
Obituary "%k got %o right between the eyes with his bow."
states
{
Select:
ABOW A 1 A_Raise
loop
Deselect:
ABOW A 1 A_Lower
loop
Fire:
ABOW B 3
ABOW C 6
ABOW D 1 A_FireCustomMissile ("HungerGamesArrow", 5, 1, 8, 8, 0)
ABOW EF 3
Goto Ready
AltFire:
ABOW B 3
ABOW C 6
ABOW D 1 A_FireCustomMissile ("HungerGamesFireArrow", 5, 1, 8, 8, 0)
ABOW EF 3
Spawn:
BOWS A -1
stop
}
}
actor NewProjectile : HungerGamesArrow
{
radius 1
height 1
damage 70
speed 10
seesound "DSBOWFI"
deathsound "DSBOWHI"
PROJECTILE
states
{
Spawn:
ARR A 4
loop
Death:
ARR A 6
stop
}
}
actor NewMonster : FireTree
{
health 100
radius 20
height 56
mass 100
speed 8
MONSTER
+AMBUSH
+NODAMAGE
+NOPAIN
states
{
Spawn:
TREE A 10 A_Look
loop
See:
TREE A 2 A_Chase (CHF_DONTMOVE)
loop
//Melee:
//Missile:
A_CustomMissile (FireBall)
}
}
actor NewProjectile : FireBall
{
radius 6
height 8
damage 90
speed 10
seesound "DSFIRESHT"
deathsound "DSFIRXPL"
PROJECTILE
states
{
BAL1 AB 4 bright
loop
Death:
BAL1 CDE 6 bright
stop
}
}
actor NewWeapon : Mace
{
Inventory.PickupMessage "You got the mace."
weapon.ammogive1 0
weapon.ammotype1 ""
weapon.ammouse1 1
weapon.selectionorder 400
Obituary "%o got %p face beaten in by %k's mace."
states
{
Select:
MACE D 5 A_Raise
MACE A 1
loop
Deselect:
MACE A 1
MACE D 5 A_Lower
loop
Fire:
MACE BCD 6
MACE E 2 A_CustomPunch (70)
MACE F 2
Goto Ready
Spawn:
MACS A -1
stop
}
}
actor NewWeapon : Knife
{
Inventory.PickupMessage "You got the knife."
weapon.ammogive1
weapon.ammotype1
weapon.ammouse1 1
weapon.selectionorder 400
Obituary "%o was sliced and diced by %k's Knife."
states
{
Select:
KNIF A 1 A_Raise
loop
Deselect:
KNIF A 1 A_Lower
loop
Fire:
KNIF B 2
KNIF C 1 A_CustomPunch (90)
KNIF D 2 A_ReFire
Goto Ready
Spawn:
KNIS A -1
stop
}
}
actor Tribute : PlayerPawn
{
Health 100
Radius 16
Height 56
Player.AttackZOffset 8
Player.JumpZ 8
Player.ViewHeight 41
Player.ForwardMove 1.1
Player.SideMove 1.1
Player.ColorRange 112, 127
Player.SoundClass "player"
Player.DisplayName "Tribute"
Player.StartItem "Fist"
States
{
Spawn:
PEAS A -1
Loop
See:
PEAS ABCD 4
Loop
Missile:
PEAS EF 12
Goto Spawn
Melee:
PLAY EF 12
Goto Missile
Pain:
PEAS O 4
PEAS O 4 A_Pain
Goto Spawn
Death:
PEAS GH 10
PEAS I 10 A_PlayerScream
PEAS J 10 A_NoBlocking
PEAS KLM 10
PEAS N 1
PEAS N 1 A_PlaySound (DSCANNON)
PEAS N -1
Burn:
BURN A 1 A_PlaySound (DSBURNME)
BURN BCDEFGHIJKLMNOPQRSTUV 140
BURN V 1 A_PlaySound (DSCANNON)
BURN V -1
{
{
actor HungerGamesFireArrow
{
radius 1
height 1
damage 500
damagetype Fire
speed 10
deathsound "DSBOWHI1"
PROJECTILE
states
}
Spawn:
BAL1 AB 4 bright
loop
Death:
BAL1 CDE 6 bright
stop
}
}
}
[/spoiler]
