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,230
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,633
Reaction score
10,931
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

Well it's been almost a whole year since I joined RMW, so i figured I should update my status.
This is my updated status.
Here's a sample of some pixel edits I made.

Maybe for use as sidewalks.
If there are any mods or admins online, could you please see about the re-translation pages for RPG Maker MV? They are all down :rsad:
Werewolf cons: you lose control of yourself once a month and could accidentally kill your friends. Vampire cons: no garlic bread. The choice is simple. Werewolf for sure.
2 huge market drops in 2 days. So glad I sold my non-dividend stocks about 2 weeks ago. And if the dividend ones drop heavily, hey more cheap stocks for me!

Forum statistics

Threads
94,527
Messages
921,608
Members
124,378
Latest member
friskyomega
Top