Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: RockJohnAxe on June 03, 2008, 01:26:45 PM
-
Although its not as exciting as the title might hint towards, i am having some problems. No, im not a completely useless newby and have tried several times myself with no avail.
Basically im trying to have an item(Teleport Rune) that sets a point and another item (teleport Scroll) that lets you teleport to that point.
Ive got it to work on the Same Screen. but once you switch to another map the game crashes cause it cant find the event.
The only answer ive come up with, is making that event in every single map.
Does anyone have a good way to get this to work?
Any help is mucho appreciated.
Edit: tried my make the same event on all maps and its still crashing the game.
-
Well... after some further trouble shooting and reading some co-ordinate tutorials...
Ive learned one thing for sure...
X and Y co-ords SHOULD NOT AND I MEAN SHOULD NOT, be recorded in the same Variable.
Its a recipe for Disaster.
So ive created my Rune Event in every single map... and it seems to be working so far.
If anyone has a better system please feel free to share.
But for now... i think ive managed to work out my problem.
-
why don't you just make a common event for it if your gonna do that on every map?
-
Yeah, do you know how variables work, man? They can be set as a number, that's all. When you set X to variable A it becomes the value of X, and then when you set Y to variable A it overwrites the previous number and Variable A becomes the value of Y.
You probably already realise that now, but better safe than sorry I guess >.>
And yeah, couldn't you just make the rune item activate a common event that 'memorises position' to three empty variables, and then make the scroll activate a common event that 'recalls to memorised position'? That'd be way easier.
You know how to use common events, right?
-
Thats pretty much what i ended up doing moose...
Although i had to clone the event to every single map to prevent the "cannot find event" Game Crash.
And after lots of testing... it works prefect :D
Thanks for all who "helped" :P lol
-
Originally posted by RockJohnAxe
Although i had to clone the event to every single map to prevent the "cannot find event"
Dude, commone event set to call(by event) or make the teleport rune a switch item, and have the switch be on, set the common event to activate when said switch is on and then make the memorize posistion in th comon event. Your game wont crach, trust me, my tent system in my game is made wtih the Tent as a switch, then I have a common event that is used to send you to the 'campsite'