Zopawa Posted March 21, 2023 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! 0 Quote Share this post Link to post
0 Kan3 Posted March 21, 2023 I believe you have to change the DoomEd number 0 Quote Share this post Link to post
0 Zopawa Posted March 22, 2023 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. 0 Quote Share this post Link to post
0 ramon.dexter Posted March 22, 2023 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. 1 Quote Share this post Link to post
0 micole Posted December 24, 2023 (edited) 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 January 2 by micole 0 Quote Share this post Link to post
Question
Zopawa
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:
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.