Guys I'm trying to convert an item to a variable. Can someone help me? I know the wrong parts. What should i set to these wrong parts?
command /addtomybag [<text>] [<int>]:
-trigger:
--if arg-1 is "coin":
---if arg-2 is set:
----if player has arg-2 gold nugget named "&eCoin" in inventory:
-----remove arg-2 gold nugget named "&eCoin" from player:
-----add arg-2 to {coin.%player%}
You see i try to use the arg-2 as an amount like '3 gold nugget named "&eCoin" in inventory:'
("-" means tab)
How can i fix that?? (Sorry for my bad English)
command /addtomybag [<text>] [<int>]:
-trigger:
--if arg-1 is "coin":
---if arg-2 is set:
----if player has arg-2 gold nugget named "&eCoin" in inventory:
-----remove arg-2 gold nugget named "&eCoin" from player:
-----add arg-2 to {coin.%player%}
You see i try to use the arg-2 as an amount like '3 gold nugget named "&eCoin" in inventory:'
("-" means tab)
How can i fix that?? (Sorry for my bad English)
Last edited: