I made a double damage power up, and suddenly I get this error.
SC_getfloat: bad numeric constant "Inverory".
Script DECORATE, line 1316 (Line is Italac)
Here are the Scripts.
actor PowerDoubleDamage : PowerDamage
{
damagefactor "normal", 2
}
actor DoubleZorchtab : PowerupGiver 15285
{
Inventory.pickupmessage "You got a Blue Zorch tab! Now you have double strength... For a little time!"
powerup.color 0 0 150
inventory.maxamount 0
inventory.usesound "pickups/slowmo"
powerup.type DoubleDamage
powerup.duration 1500
translation "128:143=120:127"
+AUTOACTIVATE
+INVENTORY.FANCYPICKUPSOUND
states
{
Spawn:
DBDG -1 bright
loop
}
}
Strange Powerup error
Moderator: Graf Zahl
- Azure Agony
- Posts: 71
- Joined: Fri Aug 24, 2007 6:40
- Location: Somewhere in HANGAR or E4M7
Fixed.
Problems were in:
1. powerup.color 0 0 150
Go to http://zdoom.org/wiki/Classes:PowerupGiver for more info
2. DBDG -1 bright
You forgot about frame must be A-Z
Here it comes changed version:
actor PowerDoubleDamage : PowerDamage
{
damagefactor "normal", 2
}
actor DoubleZorchtab : PowerupGiver 15285
{
Inventory.pickupmessage "You got a Blue Zorch tab! Now you have double strength... For a little time!"
Powerup.Color "0 0 150" 0.5
inventory.maxamount 0
inventory.usesound "pickups/slowmo"
powerup.type DoubleDamage
powerup.duration 1500
translation "128:143=120:127"
+AUTOACTIVATE
+INVENTORY.FANCYPICKUPSOUND
states
{
Spawn:
DBDG A -1 bright
loop
}
}
Cheers!
Problems were in:
1. powerup.color 0 0 150
Go to http://zdoom.org/wiki/Classes:PowerupGiver for more info
2. DBDG -1 bright
You forgot about frame must be A-Z
Here it comes changed version:
actor PowerDoubleDamage : PowerDamage
{
damagefactor "normal", 2
}
actor DoubleZorchtab : PowerupGiver 15285
{
Inventory.pickupmessage "You got a Blue Zorch tab! Now you have double strength... For a little time!"
Powerup.Color "0 0 150" 0.5
inventory.maxamount 0
inventory.usesound "pickups/slowmo"
powerup.type DoubleDamage
powerup.duration 1500
translation "128:143=120:127"
+AUTOACTIVATE
+INVENTORY.FANCYPICKUPSOUND
states
{
Spawn:
DBDG A -1 bright
loop
}
}
Cheers!