View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Wed Jan 07, 2004 12:13 pm Post subject: Possible for multiple death scripts? |
|
|
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!  |
|
Back to top |
|
 |
MultiColoredWizard Come back, baby! The Breastmaster

Joined: 01 Feb 2003 Posts: 1232
|
Posted: Wed Jan 07, 2004 1:57 pm Post subject: |
|
|
Use tags for it. |
|
Back to top |
|
 |
T-Master
Joined: 10 Dec 2003 Posts: 74
|
Posted: Wed Jan 07, 2004 4:06 pm Post subject: |
|
|
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 |
|
 |
Divine Bovine

Joined: 05 Jul 2003 Posts: 5
|
Posted: Wed Jan 07, 2004 10:39 pm Post subject: |
|
|
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 |
|
 |
Flamer The last guy on earth...

Joined: 04 Feb 2003 Posts: 725 Location: New Zealand (newly discovered)
|
Posted: Thu Jan 08, 2004 7:18 am Post subject: |
|
|
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
(no offense to anyone that was mentioned) |
|
Back to top |
|
 |
|