mandanceman's Recent Forum Activity

  • Thanks a bunch!

    It's not really what I wanted, but it taught me what the "for" command does, which is pretty much exactly what I needed. :3

    I won't be able to work on this for a few days, but when I get back to it, I'll revive this thread if I need more help on the subject

  • :<

    Is this question too difficult? Am I not being clear enough on what I want? Am I asking too much?

    This is an important question, I can't keep working on my project if I can't make an inventory list.

  • I'm loading it just fine, like I said, I have an array object named "ItemLoader" for the purpose of loading items.

    The problem is that I don't know how to sort things from ItemLoader into another Array, and then get construct to print the names and quantities of everything in that array.

  • bump

  • Been toiling with this for a couple days now. I found a couple other threads on inventories, but none that helped me with this inventory.

    http://www.mediafire.com/?k5zfd48m2t6w1g4

    Here's the .cap for both programs. Ama Object Creator saves arrays for objects that I want to load into a player's inventory, the other program, AmaProgram, is the one I'm having trouble with, which actually keeps track of player's inventories.

    I have two arrays set up, one's called ItemLoader, which I'm using to load arrays made by Ama Object Creator, the second is ItemList, which is the actual array of the current character's inventory.

    I also have InventoryHash, which is something I was trying after looking at an inventory tutorial, but couldn't get that to work either.

    Basically, I want my Add button to pull an array from the items folder, load it to ItemLoader, then move the information in ItemLoader into ItemList.

    The arrays are 50x wide, and ItemList is 50x wide and really tall, I want ItemLoader to file items into ItemList by y, so the first item takes up 1-50x, 1y; second takes up 1-50x, 2y; etc.

    And then I need "InventoryList", a listbox, to show every item in ItemList, and how many times it occurs.

    Whew, that's a lot of stuff. Thank you in advance to whomever has the will to cure my noobness :p

  • Thanks! And sorry for wrong forum.

  • How do I save to a specific folder? I have my program to save as Saveedit.Text&".acs", but after a while of using this program, the main folder could get really cluttered with .acs files. Is there a way to save to \acs files\ or something?

    Sorry for another seemingly simple question, but I couldn't find this on the wiki either.

  • Thanks! Pulling the 100 and 10000 out of the integer parenthesis worked.

    I knew it was something simple. :p

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • First of all, this seems like a really basic question. I searched the wiki and the forums, but couldn't find an answer, though I'm sure it's there somewhere. :S

    I'm having trouble with the math. My event looks like this:

    Every tick -> Set variable totalmoney to int(global('Bronze'))+int(global('Silver')*100)+int(global('Gold')*10000)

    The purpose of this is so that the silver and gold coins are worth more than the bronze ones, but no matter what I do, I can't get construct to multiply int(global('Silver') or Gold by anything. It keeps returning the total of the coins instead of the sum of their values. I've tried using int() around the 100 and 10000, I've tried float(), I've even tried making new global variables that are always equal to 100 and 10000 but construct just won't multiply.

    tl;dr: If I put 1 into the "bronze", "silver", and "gold" editbox, I want it to equal 10101, but I can't get it to equal anything other than 3.

    Below are screenshots and the .cap

    <img src="http://i6.photobucket.com/albums/y246/Yank1234/construct1.jpg">

    <img src="http://i6.photobucket.com/albums/y246/Yank1234/construct2-1.jpg">

    http://www.mediafire.com/?8cgeuk8riec9c1k

  • Thanks again hound. : D

  • I've tried multiplying a variable several times, but even if I add "*25" to the end of a variable, it just prints the variable. I need maxhealth to equal Constitution multiplied by 25.

    <img src="http://i6.photobucket.com/albums/y246/Yank1234/maxhealth.jpg?t=1284456678">

    constitutionedit is an editbox, maxhealth is a number variable.

    http://www.mediafire.com/?monkg3ssbvjyoyt - amaprogram.cap

  • Yeah, I didn't get bored of minecraft until I felt like I'd done everything.

    I hope he adds a higher difficulty in a patch too, the mobs are impossible to die to on hard once you get used to their ai, especially if you're underground, where luring skeles is easy.

mandanceman's avatar

mandanceman

Member since 30 Aug, 2010

None one is following mandanceman yet!

Trophy Case

  • 14-Year Club

Progress

14/44
How to earn trophies