The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

Help with script [JIP NVSE]

General help and troubleshooting.
User avatar
rickerhk
Posts: 123
Joined: Mon Sep 17, 2012 1:50 pm

Arkngt wrote:

Post by rickerhk » Fri Jul 03, 2015 9:36 pm

[quote=Arkngt]


 


So I've managed to butcher the script again. Gribbleshnibit8's edited version works perfectly, but I thought I'd use that as a base for my version that adds necklaces to both males and females. It works for males, but females don't get any necklaces. Should I use elseif instead of if for the female section? No idea, but it doesn't work as is. I'd be grateful if someone points out the glaring mistake I'm sure it has:


[/quote]


Yes change the if to an elseif for the female section and remove the last endif at the bottom. The way it is now, the female section is never reached because it is actually in the male section.



User avatar
Puppettron
Gary
Posts: 1715
Joined: Sat Nov 23, 2013 10:47 pm

or, since it's just a binary

Post by Puppettron » Fri Jul 03, 2015 9:41 pm

or, since it's just a binary option of male vs female, just use else.


perms:  either a full fireworks display spelling out "Puppettron Made This" anytime a user accesses my content in-game, or just give me credit somewhere.

Arkngt
Posts: 382
Joined: Fri Jun 26, 2015 7:52 pm

Thanks both! elseif works

Post by Arkngt » Fri Jul 03, 2015 10:47 pm

Thanks both! elseif works fine (I'm sure else would work as well).


»You're no match for science!« Doctor Mobius

Post Reply