+Forest-Ghost Posted June 19, 2018 Posted June 19, 2018 (edited) I am creating a Wherigo for the hidden creaturs promotion. The idea is that the player will discover creatures by taking a picture of them. I want the player to be able to review the pictures that they take of the creatures on the camera, but I want the camera to only show the images of the creatures the player photographed. Does anyone know how to do this in uriwgo? I have the item "camera" and the command "review pictures" already set up. I Just need to know how to implement the above issue. Edited June 19, 2018 by Forest-Ghost Quote
Ranger Fox Posted June 20, 2018 Posted June 20, 2018 Giving you what you're asking for without going into author script will be interesting and repetitive if you want a photo reel. I'm going to propose something that will keep you sane. What I'm getting around is a monster of an if-then statement to figure out what the next photo is--again, without using author script. So, how about this: you have a variable for each picture to represent whether that photo has been taken. You have one more variable to represent which image number the player is viewing. In your camera object, have two commands: review previous and review next. When the player taps on one, such as review next, you can have a large if-then statement to figure out what the next photo would be, based on the variables that say which photo has been taken, and store that in the current photo number variable. You can then show the photo to the player. If the player wants to keep the photo, you have the current photo number handy. Alternatively, when a photo is taken, you could simply add the photo to the player's inventory. If you're worried about having many photos, you could have a variable keep track of the number of photos added to the inventory and then, if the player tries to take photos above the limit, you could show a message stating the player needs to clear out (reject) some photos to get more space on the cryptid camera. If I were proposing author script, I'd have an array of objects representing each of the photos, including metadata such as if the photo has been taken, rejected, or accepted. (Reference the author script in my Cacher Pursuit cartridge because it includes an array with metadata about each question the cartridge asks the player, including whether the question has been asked.) Author script could then easily go through this array and determine which photo to show next and could even show them in order. (I could help with this, if you'd like.) Feel free to use this thread to get your idea ironed out. Other community members are welcome to participate, of course. You have a nice idea for a cartridge. 1 Quote
+Forest-Ghost Posted June 20, 2018 Author Posted June 20, 2018 (edited) Thank you Ranger Fox! I got it worked out using the first method mentioned. I ended up with a function that checks through a long list of if/else statements to check for each photo. Once the first photo is shown it turns that variable to false. Next, the function is called again and it goes to the next photo. This process keeps repeating until eventually all variables have been set to false and the photo reel finishes. The tricky part was figuring out how to reset everything so that the player can go back and review everything again. I ended up creating another function and another set of variables which go through and reset all of the original variables for the first function. I have not worked with an array before so this will be a new project for me to learn once this one is finished. Thanks again for your help! Edited June 26, 2018 by Forest-Ghost Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.