| 06-20-2005, 05:24 AM | #1 |
Anyone know how to make a Break stack function? I've tried and i'm pretty clueless. (Break stack meaning: You have 50 potions but you only want to sell 10 make a function to take 10 charges off the item and make a new potion stack with 10 in it so you can sell them seperately or give them away or whatever you wanted to do. Like in that one realy awsome FFIV RPG) |
| 06-20-2005, 10:55 AM | #2 |
i would use some kind of dialog box to that. (prolly couse i like 'em alot) then check how many charges you want to sell and then use this Item - Set charges remaining in (Last created item) to 1 you would need a way to give the player money too. if you have some kind of item stacking system then you can use that :) |
| 06-21-2005, 07:35 PM | #3 |
Yeah that would be cool, But I need to know how to actualy create it. Does anyone know how the guy who made FFIV did it? That would be perfect. |
| 06-21-2005, 07:42 PM | #4 |
upload the RPG or give a link as I haven't a clue how the guy does it as you don't describe it at all. Does it always do a fixed size of potion movement? I.e. rightclicking on a stack of 50 and dragging it to another slot moves x potions (instead of all of 50). Or is it done by dialogs? The way I would do it would use items because I love items and hate dialogs with a passion. I would intercept the drag to an empty slot, cache all items positions, and have it show A dummy item in slot 1 that had the charges the item has, a dummy item in slot 2 which shows how many the new item will have, slot 3 would be a + 1 charge button, slot 4 would be a +5 charge button, slot 5 would reset, and slot 6 would be a go button which will do the transfer. This is pretty much a MMO style of doing it, but its very effective. |
| 06-22-2005, 10:55 AM | #5 |
Kay nevermind. I somehow figured it out. Thanks though. About the RPG. It's the only FFIV Rpg i've ever seen uploaded and it's uploaded on this sight. |
| 06-22-2005, 04:25 PM | #6 | |
Quote:
|
