View previous topic :: View next topic |
Author |
Message |
xaero me

Joined: 30 Dec 2003 Posts: 101 Location: somewheres
|
Posted: Sat Feb 14, 2004 5:00 pm Post subject: help! |
|
|
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 |
|
 |
Me HI.

Joined: 30 Mar 2003 Posts: 870 Location: MY CUSTOM TITLE CAME BACK
|
Posted: Sat Feb 14, 2004 6:27 pm Post subject: |
|
|
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 |
|
 |
Cube Dimensional Traveller

Joined: 02 Feb 2003 Posts: 294
|
Posted: Sat Feb 14, 2004 11:13 pm Post subject: |
|
|
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 |
|
 |
Ysoft_Entertainment VB Programmer

Joined: 23 Sep 2003 Posts: 810 Location: Wherever There is a good game.
|
Posted: Mon Feb 16, 2004 8:21 am Post subject: |
|
|
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 |
|
 |
Cube Dimensional Traveller

Joined: 02 Feb 2003 Posts: 294
|
Posted: Mon Feb 16, 2004 10:23 am Post subject: |
|
|
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 .
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 . |
|
Back to top |
|
 |
T-Master
Joined: 10 Dec 2003 Posts: 74
|
Posted: Mon Feb 16, 2004 1:30 pm Post subject: |
|
|
Cube, you're way too kind, :/ |
|
Back to top |
|
 |
Flamer The last guy on earth...

Joined: 04 Feb 2003 Posts: 725 Location: New Zealand (newly discovered)
|
Posted: Tue Feb 17, 2004 5:49 am Post subject: |
|
|
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
(no offense to anyone that was mentioned) |
|
Back to top |
|
 |
Ysoft_Entertainment VB Programmer

Joined: 23 Sep 2003 Posts: 810 Location: Wherever There is a good game.
|
Posted: Tue Feb 17, 2004 6:07 am Post subject: |
|
|
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 |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Feb 18, 2004 9:40 pm Post subject: |
|
|
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 |
|
 |
xaero me

Joined: 30 Dec 2003 Posts: 101 Location: somewheres
|
Posted: Sat Feb 21, 2004 4:04 pm Post subject: |
|
|
k, thanks guys got it figured out now
________
Ford Model A |
|
Back to top |
|
 |
|