Jump to content

Home

Learn new Form Script?


Scorge

Recommended Posts

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).

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...