View previous topic :: View next topic |
Author |
Message |
Jack the fool

Joined: 30 Jul 2004 Posts: 773
|
Posted: Tue Sep 14, 2004 5:22 pm Post subject: Zero HP script |
|
|
ok, since im really horrible at making scripts i was wondering if anyone could help me out. i need it something like this...
when a hero dies in battle or reaches 0 hp at anytime then a certain text box shows up.
i can do the rest from there, thats just all i need.
any help would be greatly appreciated, thanks _________________
 |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue Sep 14, 2004 6:53 pm Post subject: Death script |
|
|
Just write a script, and set it as your On-Death script in the "Special Plotscripts" menu under "General Game Data"
that's all there is to it. |
|
Back to top |
|
 |
Flamer The last guy on earth...

Joined: 04 Feb 2003 Posts: 725 Location: New Zealand (newly discovered)
|
Posted: Wed Sep 15, 2004 2:40 am Post subject: |
|
|
does "On-Death" scripts trigger only when the whole party dies?
I'm confused
I'd use a "After-Battle" script, and check if any of the hero's HP is/was zero and if it was the first time it reached zero, the textbox would pop up. _________________ 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 |
|
 |
Jack the fool

Joined: 30 Jul 2004 Posts: 773
|
Posted: Wed Sep 15, 2004 4:56 pm Post subject: |
|
|
well i was trying to make it more like when a certain hero dies in battle (not mattering exactly which one) then after the battle they get removed from the party, as if they'ed died in reality
im not sure if the "on death script" would work with something like that, but i guess ill go and try and mess around with some stuff _________________
 |
|
Back to top |
|
 |
Dan the Man Entertainment
Joined: 31 May 2003 Posts: 204
|
Posted: Wed Sep 15, 2004 5:38 pm Post subject: |
|
|
You use an after battle script and an "if character is dead" tag for that. |
|
Back to top |
|
 |
Guest
|
Posted: Wed Sep 15, 2004 5:52 pm Post subject: |
|
|
On death script only triggers when the whole party dies, in circumstances when you would normally be returned to the title screen.
Go for an after battle script. (I didn't remember there being an after battle script, only a before battle one : S) |
|
Back to top |
|
 |
Mad Cacti Guest
|
Posted: Wed Sep 15, 2004 5:52 pm Post subject: |
|
|
t'was me. |
|
Back to top |
|
 |
Jack the fool

Joined: 30 Jul 2004 Posts: 773
|
Posted: Thu Sep 16, 2004 1:10 pm Post subject: |
|
|
fill in the blanks...
if 1________ then show text box (0) else 2________
1. this is where the 0hp detection would go, but im not sure what to put here
2. i would like this to do nothing, but im not sure what to put here either _________________
 |
|
Back to top |
|
 |
Uncommon His legend will never die

Joined: 10 Mar 2003 Posts: 2503
|
Posted: Thu Sep 16, 2004 1:27 pm Post subject: |
|
|
1. get hero stat (hero,stat:HP,current stat). If you have the stat named something else, change it to compensate. Check your HSI file for definitions of this sort.
2. Just leave out the else. It won't do anything if it isn't told to do anything.
Last edited by Uncommon on Thu Sep 16, 2004 6:43 pm; edited 1 time in total |
|
Back to top |
|
 |
Jack the fool

Joined: 30 Jul 2004 Posts: 773
|
Posted: Thu Sep 16, 2004 4:38 pm Post subject: |
|
|
ok, got it all to work
thanks for all the help everyone _________________
 |
|
Back to top |
|
 |
|