logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
nwnx_functions + Get/SetDescription
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue May 01, 2007 16:39    Post subject: Reply with quote

NWNX Functions 1.8.2 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.2.rar
  • New function:
    Code:
    //This function doesn't write to a file!!
    //It changes a value in memory, so Get2DAString will return an old value
    void Set2DAString(string s2DA, string sColumn, int nRow, string sValue);
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Tue May 01, 2007 18:12    Post subject: Reply with quote

Very nice! This'll allow us to do level-scaled polymorphs with ease! Very Happy
Funky
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Tue May 08, 2007 5:17    Post subject: Reply with quote

I've been trying to get SetEffectSpellId(effect eEffect, int nSpellId) working. No success yet, unfortunately. I don't suppose you might have any more hints as to what to look at, or might be able to look into implementing this as part of nwnx_functions?

Thanks,
Acaos
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Jun 13, 2007 11:34    Post subject: Reply with quote

NWNX Functions 1.8.3 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.3.rar

  • New function:
    Code:
    // Set oCreature's movement rate
    // - nMovementRate: MOVEMENT_RATE_*
    //   (see creaturespeed.2da)
    void SetMovementRate(object oCreature, int nMovementRate = MOVEMENT_RATE_DEFAULT);

Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sat Jun 16, 2007 0:18    Post subject: Reply with quote

NWNX Functions 1.8.4 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.4.rar

  • New functions:
    Code:
    // Use item on object
    void ActionUseItemOnObject(object oItem, object oTarget, int nPropertyNum = 0);

    // Use item at location
    void ActionUseItemAtLocation(object oItem, location lLocation, int nPropertyNum = 0);

Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sat Jun 23, 2007 23:36    Post subject: Reply with quote

Custom Boot message:

(using default/custom TLK strings)
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Jun 24, 2007 0:14    Post subject: Reply with quote

NWNX Functions 1.8.5 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.5.rar

  • New functions:
    Code:
    // Get the port from which oPlayer has connected.
    int GetPCPort(object oPlayer);

    // Disconnect oPC from the server with custom message
    void BootPCWithMessage(object oPC, int nStrRef);

Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Sat Jul 14, 2007 2:20    Post subject: Reply with quote

virusman wrote:
NWNX Functions 1.8.2 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.2.rar
  • New function:
    Code:
    //This function doesn't write to a file!!
    //It changes a value in memory, so Get2DAString will return an old value
    void Set2DAString(string s2DA, string sColumn, int nRow, string sValue);

One another question: So if I use Get2DAString that was before Set-ed via your function, then NWN engine returns Set-ed value imediatelly and won't even try to get it from 2da file?
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Fri Jul 27, 2007 19:43    Post subject: Reply with quote

ShaDoOoW wrote:
One another question: So if I use Get2DAString that was before Set-ed via your function, then NWN engine returns Set-ed value imediatelly and won't even try to get it from 2da file?
NWN Server caches all Bioware 2das on load, Set2DAString changes values inside this cache, Get2DAString always reads data from resource files (not from the cache).
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Mon Oct 01, 2007 23:02    Post subject: Reply with quote

It's possible to Set/Get fog distance via a custom function?
_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue Oct 02, 2007 9:31    Post subject: Reply with quote

Yes.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Tue Oct 02, 2007 12:37    Post subject: Reply with quote

Wonderful, can you tell me which function/plugin i must use to do this? All searches in the forums tell me i can't do this via script...
_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue Oct 02, 2007 12:51    Post subject: Reply with quote

Well, I mean I can add these functions to the next release of NWNX Functions. Currently they don't exist in any of the plugins.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Tue Oct 02, 2007 15:45    Post subject: Reply with quote

It would be nice if you add this function to one of your next releases...

thanks for support
_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sat Nov 24, 2007 1:33    Post subject: Reply with quote

NWNX Functions 1.8.6 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.6.rar

  • New functions:
    Code:
    // Jump to Limbo.
    // Object can be returned from Limbo with JumpToLocation/JumpToObject
    int JumpToLimbo(object oObject);

    // Returns TRUE of svVariable is a valid scriptvar structure
    int GetIsVariableValid(struct scriptvar svVariable);

    // Get first local variable on oObject
    struct scriptvar GetFirstLocalVariable(object oObject);

    // Get next local variable on oObject
    struct scriptvar GetNextLocalVariable(object oObject);

Note: GetFirst/NextLocalVariable functions don't return contents of Location variables.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group