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

help!

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




Joined: 30 Dec 2003
Posts: 101
Location: somewheres

PostPosted: Sat Feb 14, 2004 5:00 pm    Post subject: help! Reply with quote

I cant get a script to delete or swap out the starting hero
i've tried

delete hero (0)
delete hero (1)
swap out hero (0)
swap out hero (1)

and none have worked
________
no2 vaporizer reviews


Last edited by xaero on Thu Feb 03, 2011 7:52 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Me
HI.




Joined: 30 Mar 2003
Posts: 870
Location: MY CUSTOM TITLE CAME BACK

PostPosted: Sat Feb 14, 2004 6:27 pm    Post subject: Reply with quote

For delete hero and swap out hero, you need to use the constants from your game's .hsi file. For example, if the hero you wanted out was named "Bob," you would write "delete hero(hero:Bob)." Delete hero doesn't work with hero positions, as far as I know.
_________________
UP DOWN UP DOWN LEFT LEFT RIGHT RIGHT A B START
Back to top
View user's profile Send private message AIM Address
Cube
Dimensional Traveller




Joined: 02 Feb 2003
Posts: 294

PostPosted: Sat Feb 14, 2004 11:13 pm    Post subject: Reply with quote

Well, the numbers will work. It's just that yeah, it's not by position but rather by the hero's ID number in the Editor.

Still, the number 0 should be working if it's the starting hero. However, are you doing this BEFORE you add in another hero? If so, add the hero before deleting the starting hero. The commands will not work if the only hero in the party/formation is the one you want to delete.
Back to top
View user's profile Send private message
Ysoft_Entertainment
VB Programmer




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

PostPosted: Mon Feb 16, 2004 8:21 am    Post subject: Reply with quote

Me wrote:
For delete hero and swap out hero, you need to use the constants from your game's .hsi file. For example, if the hero you wanted out was named "Bob," you would write "delete hero(hero:Bob)." Delete hero doesn't work with hero positions, as far as I know.


ok, what if the hero is renamed?

like you can rename the heroes in the new version of ohr.

just something to think about.
_________________
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
Cube
Dimensional Traveller




Joined: 02 Feb 2003
Posts: 294

PostPosted: Mon Feb 16, 2004 10:23 am    Post subject: Reply with quote

It won't matter. When you export the information into a .hsi file, it turns all the information into a bunch of constants. For example, let's say the heroes you created in the OHR was named Superman and Batman. Superman of course, is the first hero out of the 60 you can possibly make, while Batman will be 2nd. Meaning, Superman has the ID of 0 and Batman has the ID of 1. When you export it, it goes:

0, hero:Superman
1, hero:Batman

These are simply constants. Yup, the entire .hsi file you exported is just a bunch of constants that you are able to include in your main plotscript file. That being said, it wouldn't matter what you renamed the hero to, the constants "hero:Superman" and "hero:Batman" would always represent the numbers 0 and 1 respectively.

Just like how "true" and "false" stand for 1 and 0 respectively. You could do pointless and confusing stuff like:

delete hero(false)

Which would delete Superman. Replace false with True and you delete Batman Raspberry!.

So! Just a bunch of constants... Words that represent numbers (Like variables, except you can't change them). You should crack open that hsi file with Wordpad to take a closer look Wink.
Back to top
View user's profile Send private message
T-Master




Joined: 10 Dec 2003
Posts: 74

PostPosted: Mon Feb 16, 2004 1:30 pm    Post subject: Reply with quote

Cube, you're way too kind, :/
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: Tue Feb 17, 2004 5:49 am    Post subject: Reply with quote

which is why cube is a great person to go and talk to, ask questions and just have fun.
great explanation cube, i couldn't have said it any better...
_________________
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
Ysoft_Entertainment
VB Programmer




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

PostPosted: Tue Feb 17, 2004 6:07 am    Post subject: Reply with quote

so in other words, it still uses the default name? even if the hero is renamed in the game.

thanks, that was big help, even though I didn't start this thread.
_________________
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
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Wed Feb 18, 2004 9:40 pm    Post subject: Reply with quote

No, plotscripting never uses hero names, it uses their id numbers. You can rename the hero to anything at all in game.exe and it wouldn't affect the scripts.

==>
The name of the constant is the name of the hero in the editor (when the hsi file was exported).
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
xaero
me




Joined: 30 Dec 2003
Posts: 101
Location: somewheres

PostPosted: Sat Feb 21, 2004 4:04 pm    Post subject: Reply with quote

k, thanks guys got it figured out now
________
Ford Model A
Back to top
View user's profile Send private message 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