Gender Bender - Neko's Gender Script

Joined
Jan 26, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
I found this simple script from forum user Neko which is supposed to allow me to define subject/object pronouns etc. for characters based on a gender choice made in character creation. Unfortunately, it doesn't seem to work as intended anymore.

I've put the following text in notes for each of the characters [0003] (male) [0004] (female) [0005] (non-binary)

Code:
<gender:male>
<sPronoun:he>
<oPronoun:him>
<paPronoun:his>
<ppPronoun:his>
<rPronoun:himself>
I've properly installed the script and called the command with

\SPRO[0003] in a message window.

Unfortunately instead of calling the defined subject pronoun from the note on [0003] (him) the plugin returns the default (nonbinary) pronoun 'them'.

What is going wrong with this script and what do I need to fix to get it properly returning the defined string from the character note?

Thanks! Happy scripting.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,232
Reaction score
6,776
First Language
German
Primarily Uses
RMMV
\SPRO[0003]
ID's have no leading zeroes.
It should be \SPRO[3] instead
NEVER place zeroes in front of the ID numbers, it's just the editor that can't display them correctly.
 
Joined
Jan 26, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
Thanks for the reply, I changed that to \SPRO[3] but it's still not referencing the note. :(
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
965
Reaction score
708
First Language
English
Primarily Uses
RMMV
@PostmodernCowboy Hmm, glancing at the code, I do not see any functions that are reading the Actor notetags at all.



EDIT: Ah, wait, there it is. Let me see why it is failing.



EDIT: Aah, ok, the numbers are not the ID of the actor. The ID is for the actor slot in your party. So, \SPRO[1] would be the first person in your party, \SPRO[2] would be the second, and so on. The plugin is returning 'they' because it is attempting to locate the third person in the party, failing, and returning the default value.
 
Last edited:

Kes

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,634
Reaction score
10,932
First Language
English
Primarily Uses
RMVXA
@PostmodernCowboy Please edit your opening post to remove the actual plugin and instead provide a link to the web page where you got it. Many plugin and script writers do not want their work reposted because it means that outdated versions may be floating around the internet.
Thanks.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

welp, the stock market went down by 7% because of corona today. Time to buy stocks?
Man, being able to edit my game WHILE testplaying it is like the most convenient thing EVER. Thank you, MV...it even makes up for the OGG thing. Well, almost.
Back in the old days, long before I was born, salted crisps - or potato chips, for you yanks - came unsalted and had a little pouch of salt to manually shake on it. Of course, things are more efficient now, but Walker's still brought back the old 'Salt 'N' Shake' style a couple years ago. Dunno why, but if I had to guess, I'd say it's because the nostalgia crowd were getting salty.
Guys I just want to sit around and work on my game! *gets lots and lots of money shoveled at him* Game, I don't recall a game. What game? :LZSexcite:

Forum statistics

Threads
94,554
Messages
921,838
Members
124,416
Latest member
zths
Top