View Single Post
Old 09-07-2013, 03:22 PM   #7
Fair Strides
@Fair Strides 2
Witty Programmer
Fair Strides 2's Avatar
Status: Moderator
Join Date: Jan 2012
Location: Oregon, United States
Posts: 718
Current Game: Master of Orion 2
Originally Posted by zbyl2 View Post
Script I wrote for TSLRCM to grant lightsaber forms to party members.
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.7 is LIVE!!! Check it out here.
Fair Strides 2 is offline   you may: quote & reply,