GithubHelp home page GithubHelp logo

nwnscript-fixes's Introduction

- **THIS IS DEPERCATED, PLEASE DO NOT USE, ONLY FOR REFERENCE** -

nwnscript-fixes

These are non-breaking fixes, tweaks and clean ups for NWN:EE (currently targetting .34). These should be drop in replacements for toolset or nwnsc.


Changes

x0_i0_anims.nss

Fixed function declaration to remove warning when compiling under nwnsc

Before: (1261): Warning: NSC6023: Function "AnimActionPlayRandomGreeting" argument "nHDiff" default value does not match the initializer value for a previous declaration. The first declaration value will be used.

x2_inc_switches

Fixed function declaration to remove warning when compiling under nwnsc

Before: x2_inc_switches.nss(596): Warning: NSC6023: Function "SetExecutedScriptReturnValue" argument "nValue" default value does not match the initializer value for a previous declaration. The first declaration value will be used.

x2_inc_restsys

Fixed function declaration to remove warning when compiling under nwnsc

Before: x2_inc_restsys.nss(685): Warning: NSC6023: Function "WMSetAreaTable" argument "nListenCheckDC" default value does not match the initializer value for a previous declaration. The first declaration value will be used.

nwnscript.nss

Constants

ACTION_MODE_DEFENSIVE_STANCE

Added ACTION_MODE_DEFENSIVE_STANCE See: https://nwnlexicon.com/index.php?title=ACTION_MODE

FEAT_SKILL_FOCUS_APPRAISE

Added FEAT_SKILL_FOCUS_APPRAISE. It's referenced as FEAT_SKILLFOCUS_APPRAISE, but this new name reflects naming convetation of other FEAT_SKILL_FOCUS_XXX.

IP_CONST_MATERIAL_*

Added IP_CONST_MATERIAL_* values as they were missing. See: https://nwnlexicon.com/index.php?title=ItemPropertyMaterial Values taken from: ./pkg2.bif/iprp_material.2da

GetFirstObjectInArea / GetNextObjectInArea

Added optional parameter to filter by type. See: https://nwnlexicon.com/index.php?title=GetFirstObjectInArea

GetRandomLocation

Fixed so it returns a random location in a full 360 range instead of 180.

Before:

GetRandomLocation_before

After:

GetRandomLocation_after

New variables

Added these variables:

////////////////////////////////////////////////////////
// Added by nwnscript-fixes
// our current version
int NWNSF_VERSION = 2;
// minor version of nwnscript.nss that this is based on
int NWNSF_BASED = 34;
////////////////////////////////////////////////////////

nwnscript-fixes's People

Contributors

reachpw avatar

Stargazers

Tobias Wirth avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.