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

Possible for multiple death scripts?

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







PostPosted: Wed Jan 07, 2004 12:13 pm    Post subject: Possible for multiple death scripts? Reply with quote

Hi. I am looking to use James Paiges Death Script in my game but I want to use it a little different than he explained to use it. If you don't know what the death script is, then follow this link for more information.

http://moogle1.stormpages.com/pstutor/dieinbattle.html

Back to my question, how can I run multiple versions of this script at the same time? Is it possible? The reason being is that I want different things to happen when you fight different enemies, for example:

When you die from a certain boss fight, you are transported to a different map, your money is gone, and possibly some equipment.

And maybe for every random battle if you die instead of dying some of your money is taken away, etc.


I think to understand it COMPLETLEY, you have to know more about the story of my game, which I dont want to give away at this time. Basically, the main character in the story NEVER DIES but something different happens to him after fights. Hope that helped some.

If anyone knows what I am looking for and knows how to do it, then I would appreciate someone helping me with this. Thanks in advance! Happy
Back to top
MultiColoredWizard
Come back, baby!
The Breastmaster



Joined: 01 Feb 2003
Posts: 1232

PostPosted: Wed Jan 07, 2004 1:57 pm    Post subject: Reply with quote

Use tags for it.
Back to top
View user's profile Send private message
T-Master




Joined: 10 Dec 2003
Posts: 74

PostPosted: Wed Jan 07, 2004 4:06 pm    Post subject: Reply with quote

I don't like that code.

Instead, use "set death script" right before each boss battle.

If you want an example as to how this is done, e-mail zhugebrett@phantom.org .
Back to top
View user's profile Send private message
Divine Bovine




Joined: 05 Jul 2003
Posts: 5

PostPosted: Wed Jan 07, 2004 10:39 pm    Post subject: Reply with quote

I think I have figured out how I need it to work, but an example of what you have in mind wouldn't hurt. Thanks again.
_________________
Check out my ride

GENERATION-EDGE.COM
The new generation of Ford Ranger
Back to top
View user's profile Send private message
Flamer
The last guy on earth...




Joined: 04 Feb 2003
Posts: 725
Location: New Zealand (newly discovered)

PostPosted: Thu Jan 08, 2004 7:18 am    Post subject: Reply with quote

if you want a different event to happen after boss battles when you die, then you'd use an if statement to check whether the player has lost or won the battle

Code:
If(fight formation(boss)==true) #if you won
 then(
  commands)#what to do if you won
 Else(
  commands)#what to do if you lose


after random battles would require you to "set death script"
this is assuming all random battles have the same consequences if you lose.
_________________
If we were a pack of dogs, IM would be a grand Hound, CN would be a very ficious little pitball, and Giz...well, it doesn't matter breed he is, he'd still be a bitch Raspberry!
(no offense to anyone that was mentioned)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
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