
(custom item or default)
Some one please help!
*edit* maybe its because I'm using 8.1?
Edited by Katipo Games, 01 October 2011 - 08:17 AM.
Posted 01 October 2011 - 04:17 AM

Edited by Katipo Games, 01 October 2011 - 08:17 AM.
Posted 01 October 2011 - 12:48 PM
Have you edited item_options? If not, send the .gmk.All the item option box's do this:
Posted 01 October 2011 - 01:33 PM
Loop through all items in the inventory until you find the same item as you're trying to add, and if successful, you just increase a counter on that item. Then when using/dropping a stacked item, you just decrease the counter.Hmm this is very nice coded indeed.I've done almost the same inventory but still trying to figure out how to make items stack
Edited by Jobo, 01 October 2011 - 01:36 PM.
Posted 02 October 2011 - 12:19 AM
Have you edited item_options? If not, send the .gmk.
All the item option box's do this:
Edited by Katipo Games, 06 October 2011 - 11:53 PM.
Posted 09 October 2011 - 11:48 PM
Posted 12 October 2011 - 07:45 PM
All the item option box's do this:
(custom item or default)
Some one please help!
*edit* maybe its because I'm using 8.1?
Posted 12 October 2011 - 07:55 PM
Posted 12 October 2011 - 08:45 PM
I sent it to your msn. oh well where can i upload a file?You never sent the .gmk...
Edited by Katipo Games, 12 October 2011 - 08:57 PM.
Posted 12 October 2011 - 09:37 PM
Well, GM8.1 changed the way arguments work, which is the main reason I never upgraded there from GM8.0 and could possibly be the cause of the problem. Since I don't have 8.1, I won't be able to help you.*edit*
is it tested in 8.1?
and how easy is it to save into a .ini?
P.S in the exe it worked fine: the option box worked, the HP was above the player
but in GM (8.1) none of that worked
Posted 13 October 2011 - 12:49 PM
Posted 25 May 2012 - 05:04 AM
Posted 25 May 2012 - 01:56 PM
In the item_options_code script:Davve, in my game, I want to make it so the amount of arrows in the inventory goes down as they are fired? How would I go about doing this with this engine? I've accomplished a bunch of problems that I had with this inventory, but this I need help with. I know this is an old thread, but please reply.
global.inv_item[global.inv_optionitemno, 1] -= 1
Edited by Davve, 25 May 2012 - 01:56 PM.
Posted 26 May 2012 - 07:27 PM
In the item_options_code script:
Davve, in my game, I want to make it so the amount of arrows in the inventory goes down as they are fired? How would I go about doing this with this engine? I've accomplished a bunch of problems that I had with this inventory, but this I need help with. I know this is an old thread, but please reply.global.inv_item[global.inv_optionitemno, 1] -= 1
Posted 27 May 2012 - 10:52 AM
In the item_options_code script:
Davve, in my game, I want to make it so the amount of arrows in the inventory goes down as they are fired? How would I go about doing this with this engine? I've accomplished a bunch of problems that I had with this inventory, but this I need help with. I know this is an old thread, but please reply.global.inv_item[global.inv_optionitemno, 1] -= 1
Can I use this in the left click event of the character? If so, how?
var a;
for (a=0 a<27 a+=1) {
if (global.inv_item[a,0]=ARROW_ID) {
/*Fire arrow code*/
global.inv_item[a,1]-=1
if (global.inv_item[a,1]=0) global.inv_item[a,0]=0
break
}
}
Edited by Davve, 27 May 2012 - 10:54 AM.
Posted 30 May 2012 - 01:08 AM
In the item_options_code script:
Davve, in my game, I want to make it so the amount of arrows in the inventory goes down as they are fired? How would I go about doing this with this engine? I've accomplished a bunch of problems that I had with this inventory, but this I need help with. I know this is an old thread, but please reply.global.inv_item[global.inv_optionitemno, 1] -= 1
Can I use this in the left click event of the character? If so, how?var a; for (a=0 a<27 a+=1) { if (global.inv_item[a,0]=ARROW_ID) { /*Fire arrow code*/ global.inv_item[a,1]-=1 if (global.inv_item[a,1]=0) global.inv_item[a,0]=0 break } }
Posted 30 May 2012 - 05:35 PM
Posted 14 July 2012 - 08:59 AM
Edited by Dilbot, 16 July 2012 - 04:01 PM.
Posted 23 July 2012 - 03:53 PM
Posted 25 August 2012 - 09:40 AM
Edited by juNkiez, 25 August 2012 - 11:15 PM.
Posted 19 September 2012 - 12:58 PM
0 members, 0 guests, 0 anonymous users