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

Zero HP script

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




Joined: 30 Jul 2004
Posts: 773

PostPosted: Tue Sep 14, 2004 5:22 pm    Post subject: Zero HP script Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Tue Sep 14, 2004 6:53 pm    Post subject: Death script Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Flamer
The last guy on earth...




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

PostPosted: Wed Sep 15, 2004 2:40 am    Post subject: Reply with quote

does "On-Death" scripts trigger only when the whole party dies?
I'm confused Neutral
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 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
Jack
the fool




Joined: 30 Jul 2004
Posts: 773

PostPosted: Wed Sep 15, 2004 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Dan the Man Entertainment




Joined: 31 May 2003
Posts: 204

PostPosted: Wed Sep 15, 2004 5:38 pm    Post subject: Reply with quote

You use an after battle script and an "if character is dead" tag for that.
Back to top
View user's profile Send private message
Guest







PostPosted: Wed Sep 15, 2004 5:52 pm    Post subject: Reply with quote

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






PostPosted: Wed Sep 15, 2004 5:52 pm    Post subject: Reply with quote

t'was me.
Back to top
Jack
the fool




Joined: 30 Jul 2004
Posts: 773

PostPosted: Thu Sep 16, 2004 1:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Uncommon
His legend will never die




Joined: 10 Mar 2003
Posts: 2503

PostPosted: Thu Sep 16, 2004 1:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Jack
the fool




Joined: 30 Jul 2004
Posts: 773

PostPosted: Thu Sep 16, 2004 4:38 pm    Post subject: Reply with quote

ok, got it all to work

thanks for all the help everyone
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
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