TheLordOfTheManor Posted October 4, 2012 Author Share Posted October 4, 2012 I made a costume system (more like plastic surgery system) in my game using the event system, basically you pay and your sprite is permanently changed to something else. The only problem is I use:Take 1000 Gold away from playerSet Player Sprite to XThe problem with this is that when I have >1000 gold it takes away all current gold and changes the sprite instead of exiting.For example:I have 450 gold.Costume costs 1000 gold.I talk to costume man and click on buy.All of my gold is subtracted. (450-1000=-550) (Though of course the game doesn't count negative so your money goes to 0).My sprite is still changed to sprite 16.IT EVEN WORKS WHEN I HAVE 0 GOLD.Where in the event system code can I make a check checking if you have enough gold to pay and if not it exits the event?Thanks for the help. Link to comment Share on other sites More sharing options...
Agoraphobic Posted October 4, 2012 Share Posted October 4, 2012 Normally you would simply use a Conditional Branch to check for Gold and the amount required. The problem is the current Event System doesn't allow you to check for the amount required. It only checks if the player has 1 of an item (Gold), then it runs it if they do.Besides using a very lengthy work around converting it using a Variable, a source edit would be best. Link to comment Share on other sites More sharing options...
Zzbrandon Posted October 4, 2012 Share Posted October 4, 2012 Same as me I want to do that for some item's like for crafting you need 5 clay to make a pot even if you have 1 clay it still makes the pot Gets me annoyed also ^ Link to comment Share on other sites More sharing options...
Zeffrit x Posted October 4, 2012 Share Posted October 4, 2012 Doesn't sound to hard to do, if you have vb6. Link to comment Share on other sites More sharing options...
tslusny Posted October 4, 2012 Share Posted October 4, 2012 So use mine event system, it do not have this bugs xD Link to comment Share on other sites More sharing options...
TheLordOfTheManor Posted October 4, 2012 Author Share Posted October 4, 2012 Does anyone know how I can go about coding this? Link to comment Share on other sites More sharing options...
Joyce Posted October 5, 2012 Share Posted October 5, 2012 Well, it's possible.. But it's quite a mess, first of you should find the option(s) you want to edit on the form and add the changes to it, then figure out how the event system stores data, then link the form changes to that.. THEN you need to find the place the server handles these commands and change those locations.It's tricky mostly because the code is a mess, but doable. Link to comment Share on other sites More sharing options...
TheLordOfTheManor Posted October 5, 2012 Author Share Posted October 5, 2012 > Well, it's possible.. But it's quite a mess, first of you should find the option(s) you want to edit on the form and add the changes to it, then figure out how the event system stores data, then link the form changes to that.. THEN you need to find the place the server handles these commands and change those locations.> > It's tricky mostly because the code is a mess, but doable.Crap, I needed this for my game, time to learn some more vb. Link to comment Share on other sites More sharing options...
Exception Posted October 6, 2012 Share Posted October 6, 2012 > So use mine event system, it do not have this bugs xDThis isn't a bug…the taking away items label wasn't made for gold specifically, so, what can you expect? Link to comment Share on other sites More sharing options...
TheLordOfTheManor Posted October 7, 2012 Author Share Posted October 7, 2012 > This isn't a bug…the taking away items label wasn't made for gold specifically, so, what can you expect?I still wasn't planning on using his event system anyways. ![<_<](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/dry.png)And yes I understand that it wasn't added but it obviously should have been! It was forgotten about. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now