Jump to content
  • 0

Money system error!


Zopawa

Question

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 thrm:

Spoiler

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 Money : Inventory 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!

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0
3 hours ago, Kan3 said:

I believe you have to change the DoomEd number

I did that and it did not work, but I made it work now.

Share this post


Link to post
  • 0

Also, your original actor is named "money", and actor for giving 5 money is called ... "money". How do you expect yhe engine to decide which one does giving 1 money and which one giving 5 money? Actors/classes has to have unique names, or errors will happen.

Share this post


Link to post
  • 0
On 3/22/2023 at 12:30 AM, Zopawa said:

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 thrm:

  Reveal hidden contents

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 Money : Inventory 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!

Ensure that the code for collecting the 5 money and 10 money items is correctly written and integrated into your mod. Double-check the variables, conditions, and functions associated with these items to make sure there are no syntax errors or logical issues. Websites like https://icoholder.com/en/icos/ongoing can provide valuable insights and assistance from experienced modders in the community.

Edited by micole

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
Answer this question...

×   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...