How do I make "fake" doors?
For some reasons you have used the 99 doors of a map and you need more? Or you want to customize your doors? Do not despair! This article is made for you!
Please note that if you only want a door to be activated at a certain moment of the party and if you still have free doors on your map don't do all this! Use tags instead!
Ok! The first thing we need are the X Y coordinates and the map numbers you want to use as doors. If necessary write them down on a piece of paper. For our example let's say that you want to go from map 2 (x8, y9) to map 5 (x7, y9).
First open your hss file and write in the following plotscripts
#---------------------------------- plotscript, fake door1, begin fade screen out teleport to map (5, 7, 9) fade screen in end #---------------------------------- plotscript, fake door2, begin fade screen out teleport to map (2, 8, 9) fade screen in end #----------------------------------
Now go into custom. Edit map 2 and pick a free npc. Set its activation to "step on" and make him usable repeatedly. And finally give him the script fake door 1. Place it on the map near (x8, y9), let's say (x9, y9).
Do the same with a free npc from map 5. Don't forget to place him near (x7, y9) so that he does not keep on teleporting. Feel free to customize so that they can fit your advanced plotscripts needs.
Place fake doors with plotscripting[edit]
If you need for various reasons to place you fake door on the map using plotscripting you may be glad to know that you can perfectly do it! Let's take again our example let's say that you want to go from map 2 (x8, y9) to map 5 (x7, y9).
Just like before include the following scripts in your example
#---------------------------------- plotscript, fake door1, begin fade screen out teleport to map (5, 7, 9) fade screen in end #---------------------------------- plotscript, fake door2, begin fade screen out teleport to map (2, 8, 9) fade screen in end #----------------------------------
But to be able to place them you will need more scripts (I know I know all this make write many scripts but it's plotSCRIPTING after all isnt' it? )
But before you go on with plotscripting go under map 2 and 5 and check for free npcs and be sure that they are usable repeatedly. If you feel that you are not going to remember all the information, put down on a piece of paper their number with your coordonates.
For our example, I've chosen that npc 5 will be the fake door in both cases.
Then, go back under windows and edit your hss file. Search in your hss file when the doors have to be placed and include the following lines in your code:
#-------------------------------- # the line above place fake door 1. Just be sure # you are on map 5 when the plotscript is launched create Npc (5, 7, 9) Alter NPC (5,NPCstat:picture,0) Alter NPC (5,NPCstat:activation,NPCactivation:stepon) Alter NPC (5,NPCstat:script, fake door 1) wait for Npc (5) #-------------------------------- # the code lines above place fake door 2 on map2. Just be sure # you are on map 2 when the plotscript is launched create Npc (5, 8, 9) Alter NPC (5,NPCstat:picture,0) Alter NPC (5,NPCstat:activation,NPCactivation:stepon) Alter NPC (5,NPCstat:script, fake door 2) wait for Npc (5) end #end of plotscript #--------------------------------
Keep in mind that this method is rather complicated so use it only when you don't have any free doors left on your map!
As I've said at the beginning of this article, if you only want a door to be activated at a certain moment of the party and if you still have free doors on your map don't do all this! Use tags instead! You use fake doors only if you don't have any free doors left!