Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Saving hero map state

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Meatballsub
Divine Bovine




Joined: 16 Jun 2003
Posts: 437
Location: Northwest Georgia

PostPosted: Sat Oct 06, 2007 9:33 pm    Post subject: Saving hero map state Reply with quote

Is there a way to temporarily store settings on a map? For example, a hero uses an item that teleports him to another map. When he is ready to go back, he is porting back to the exact location he came from.
_________________
MOCBJ Software - My Games
The Hamster Wheel - OHRRPGCE Information Database
Back to top
View user's profile Send private message Visit poster's website
msw188




Joined: 02 Jul 2003
Posts: 1041

PostPosted: Sat Oct 06, 2007 10:29 pm    Post subject: Reply with quote

You can store the x and y coordinates in global variables before teleporting the hero away. This does not work if the hero exits the map using a standard door as defined in custom, but the solution is simple: do not use custom-defined doors at all, and handle all map-exiting with NPCs and plotscripts. That way you can save the player's x and y coordinates as they leave no matter what.
_________________
My first completed OHR game, Tales of the New World:
http://castleparadox.com/gamelist-display.php?game=161

This website link is for my funk/rock band, Euphonic Brew:
www.euphonicbrew.com
Back to top
View user's profile Send private message Visit poster's website
Ysoft_Entertainment
VB Programmer




Joined: 23 Sep 2003
Posts: 810
Location: Wherever There is a good game.

PostPosted: Sun Oct 07, 2007 5:26 am    Post subject: Reply with quote

msw188 wrote:
You can store the x and y coordinates in global variables before teleporting the hero away. This does not work if the hero exits the map using a standard door as defined in custom, but the solution is simple: do not use custom-defined doors at all, and handle all map-exiting with NPCs and plotscripts. That way you can save the player's x and y coordinates as they leave no matter what.


I would also like to point out that there is a new feature in Ubersetsung that lets you save npc data and tile data when exiting the maps. All you have to do is go into general map data and enable them.
here is the screenshot


set those two to remember state when leaving.
_________________
Try my OHR exporter/importer.
OHRGFX
Striving to become better pixel artist then Fenrir Lunaris. Unfortunately the laziness gets in the way of my goals.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Meatballsub
Divine Bovine




Joined: 16 Jun 2003
Posts: 437
Location: Northwest Georgia

PostPosted: Sun Oct 07, 2007 11:34 am    Post subject: Reply with quote

Thanks for the info Happy
_________________
MOCBJ Software - My Games
The Hamster Wheel - OHRRPGCE Information Database
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group