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,561
Reaction score
6,887
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

Veteran
Veteran
Joined
Aug 3, 2012
Messages
21,796
Reaction score
11,009
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 Profile Posts

I've developed a habit of thanking cleaning ladies for their work.
Sorry Aerith... I will abandon your shoes... :guffaw:
Spent a whole bunch of time today reworking the area in the video because someone said it was too illusory. So I reworked it so it changes less, moved the grass up to the same level as the player.... And found enough extra resources to make the grass moves when the player touches it. Also lots more water, because it looks amazing. I'll probably put up a short updated video later today.
I never noticed how NOISY birds can be in the morning..
The worst part of writing the thesis is getting to a point where it's nearly done and you feel like an 8th-grader could've written something on that level.

Forum statistics

Threads
95,766
Messages
931,714
Members
126,169
Latest member
Stearen
Top