Jump to content

Weird error regarding money system


Recommended Posts

I'm making a money system for my mod, and it works for the most part.

Collecting the 1 money item works, but the 5 money, and 10 money items don't seem to add to the money counter!

Here's the code for all of them:

 

ACTOR Money : Inventory 12500

{

     Scale 1

     Inventory.Amount 1

     +DROPPED

     +NOTDMATCH

     +FLOORCLIP

     Inventory.MaxAmount 99999999

     Tag "Money"

     +INVENTORY.INVBAR

     Inventory.Icon "BPAIA0"

     Inventory.PickupMessage "Picked up a dollar!"

     States

     {

      Spawn:

          BPAK A -1

          Stop

      }

}

//Collect 5

ACTOR Money5 : Money 12500

{

     Inventory.Amount 5

     Inventory.PickupMessage "Picked up 5 dollars!"

     States

     {

      Spawn:

          BPAK A -1

          Stop

      }

}

Collect 10 is the same as 5, but Inventory.Amount is 10.

 

 

Please help!


 

Edited by Zopawa

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...