Giving player to chose the name of the monster in OHR?

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
Gaplan
Red Slime
Posts: 52
Joined: Wed Jan 10, 2018 12:56 pm

Giving player to chose the name of the monster in OHR?

Post by Gaplan »

Let's say i want a plyer to decide how the certain monster will be named in all the following battles. is this possible, or you can't do that because the battles are complete different world, which you can't influence via scripting yet? :???: If possible, then tell me how, please.
Last edited by Gaplan on Mon Mar 12, 2018 11:19 am, edited 1 time in total.
sorry for bad english :v:
User avatar
SwordPlay
Chemical Slime
Posts: 966
Joined: Sun Jan 22, 2017 9:32 am
Location: London, England
Contact:

Post by SwordPlay »

"set enemy name" I think.

http://hamsterrepublic.com/ohrrpgce/doc ... tenemyname

in the enemies/formation functions

it is not carried over in saves, so you need to store it somewhere else and load it whenever the game is loaded. perhaps if you use a global variable for each name/monster?
Last edited by SwordPlay on Mon Mar 12, 2018 12:22 pm, edited 3 times in total.
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

VapourSword wrote:it is not carried over in saves, so you need to store it somewhere else and load it whenever the game is loaded. perhaps if you use a global variable for each name/monster?
Strings can be saved in save-games. They're not saved by default, to my surprise (I probably forgot to make it the default). So go to General Game Settings -> Saved Games Settings -> Save strings = YES. Then you can keep the name of the enemy in a string, and reapply the 'set enemy name' command in the load-game script.
User avatar
Gaplan
Red Slime
Posts: 52
Joined: Wed Jan 10, 2018 12:56 pm

Post by Gaplan »

Thanks, everything worked well. Now i can call my monster "Buttcheek" :devil:
Last edited by Gaplan on Tue Mar 13, 2018 10:01 pm, edited 1 time in total.
sorry for bad english :v:
Post Reply