Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
CaptainManiac

Powerup givers that give multiple powerup can it be done?

Recommended Posts

Ok,so i am trying to make powerup with many types.I needed it to be with Drain,Damage,OctoDamageProtection,Shadow,HighJump,etc and to be for using.WHen i use it it does not give any of them.Hiw to make it give all of them?
Here is the code:
actor TheDamnedScript:PowerupGiver
{
DamageFactor "Normal",8.0
DamageFactor "Fire",2.0
Inventory.MaxAmount 2
Powerup.Color Redmap,0.7
Powerup.Duration -12
POwerup.Mode "Cumulative"
Powerup.Strength 70
Powerup.Type "Shadow"
Powerup.Type "OctoSpeed"
Powerup.Type "Buddha"
Powerup.Type "Damage"
Powerup.Type "Frightener"
Powerup.Type "OctoAbsorb"
Powerup.Type "DoubleFiringSPeed"
Powerup.Type "Strength"
Powerup.Type "Regeneration"
Powerup.Type "WeaponLevel2"
Powerup.Type "Drain"
Powerup.Type "HighJump"
Powerup.Type "Ironfeet"
Inventory.Pickupmessage "The script of the Damned!Everyone who reads this is DAMNED!!!"
Inventory.Icon "DMSCA0"
inventory.Respawntics 1200
+Countitem
+Floatbob
+Inventory.Pickupflash
+Inventory.Invbar
states
{
spawn:
MEGA A 2
loop
Use:
DMSC A 3
TNT1 A 1 A_Print("What the Hell is happening to me?!!!",1.0,"DBIGFONT")
stop
}
}
actor PowerOctoAbsorb:PowerProtection
{
-Inventory.Invbar
DamageFactor "Normal",0.125
DamageFactor "Fire",0.125
}
Actor PowerOctoSpeed:Powerup
{
-Inventory.Invbar
Speed 8
}

The code of the powerup is along the other custom powerups i have scripted
Where is my mistake at?

Share this post


Link to post

You need to make a separate actor for each of those power-ups, and then in TheDamnedScript, use A_GiveInventory to give the player each one.

Look at how the MegaSphere works.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×