Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hello, I am planning on using a main location for a skill list sheet. This may sound like an odd question but after teleporting the player to the main location, how will I gt them to teleport the character back to where they where in the first place? I don't want to use save location and load location because that is what I use for my Town Portal.
------------------ Thanks, GrahamVH graham@warcraftcentral.com Coldstone Developer (url="http://"http://www.warcraftcentral.net/legends/main.html")http://www.warcraftc...gends/main.html(/url)
Well:
Make 3 globals, gb_skill_Xpos, gb_skill_Ypos, and gb_skill_location.
Set the X/Y globals to &&PlayerX;/Y respectively and the location one to &&LocationName.;
That should do it. After you're done with the skill screen, send the player back. Note that this will remove all items from the map (that aren't there when the map loads) and readd all NPCs (that are there when the map loads).
That is the advantage of Save/Recall location: it preserves those variables too
------------------ CI-I@()s (url="http://"http://www.world-of-cha0s.hostrocket.com")The Homepage of Cha0s(/url)
Quote
Originally posted by CI-Ia0s: **Well:
**
Acually it will not reset the items and NPC's but what I am looking for is something that is quick and simple(I currently have around 900 maps in my game and I don't want to have a seperate conditional for each map.
(This message has been edited by GrahamVH (edited 11-06-2003).)
Actually, I think it does delete NPCs/items (though I haven't checked which should be apparent if you look at the code below.
Here's the code broken down:
--Stat Screen event activated-- gb_skills_playerX is set to the player's X location (it's a built in variable: &&PlayerX;) gb_skills_playerY is set to the player's Y location (built in variable: &&PlayerY;) gb_skills_location is set to player's location (built in variable: &&LocationName;) Stats screen is loaded, player leaves map. --Stat Screen event ends-- --Player finishes at stats screen by clicking button activating Return to Map event-- Player's coordinates are set to gb_skills_playerX and gb_skills_playerY Map name stored in gb_skills_location is loaded (as if you had just walked onto it from another map). --Return to Map event ends--
If you use a save/load location, it will record this data AND item/NPC/event status/everything about the map you leave
However, if the loss of dropped items/NPC positioning is not an issue in your game then you can use the above algorithm (the stuff in the code).
EDIT: I'm tired and that leads to bad very grammar and clarity bad and bad speling and...
(This message has been edited by CI-Ia0s (edited 11-06-2003).)
Ahem... There is another (easier?) way to do this:
Lets say that you want to have three skills (page, squire, knight) then you will just have to create four pictures (no skill, page only, page and squire, etc). Now you place them in the events>pictures folder within your game folder. Create a new global called "gb_PlayerSkill", then create a new event wich checks if 'gb_PlayerSkill' is equal to 0 then another one right under it, checking if 'gb_PlayerSkill' is equal to 1 , etc. then in the linked actions section you have 4 dialog actions wich shows one of the pictures, depending on what skill the player has. After that you will just have to assign all this to a key and your done! Not too hard, eh?
------------------ (url="http://"http://www.ledorax.da.ru")Ledorax Land(/url) (url="http://"mailto:ledorax@spymac.com")mailto:ledorax@spymac.com(/url)ledorax@spymac.com
Oh, that's what you're talking about!! Oh, well, I use Ledorax's technique all the time! Some are keydowns, and some I've actually made as NPCs so that the Player can hit on (player contact) a little sign and the image of the sign pops up. Since it's a dialogue picture, the Player just clicks on it, the picture disappears, and the Player continues on.
------------------ -- Debra Danillitphil Productions (url="http://"http://www.danillitphil.com/graphics/index.html")www.danillitphil.com(/url)
Originally posted by GrahamVH: Hello, I am planning on using a main location for a skill list sheet. This may sound like an odd question but after teleporting the player to the main location, how will I gt them to teleport the character back to where they where in the first place? I don't want to use save location and load location because that is what I use for my Town Portal.
Correct me if I'm wrong, but I believe you can Save and Restore multiple locations such that the last one saved will be the first one restored. Unless the player can use his Town Portal while he's in the skill list sheet, this shouldn't be a problem.
------------------ 'You can either be on the stage, just a performer, just going through the lines...or you can be outside it, and know how the script works, where the scenery hangs, and where the trapdoors are. Isn't that better?' -- T. Pratchett
Originally posted by Glenn: **Correct me if I'm wrong, but I believe you can Save and Restore multiple locations such that the last one saved will be the first one restored. Unless the player can use his Town Portal while he's in the skill list sheet, this shouldn't be a problem.
My town Portal works by you use the town Portal Scroll, it opens a portal and you go through and it saves the location that you are teleported from and brings you to town. The portal will be open in town so that you can return back to the location you where teleported from. However if I had opened the skill list in town and it also saves a location; going back through the portal would just bring you to the spot where you used the skill list.
Also Ledorax I know how to have the skill sheet but don't know how to have it open and close without a lot of work. ------------------ Thanks, GrahamVH graham@warcraftcentral.com Coldstone Developer (url="http://"http://www.warcraftcentral.net/legends/main.html")http://www.warcraftc...gends/main.html(/url)
(This message has been edited by GrahamVH (edited 11-07-2003).)
Originally posted by GrahamVH: Also Ledorax I know how to have the skill sheet but don't know how to have it open and close without a lot of work.
Well, by using dialog actions you wont need to do all that work...
Originally posted by Ledorax: **Well, by using dialog actions you wont need to do all that work...;)
Can you add stamps to the picture though in a dialoge?
I could do that but I have it as a spell selection list. and you need to be able to select your spells. ------------------ Thanks, GrahamVH graham@warcraftcentral.com Coldstone Developer (url="http://"http://www.warcraftcentral.net/legends/main.html")http://www.warcraftc...gends/main.html(/url)
Oh, I am sorry :redface: I thought you meant like.. you know... no, I dont think you can :frown: