Notsalony 12 Posted August 25, 2015 Hey guys I was wondering if there is anyway to change the graphic and sound effect of the arrow during the game? Theres a section of my game where the main character is transformed into a chicken and I want the arrows to turn into eggs and make an appropriate sound when they are fired. Im hoping it would be possible to change with a switch or a script call or something along those lines but if its of any use I'm not planning on using the boomerang tool so that could be a slot to double up with a second arrow tool that is the egg. Thanks in advance okay I have a theory and I'm not even remotely sure if it'll work. If you set up a call in the background that when the switch is triggered and the character is turned into a chicken that it change the lines in the script to the edited versions, and then set it so that when that switch is deactivated they go back... that might work. But I'm not even remotely sure how you'd go about telling it to change the script code like that. Share this post Link to post Share on other sites
captainhellfire 1 Posted September 8, 2015 Hey guys I was wondering if there is anyway to change the graphic and sound effect of the arrow during the game? Theres a section of my game where the main character is transformed into a chicken and I want the arrows to turn into eggs and make an appropriate sound when they are fired. Im hoping it would be possible to change with a switch or a script call or something along those lines but if its of any use I'm not planning on using the boomerang tool so that could be a slot to double up with a second arrow tool that is the egg. Thanks in advance okay I have a theory and I'm not even remotely sure if it'll work. If you set up a call in the background that when the switch is triggered and the character is turned into a chicken that it change the lines in the script to the edited versions, and then set it so that when that switch is deactivated they go back... that might work. But I'm not even remotely sure how you'd go about telling it to change the script code like that. Anyone that can give us a lead on how something like this may work? Or any other possible solution? Share this post Link to post Share on other sites
Phil-S 18 Posted September 18, 2015 Hey gang. I have an issue with this script. It's no fault of the actual script, but just me being a horrible coder. I've stumbled upon this error whenever I try using an item with the "A" key. What am I overlooking? -- since again, I am pretty dumb with code, unfortunately. Share this post Link to post Share on other sites
Notsalony 12 Posted September 18, 2015 (edited) Hey gang. I have an issue with this script. It's no fault of the actual script, but just me being a horrible coder. I've stumbled upon this error whenever I try using an item with the "A" key. What am I overlooking? -- since again, I am pretty dumb with code, unfortunately. Okay, did you copy all the triggers, switches, region maps, and all of the codes and scripts from demo as well as copy the images to the corresponding file folder in your game folder? With move to in the error, It makes me think that you didn't use the region mapping that's key to making the thing to work. I'd have to look for my demo that I made to help me understand the directions for the numbers, if you can't figure it out by looking at the region maps in the demo provided, let me know and I'll post it to help you here. Edited September 18, 2015 by Notsalony Share this post Link to post Share on other sites
Phil-S 18 Posted September 18, 2015 (edited) I've done the triggers for the bombs and arrows, the current items I'm testing to see if I can get them working. As for switches, I changed the numbers in the script to match the switch numbers I made, since I already had numbers 1-6 set aside for opening scene events. All the codes and scripts should be copied, and the images were saved to my computer and imported to the animation folder for the bomb animations and the icons for the system folder. I haven't touched region maps, and I would assume that's the problem. Not too sure what to do, and I apologize for my ignorance and stupidity on this subject. :X Edited September 18, 2015 by Phil-S Share this post Link to post Share on other sites
Notsalony 12 Posted September 19, 2015 I've done the triggers for the bombs and arrows, the current items I'm testing to see if I can get them working. As for switches, I changed the numbers in the script to match the switch numbers I made, since I already had numbers 1-6 set aside for opening scene events. All the codes and scripts should be copied, and the images were saved to my computer and imported to the animation folder for the bomb animations and the icons for the system folder. I haven't touched region maps, and I would assume that's the problem. Not too sure what to do, and I apologize for my ignorance and stupidity on this subject. :X When in the dungeon tool dungeon, hit F7, you'll see the colored numbered areas. Each number has a different direction for the tools to work through. REGION_ID1 = 1 # Region ID. Arrow/hookshot/boomarang can always move when in # this region, no matter if the map tile is passable or not. # However, the arrow/hookshot will not be able to activate # events while in this region ID either. REGION_ID2 = 2 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing down. REGION_ID3 = 3 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing left. REGION_ID4 = 4 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing right. REGION_ID5 = 5 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing up. REGION_ID6 = 6 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing up OR left REGION_ID7 = 7 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing up OR right REGION_ID8 = 8 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing down OR left REGION_ID9 = 9 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing down OR right REGION_ID10 = 10 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing up OR down. REGION_ID11 = 11 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing left OR right REGION_ID12 = 12 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing left OR right OR up REGION_ID13 = 13 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing left OR right OR down REGION_ID14 = 14 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing up OR down OR left REGION_ID15 = 15 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF it is facing up OR down OR right REGION_ID16 = 16 # Region ID. Arrow/hookshot/boomarang can always move when in # this region IF REGION_SWITCH is ON. Useful for multi-level # areas. This is what you need to know. If you need the simplified version, let me know. Share this post Link to post Share on other sites
Phil-S 18 Posted September 19, 2015 (edited) So if I have a big map like this, would I need to put region tiles all through it in order for the player to use an item anywhere on this map? Edited September 19, 2015 by Phil-S Share this post Link to post Share on other sites
Notsalony 12 Posted September 19, 2015 Only where you want them to be able to see the effects. The grappling hook and such needs the 2-15 numbers put in the right order. The rest, it's either 1 or 16 depending on what you need. Share this post Link to post Share on other sites
Phil-S 18 Posted September 19, 2015 (edited) Yeah, I think I'm going to need the simplified version. Sorry to impose on you and make you do extra work, Notsalony. I appreciate your patience, first off. I notice that there's regions in the demo map near for the arrow portion of it, but only at the gap where the arrow must cross. Everywhere else is in that room does not have a region, and you can freely shoot arrows wherever. However, if I try to shoot an arrow in my game, that error shows up. Edited September 19, 2015 by Phil-S Share this post Link to post Share on other sites
Notsalony 12 Posted September 19, 2015 Okay, we'll try this using images because that should help better. This is the basics of how you move around the dungeon. Arrows only need the 1 over impassible tiles to move around or over them. Or a 16 if you're moving from one layer to another. But if you're using the hook or the boomerang, you probably want to use the other numbers to navigate how it moves. And this is a map I use in one of my dungeons I built, ignore the 42, that's for a different script. Does that help? Share this post Link to post Share on other sites
Phil-S 18 Posted September 20, 2015 First of all, thanks for your help so far. This image you posted helps. I just have a question, which I don't think was answered. If it was, then I apologize. A lot of information to take in! I have an unexpected new area. The program expects a parenthesis instead of a period, but as you know, I have no idea how to correct code. Also, will having the 1's on the map now fix it so when I press the A key after selecting the arrows from the tool menu, the game won't crash? I also notice that the tool icons aren't shown on the dungeon tool map. I can PM you or post here my current code/version of the script, if that helps. Thank you again for being so patient with me! I'm sorry if I'm coming across as really dumb. I never used scripting in past RPG Makers, so this is uncharted territory for me. Share this post Link to post Share on other sites
Notsalony 12 Posted September 20, 2015 pm me, can you make a demo of your game and I'll test it to see if I can fix the problem, I'll tell you in the pm where to send the file. Share this post Link to post Share on other sites
philteredkhaos 131 Posted October 28, 2015 Hey the Dungeon Tools script is amazzing except I randomly get this error: Is it because I am spamming the action button or some other cause? It's random and line 844 is untouched. Thanks! Share this post Link to post Share on other sites
ShinGamix 101 Posted November 1, 2015 @philteredkhaos It is most likely conflicting with another script in your project. Share this post Link to post Share on other sites
roninator2 257 Posted July 1, 2017 (edited) I tried this script a while ago and had issues, today it works fine. I only have two issues that I would like to address. 1. main problem - 8 Directional control is gone. you can only move in the default directions now. can this be fixed. I'm using Victor Sant diagonal movement script 2. lesser problem - arrows shoot first in the direction of the last direction I was facing then it shoots in the current direction when firing again. Victor Sant Rotational Turning causes this. Any chance to fix it. If so then I can very much consider using it in my commercial game. 1. is fixed by moving this script to be above VE Diagonal script. 2. is fixed by removing VE Rotational script. Edited July 15, 2017 by roninator2 Share this post Link to post Share on other sites