 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
Meatballsub Divine Bovine

Joined: 16 Jun 2003 Posts: 437 Location: Northwest Georgia
|
Posted: Sun Apr 22, 2007 1:14 pm Post subject: Locking hero position and renaming |
|
|
Two questions:
Is there any possible way to remove the "order" menu completely, disabling a player to swap hero positions? I have a script that calls for hero 0 (NOT the position, just hero 0), and he doesn't show up as a hero:name in the HSI file. That causes a problem if said hero is not in position 0 on some of my scripts. I'd rather not change him over to a different number if I don't have to.I guess I will have to if I can't disable the order menu.
Also, is there any way to rename a character with scripting and you automatically designate the new name? I know this can be done by making a copy of the hero and just adding that hero with the new name, but id rather not do this if I don't have to.
Any suggestions? _________________ MOCBJ Software - My Games
The Hamster Wheel - OHRRPGCE Information Database |
|
Back to top |
|
 |
msw188
Joined: 02 Jul 2003 Posts: 1041
|
Posted: Sun Apr 22, 2007 3:19 pm Post subject: |
|
|
For renaming, you will want to use the command "set hero name (Id, hero#)", where that first argument is the ID number of the string that you want to assign as the hero's name. This means that in the script, you will have to first assign the name to a certain string, then use the command:
Code: |
$1="Tuna Sub"
set hero name (1,0)
|
This will set the name of hero #0 to Tuna Sub.
As for locking the hero's position, it should not be necessary for purely plotscripting purposes. Anywhere where you need the hero's position instead of his number, you can use the command "find hero (hero#)". As an example, instead of:
Code: | unequip hero (0, slot:armor) |
you will want to use:
Code: | unequip hero (find hero(0), alot:armor) |
This will take off the bread and leave you with only a slab of Tuna, regardless of where Tuna Sub is in the party right now. _________________ My first completed OHR game, Tales of the New World:
http://castleparadox.com/gamelist-display.php?game=161
This website link is for my funk/rock band, Euphonic Brew:
www.euphonicbrew.com |
|
Back to top |
|
 |
Meatballsub Divine Bovine

Joined: 16 Jun 2003 Posts: 437 Location: Northwest Georgia
|
|
Back to top |
|
 |
|
|
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
|