Jump to content


Fair Strides

Member Since 21 Dec 2011
Offline Last Active Today, 04:20 AM
*****

Posts I've Made

In Topic: Fair Strides' Script Shack

14 August 2017 - 05:57 PM

Thank you! But now it says the error is at ";"


Try adding one more ) in front of the ");" at the very end.

In Topic: Fair Strides' Script Shack

14 August 2017 - 05:21 PM

I'll assume I'd need to change my NPC to Minimum 1hp in the Utc file in order for this to work. Two questions where will I place this new script in order for it to work and will the script need the "// Makes it so the NPC can't die." to work or is that there for the sake of direction?

This script would need to go in the OnDamaged script slot. Also, you will not need to set the Minimum 1 Hp setting in the UTC file, as that's done in the script with the "SetMinOneHP" function.

And the "//" denotes a comment in the code, purely for explanation.

Is there a script to level up a party member?

No, there is no auto-level function, unfortunately. Also, you can l9ck the Party Selection screen with SetAreaUnescapable function. S value of TRUE should disable it and calling the function again with a value of FALSE should re-enable it.

Hello! I was wondering if someone could tell me how I goofed this line of code; whenever I try to compile it it says 'Error: Syntax error at ","'.

Here's the specific line:

AssignCommand(GetObjectByTag("Juhani", 0), ActionMoveToLocation((-77.5775390625, -51.8112106323242, 0), 213.749927975663, 0), 0, 1.0);
I don't have the modding tools on me at the moment to look up the functions at the moment, but I know the compiler isn't seeing a valid location and I don't think the 0 inside the location section is required...

ActionMoveToLocation(Location(Vector(-77.5775390625, -51.8112106323242, 0.0), 213.749927975663), 0, 1.0);

In Topic: Fair Strides' Script Shack

31 July 2017 - 01:30 AM

Also, I'm not sure, but Get...Boolean() may not return 1 for when it's true, so you could get in trouble writing GetLocalBoolean() == 1 or GetLocalBoolean() == TRUE. Just keep in mind that Get...Boolean() already returns the true/false value, you don't need to == it.

The Local functions (not the global ones, mind you) will either return 0 or NOT 0, so FALSE or !FALSE. It's a weird quirk they seem to have. Mine was originally a typo on that, since the idea was to see if it was > 0, not < 0.
 

I am trying to make a Seppuku cutscene where a hostile NPC will reach 1hp then a dialogue will fire and the NPC will perform a Seppuku (Stabbing themselves with a Melee Weapon) and the NPC will drop dead. With that out of the way what are the scripts, I will need to actually fulfill this cutscene?
 
I think I have the 1hp script right here but not the rest

Also is it possible to do a Seppuku with a Vibrosword weapon or does it have to be a Lightsaber?


In the DLG file in question for that scene (852nih.dlg, second main branch), Visas plays the 1431 Meditate2 animation, assigned from the dialog file itself, not through script. Given that, I don't know if the animation is custom to her model, or the general animation.

 

As for your code, the following should do fine:

 

Spoiler

In Topic: K1R & Romancing Bastila Compatibility? New person asking

27 July 2017 - 03:41 AM

I would need to know the order you installed the mods in. Also, can you link to where you got the F!Revan and Bastila Romance mod? I believe I know which mod you're talking about.


In Topic: Fair Strides' Script Shack

24 July 2017 - 05:42 AM

Assuming this "specific door" is a unique .utd file in the level and only spawned/used once in the .git file, you can attach a script to the OnOpen slot:

 

Spoiler

 

That should work for you. The local boolean stuff is just to make the conversation only activate once.