Hi, everyone! I'm really hoping someone can help me on this...
Let me preface this by saying that while I have a general understanding of programming languages, I don't know anything about Ruby and am not anywhere near trying to write scripts. I'm really just trying to make a game that sometimes pushes the boundaries of what the program is ready to do.
So Yanfly's Skill Manager adds some great functionality, but it's a little vague on how custom costs work. What I'm trying to do is basically use the custom cost to count ammunition for weapons. I want to check that there is at least 1 of the item and then subtract 1 item when the skill finishes. I did a lot of searching and went over other people's formulae, but it's just not working as I thought it should. So please help! Here is what I've worked and worked to put together (I basically spent all day on these 2 stupid lines of code):
<custom cost requirement>
$game_party.item_number($data_items[17]) >= 1
</custom cost requirement>
<custom cost perform>
$game_party.lose_item($data_items[17], 1)
</custom cost perform>
My fingers are crossed that some brilliant mind will have an answer!
Let me preface this by saying that while I have a general understanding of programming languages, I don't know anything about Ruby and am not anywhere near trying to write scripts. I'm really just trying to make a game that sometimes pushes the boundaries of what the program is ready to do.
So Yanfly's Skill Manager adds some great functionality, but it's a little vague on how custom costs work. What I'm trying to do is basically use the custom cost to count ammunition for weapons. I want to check that there is at least 1 of the item and then subtract 1 item when the skill finishes. I did a lot of searching and went over other people's formulae, but it's just not working as I thought it should. So please help! Here is what I've worked and worked to put together (I basically spent all day on these 2 stupid lines of code):
<custom cost requirement>
$game_party.item_number($data_items[17]) >= 1
</custom cost requirement>
<custom cost perform>
$game_party.lose_item($data_items[17], 1)
</custom cost perform>
My fingers are crossed that some brilliant mind will have an answer!