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.
Arkngt
Posts: 382
Joined: Fri Jun 26, 2015 7:52 pm

Help with script [JIP NVSE]

Post by Arkngt » Mon Jun 29, 2015 6:32 pm

I'm trying to update my Distributed Necklaces and Chains to use the updated JIP NVSE script in Distributed Necklaces and Chains Neck Seam Concealer - Update.


It distributes necklaces to both males and females - and the relevant script parts seem to be: (Nevermind, see my attached file  instead.)


So I thought that I just could edit away the last part and have the result that only females would get necklaces. Like this:  (As above, see attached file). But with this change both sexes still get necklaces. So what am I doing wrong?   Another issue is that I get a pronounced lag when using it, which very well may be because I've butchered the script, but TJ notes this: "If this is causing you lag (it really shouldn't) or happening too much / not enough, you can open the plugin in xEdit and change the Global NaCRefTimer to whatever you'd like." What does "whatever you'd like" mean in practice? It's set at 15 in the global, so should I up or down it if I want to experiment with it - and within which parameters?  


Anyway, I suck at scripting, so if anyone can give advice on how to make it distribute only to females I'd be grateful. Here's the entire script:  


EDIT: So how can I have parts of a script in my post without messing up the entire formatting? I'll attach it as a file instead.


EDIT 2: I get no lag with the original script, so it must be my edited version that is messed up I guess.


You do not have the required permissions to view the files attached to this post.
»You're no match for science!« Doctor Mobius

Gribbleshnibit8
Posts: 481
Joined: Sun Nov 04, 2012 2:06 am

Did not test at all, just

Post by Gribbleshnibit8 » Mon Jun 29, 2015 8:53 pm

Did not test at all, just wrote stuff, added comments. Might need fixing, see if it's better.


You do not have the required permissions to view the files attached to this post.

Gallahorn
Posts: 45
Joined: Sat Jul 26, 2014 10:37 am

Im looking at the script TJ

Post by Gallahorn » Mon Jun 29, 2015 8:57 pm

Im looking at the script TJ wrote and it should more or less just be to add a sex check in this section of the script for it to only apply to females. I think.

 


;=========Check if Actor is eligible for Neck wear=========


if ((rActor.GetItemCount NaCList >= 1) || (rActor.GetDisabled) || (rActor.GetDead))


Continue else



 



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

Thanks both! I'll try out the

Post by Arkngt » Mon Jun 29, 2015 9:20 pm

Thanks both! I'll try out the new script immediately. The comments are very helpful!


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

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

@Gribbleshnibit8, it seems to

Post by Arkngt » Tue Jun 30, 2015 12:21 am

@Gribbleshnibit8, it seems to work perfectly. :) Much obliged.


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

TJ
Posts: 2181
Joined: Mon Sep 17, 2012 1:06 pm

For what it's worth, most of

Post by TJ » Tue Jun 30, 2015 3:38 pm

For what it's worth, most of my scripting knowledge comes from Gribbleshnibit8. Also for simple things that are easy to add, I can give advice / help when I have time.


My project Dash is on Kickstarter!



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

TJ wrote:

Post by Arkngt » Tue Jun 30, 2015 4:03 pm

[quote=TJ]


 


For what it's worth, most of my scripting knowledge comes from Gribbleshnibit8. Also for simple things that are easy to add, I can give advice / help when I have time.


[/quote]


Cool. :) Is it OK if I release conversions of my variants of Distributed Necklaces etc., using your and Gribbleshnibit8's updated JIP NVSE script? I'm a bit fond of my Females Only Complete version, so I'm using that myself in the game.


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

TJ
Posts: 2181
Joined: Mon Sep 17, 2012 1:06 pm

I don't have an issue with it

Post by TJ » Tue Jun 30, 2015 4:04 pm

I don't have an issue with it.


My project Dash is on Kickstarter!



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

Thanks! I'll give you credit

Post by Arkngt » Tue Jun 30, 2015 4:14 pm

Thanks! I'll give you (and Gribbleshnibit8) credit of course. My mod is essentially a Frankenstein's Monster built with parts from other mods and authors.


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

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

So I've managed to butcher

Post by Arkngt » Fri Jul 03, 2015 8:07 pm

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:


You do not have the required permissions to view the files attached to this post.
»You're no match for science!« Doctor Mobius

Post Reply