LucasForums

LucasForums (http://www.lucasforums.com/index.php)
-   Holowan Laboratories (http://www.lucasforums.com/forumdisplay.php?f=324)
-   -   Learn new Form Script? (http://www.lucasforums.com/showthread.php?t=212823)

Scorge 09-06-2013 06:19 PM

Learn new Form Script?
 
Hey,

Whats the script for obtaining a new lightsaber form?

Thanks.

darthtyren 09-06-2013 06:58 PM

That would be "a_give_form.nss".

Scorge 09-06-2013 09:57 PM

Any way to make the script simple? Because it appears to be very complex with restricted forms to a certain class. I want to simplify the script so any class can choose any of the forms they desire in a dialogue.

Thanks,

Phildevil 09-07-2013 02:11 AM

Did you try looking at the JEdi Temple mod by death disco? I believe there is such a script inside. One that applies the class nonobstant...

Scorge 09-07-2013 10:54 AM

Well death disco hasn't been on in a while, so I doubt I'll get permission to use the script. But I'm asking about how to make a new form script from scratch.

zbyl2 09-07-2013 01:33 PM

Script I wrote for TSLRCM to grant lightsaber forms to party members.
Code:

void main() {
        object oAtton = GetObjectByTag("atton", 0);
        int nParam1 = GetScriptParameter(1);
        GrantSpell(nParam1, oAtton);
}

GrantSpell() is the key here. Replace nParam1 with number corresponding a lightsaber form (look them up in spells.2da) and oAtton with whatever object you need (GetFirstPC() or whatever).

Fair Strides 2 09-07-2013 02:22 PM

Quote:

Originally Posted by zbyl2 (Post 2837677)
Script I wrote for TSLRCM to grant lightsaber forms to party members.
Code:

void main() {
        object oAtton = GetObjectByTag("atton", 0);
        int nParam1 = GetScriptParameter(1);
        GrantSpell(nParam1, oAtton);
}

GrantSpell() is the key here. Replace nParam1 with number corresponding a lightsaber form (look them up in spells.2da) and oAtton with whatever object you need (GetFirstPC() or whatever).

Hmm. I didn't know you were a scripter, Zybl2...

Also, Scourge, the reason Zybl2 says that GrantSpell is the key is because that function grants a spell regardless of the prerequisites for that spell.

deathdisco 09-07-2013 10:23 PM

Quote:

Originally Posted by Scorge (Post 2837673)
Well death disco hasn't been on in a while, so I doubt I'll get permission to use the script. But I'm asking about how to make a new form script from scratch.

That's because I hide in the shadows :xp:

I have no recollection of how I did it in the Temple mod.
I might have used the standard game scripts and set up parameters in the dialog file to grant each form.

In case I did use custom scripts, they would be in the nss folder included in the mod. Feel free to use them.

Scorge 09-07-2013 10:42 PM

Thanks Deathdisco :)


All times are GMT -4. The time now is 02:43 PM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.