Author Topic: How to make skills cost items when being used? [VX]  (Read 347 times)

Offline assi23q

  • Total Beginner
  • Posts: 2
  • LV: 0
    • View Profile
How to make skills cost items when being used? [VX]
« on: December 04, 2016, 06:52:27 PM »
Hi, so the way my game works is that MP doesn't really exist, instead you have items like scrolls to perform spells.

I cannot figure out a good way to do this. I've tried making a common event that when the skill is used, it adds the mana necessary to perform the skill and then removes the item, however, this requires MP for the skill to work. I tried making the player constantly silenced and the silence gets off when the skill is performed, this didn't work either. Any ideas on how to achieve this?

Is there any VX script that can do this? I know there is some for Ace but I can't seem to find any for VX.

Note: I'm using an ABS (on-screen battle system) so I can call common events easily to handle this, except if I can figure out a way to actually do this.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19916
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: How to make skills cost items when being used? [VX]
« Reply #1 on: December 04, 2016, 08:25:39 PM »
Wouldn't it be easier simply to make items call a common event that would make the item-using use the skill in a forced manner?
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline assi23q

  • Total Beginner
  • Posts: 2
  • LV: 0
    • View Profile
Re: How to make skills cost items when being used? [VX]
« Reply #2 on: December 05, 2016, 08:44:25 AM »
Thanks for the tip, that worked. The game features a make your own scroll with items (I originally wanted the scroll to be the skill) but you can make them on the go by just using the skill without having to make the scroll and it uses the items, but I decided to change it into the scroll being another item that you need to make beforehand to use, it does slow down gameplay quite a bit, but it works.