lfnetwork.com mark read register faq members calendar

Thread: Learn new Form Script?
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 09-06-2013, 07:19 PM   #1
Scorge
Jedi Protector
 
Scorge's Avatar
 
Join Date: Oct 2011
Location: My Flagship.
Posts: 570
Current Game: SWTOR
Alderaan News Holopics contributor 
Question Learn new Form Script?

Hey,

Whats the script for obtaining a new lightsaber form?

Thanks.


Formally MrObiWan

If you need help with textures on any KotOR/TSL mod, feel free to contact me.







Scorge is offline   you may: quote & reply,
Old 09-06-2013, 07:58 PM   #2
darthtyren
Rookie
 
darthtyren's Avatar
 
Join Date: May 2011
Location: Kotor Tool folder
Posts: 145
That would be "a_give_form.nss".


Good with dialogues and getting better
Working on Scripting and Module Editing/Re-skinning
Started work on Modeling New Areas
darthtyren is offline   you may: quote & reply,
Old 09-06-2013, 10:57 PM   #3
Scorge
Jedi Protector
 
Scorge's Avatar
 
Join Date: Oct 2011
Location: My Flagship.
Posts: 570
Current Game: SWTOR
Alderaan News Holopics contributor 
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,


Formally MrObiWan

If you need help with textures on any KotOR/TSL mod, feel free to contact me.







Scorge is offline   you may: quote & reply,
Old 09-07-2013, 03:11 AM   #4
Phildevil
Junior Member
 
Phildevil's Avatar
 
Join Date: Jan 2006
Location: Québec, Canada
Posts: 449
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...
Phildevil is offline   you may: quote & reply,
Old 09-07-2013, 11:54 AM   #5
Scorge
Jedi Protector
 
Scorge's Avatar
 
Join Date: Oct 2011
Location: My Flagship.
Posts: 570
Current Game: SWTOR
Alderaan News Holopics contributor 
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.


Formally MrObiWan

If you need help with textures on any KotOR/TSL mod, feel free to contact me.







Scorge is offline   you may: quote & reply,
Old 09-07-2013, 02:33 PM   #6
zbyl2
Junior Member
 
zbyl2's Avatar
 
Join Date: May 2008
Location: a galaxy far far away...
Posts: 320
Contest winner - Modding Veteran Modder 
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).
zbyl2 is offline   you may: quote & reply,
Old 09-07-2013, 03:22 PM   #7
Fair Strides 2
Witty Programmer
 
Fair Strides 2's Avatar
 
Join Date: Jan 2012
Location: Oregon, United States
Posts: 613
Current Game: Master of Orion 2
Helpful! 
Quote:
Originally Posted by zbyl2 View Post
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.


All of my mods are available on Deadlystream.

Always remember modders: "Quality= Effort*Time"

KSE 3.3.4 is LIVE!!! Check it out here.

Check out WalkSwitch, the Walkmesh-changing tool!
Fair Strides 2 is offline   you may: quote & reply,
Old 09-07-2013, 11:23 PM   #8
deathdisco
Bastards of Young
 
deathdisco's Avatar
 
Join Date: Jan 2004
Location: Left of the Dial
Posts: 718
Veteran Modder Contest winner - Modding 
Quote:
Originally Posted by Scorge View Post
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

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.

deathdisco is offline   you may: quote & reply,
Old 09-07-2013, 11:42 PM   #9
Scorge
Jedi Protector
 
Scorge's Avatar
 
Join Date: Oct 2011
Location: My Flagship.
Posts: 570
Current Game: SWTOR
Alderaan News Holopics contributor 
Thanks Deathdisco


Formally MrObiWan

If you need help with textures on any KotOR/TSL mod, feel free to contact me.







Scorge is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Learn new Form Script?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:56 PM.

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