Lovely title. I'm trying to make a potted flower that chooses a random frame, much like the Decorative Cactus. The Cactus has 4 frames, and when placed, it chooses one frame and stays on that frame at all times until it's broken, which makes it choose another frame. I like this, and I wanted to make my own plants do the same. Problem is, my plants are stuck on the first frame. They never cycle through all of the frames like they should. The only thing I did was change all instances of "cactiflowerpot" to my own id "numberplant", as well as make sure the frames file had the right dimensions for the PNG's separate frames. I didn't touch anything else, yet it still doesn't cycle at all. Here's the Decorative Cactus files: Object: Code: { "objectName" : "cactiflowerpot", "rarity" : "Common", "description" : "Cactus!", "price" : 300, "shortdescription" : "Decorative Cactus", "race" : "generic", "category" : "decorative", "apexDescription" : "A cactus. I don't see the appeal.", "avianDescription" : "A thorny plant.", "floranDescription" : "Good plant. Ssstrong sself defensse.", "glitchDescription" : "Interrogate. The cactus is not an enemy.", "humanDescription" : "A cactus! Easy to grow, easy to look after.", "hylotlDescription" : "A painful-looking plant.", "inventoryIcon" : "cactiicon.png", "orientations" : [ { "dualImage" : "cactiflowerpot.png:<color>.<frame>", "imagePosition" : [0, 0], "frames" : 1, "animationCycle" : 1.0, "spaceScan" : 0.1, "anchors" : [ "bottom" ] } ] } Frames: Code: { "frameGrid" : { "size" : [8, 24], "dimensions" : [4, 1], "names" : [ [ "default.0", "default.1", "default.2", "default.3" ] ] }, "aliases" : { "default.default" : "default.0" } } I'm at a loss of what to do since I only changed the image names. How do I make it work like the cactus?
I can't even make the original cactiflowerpot work (i haven't use those until now, i don't really like their skin, and i removed my old characters for the new unstable version), if i spawn one (with /spawnitem), it is also locked on the first frame: i tried to spawn several and place them, destroy them, then replace them, it's always the first frame. I see 4 solutions: - i am not really lucky - i am doing something wrong (like spawning the wrong item if there are two similar items or whatever else) - it doesn't work as described - it must be found and not spawned/crafted for whatever reason The two last would explain your problem, but won't help to solve it. There's a workaround though, you can use a lua script which choose the frame at random when placing the object, but that's a bit more complicated and it would certainly be cleaner without that.
Yeah, I'm not so bright with LUA, so that's a no-go for more than one reason lol. Unless it's a simple LUA script, which I wouldn't mind using. I could just make a bunch of separate items, but that's more cluttered than need be.