Aller au contenu

Photo

Where are source files for spell scripts (NSS)?


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Damar Stiehl

Damar Stiehl
  • Members
  • 333 messages
Sorry if this is a dumb question.
I scoured the source folder far and wide for the NON-COMPILED (that is, .nss) script files for spells, and alas, nothing.
I know where to find scripts in the game resources (designerscripts.rim), but they are already compiled there. I've seen people shipping their mods with NSS files included, so these have got to come from somewhere, but I can't find where they come from.

Help?

#2
ladydesire

ladydesire
  • Members
  • 1 928 messages
If you have the toolset, you'll find them in the database that comes with that.

#3
Damar Stiehl

Damar Stiehl
  • Members
  • 333 messages
Found the table (thank the gods I'm also a DBA), found the script, one last problem - since I'm just copying it out of a column, all the line breaks and nice indentation is toast.



Is there any way to get the script puked out of the DB with indentation and line breaks preserved? Or do people who ship them with their mods actually go through by hand and fix them?


#4
TimelordDC

TimelordDC
  • Members
  • 923 messages
What the Lady said. Open them in the toolset.



If you just open the demo module and go to the Scripts tab in the Palette, you should be able to view all the core includes.

#5
Lord Thing

Lord Thing
  • Members
  • 257 messages
All the uncompiled scripts we've got are in the toolset, for ability scripts go to the scripts tab then /_Ability Scripts/

The abilities are mostly under the type of target they have rather than their name (eg Pinning Shot script is in /_Ability Scripts/Talents/talent_singletarget.nss and Flaming Weapons is in /_Ability Scripts/Spells/spells_modal.nss)

To add/modify abilities, you'll need to make a new script with a similar format to the ones in _Ability Scripts, then extend ABI_ M2DA (see here if you need help) and make sure the Spellscirpt column (Y) is set to use your custom script, instead of the bioware ones.

Modifié par Lord Thing, 08 décembre 2009 - 05:34 .


#6
Damar Stiehl

Damar Stiehl
  • Members
  • 333 messages
Beer for all of you, very helpful, many thanks.