From NWN Lexicon
Jump to: navigation, search
Information icon.png This article is a stub. You can help the NWN Lexicon by expanding it.
Reason: this article is incomplete or lacking detail.

For help with wiki usage in general, see MediaWiki Help.

NWN Lexicon Help

Frequently Asked Questions

How can I practice editing without worrying about messing up current pages?

To practice editing, please use your user page.

How do I post NWScript code?

The NWN Lexicon can automatically put NWScript code in fancy little boxes and color it like the NWN Toolset's script editor. To do this, put <nwscript></nwscript> tags around the code.

Note: the traditional wiki syntax for marking a code block is to put a space (" ") before each line of code. When using the <nwscript> syntax, this is neither necessary nor recommended (as doing so may alter tab alignment if a reader copy-pastes the code elsewhere).


Wiki Code Display
void main()
    object oPC = GetFirstPC();
    SendMessageToPC(oPC, "Hello World!");
void main()
    object oPC = GetFirstPC();
    SendMessageToPC(oPC, "Hello World!");

Some of the script examples are showing wiki code. What's going on?

The conversion from HTML to a wiki format left us with some kinks. In particular, some pages on the old Lexicon added links to datatypes so readers could click on the keyword and be transported to the page that describes them. If you encounter a script example that looks like this...

 [[string | string ]] GetPCPublicCDKey(
     [[object | object ]] oPlayer,
     [[int | int ]] nSinglePlayerCDKey = FALSE

... that's what happened. These should all be fixed, but there may still be some lingering around here and there. If you find one that you can fix yourself, great! If not, leave a message on Squatting Monk's talk page and he will fix it ASAP.

Will links to the old Lexicon be broken by the move to the wiki version?

No, all the old links should work. Dood has set up a system whereby URLs from the old Lexicon are routed to their equivalent pages in the new Lexicon wiki. If you do encounter a link that used to work with the old Lexicon but is now broken, please leave a note on Squatting Monk's talk page and he will fix it ASAP.