Money is not working properly in my Doom Mod. Instead of it all adding up together, it keeps appearing in another inventory slot instead. Anyone know what I am doing wrong? Here is the script (DECORATE)
Actor GoldCoin : CustomInventory
{
Game Doom
+FloorClip
+Inventory.InvBar
Inventory.Amount 1
Inventory.MaxAmount 5000000
Inventory.InterHubAmount 5000000
Inventory.PickupMessage "Picked up a gold coin."
Inventory.Icon "COINA0"
Tag "Coins for shopping"
States
{
Spawn:
COIN A -1
Stop
}
}
Actor GoldCoin2 : GoldCoin
{
Inventory.PickupMessage "Picked up 10 gold coins."
States
{
Spawn:
COIN B -1
Stop
Pickup:
TNT1 A 1 A_GiveInventory("GoldCoin", 10)
Stop
}
}
I have also tried this method too but it's the same result, just appears in another inventory slot instead of adding on to the current slot.
Actor GoldCoin2 : GoldCoin
{
Game Doom
+FloorClip
+Inventory.InvBar
Inventory.Amount 10
Inventory.MaxAmount 5000000
Inventory.InterHubAmount 5000000
Inventory.PickupMessage "Picked up 10 gold coin."
States
{
Spawn:
COIN B -1
Stop
}
}
Also tried this too but it's still the same result.
Actor GoldCoin : Inventory
{
Game Doom
+FloorClip
+Inventory.InvBar
Inventory.Amount 1
Inventory.MaxAmount 5000000
Inventory.InterHubAmount 5000000
Inventory.PickupMessage "Picked up a gold coin."
Inventory.Icon "COINA0"
Tag "Coins for shopping"
States
{
Spawn:
COIN A -1
Stop
}
}
Actor GoldCoin2 : GoldCoin
{
Inventory.PickupMessage "Picked up 10 gold coins."
Money is not working properly in my Doom Mod. Instead of it all adding up together, it keeps appearing in another inventory slot instead. Anyone know what I am doing wrong? Here is the script (DECORATE)
Actor GoldCoin : CustomInventory
{
Game Doom
+FloorClip
+Inventory.InvBar
Inventory.Amount 1
Inventory.MaxAmount 5000000
Inventory.InterHubAmount 5000000
Inventory.PickupMessage "Picked up a gold coin."
Inventory.Icon "COINA0"
Tag "Coins for shopping"
States
{
Spawn:
COIN A -1
Stop
}
}
Actor GoldCoin2 : GoldCoin
{
Inventory.PickupMessage "Picked up 10 gold coins."
States
{
Spawn:
COIN B -1
Stop
Pickup:
TNT1 A 1 A_GiveInventory("GoldCoin", 10)
Stop
}
}
I have also tried this method too but it's the same result, just appears in another inventory slot instead of adding on to the current slot.
Actor GoldCoin2 : GoldCoin
{
Game Doom
+FloorClip
+Inventory.InvBar
Inventory.Amount 10
Inventory.MaxAmount 5000000
Inventory.InterHubAmount 5000000
Inventory.PickupMessage "Picked up 10 gold coin."
States
{
Spawn:
COIN B -1
Stop
}
}
Also tried this too but it's still the same result.
Actor GoldCoin : Inventory
{
Game Doom
+FloorClip
+Inventory.InvBar
Inventory.Amount 1
Inventory.MaxAmount 5000000
Inventory.InterHubAmount 5000000
Inventory.PickupMessage "Picked up a gold coin."
Inventory.Icon "COINA0"
Tag "Coins for shopping"
States
{
Spawn:
COIN A -1
Stop
}
}
Actor GoldCoin2 : GoldCoin
{
Inventory.PickupMessage "Picked up 10 gold coins."
States
{
Spawn:
COIN B -1
Stop
Pickup:
TNT1 A 1 A_GiveInventory("GoldCoin", 10)
Stop
}
}
Share this post
Link to post