View previous topic :: View next topic |
Author |
Message |
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Tue May 01, 2007 16:39 Post subject: |
|
|
NWNX Functions 1.8.2 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.2.rar
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 |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Tue May 01, 2007 18:12 Post subject: |
|
|
Very nice! This'll allow us to do level-scaled polymorphs with ease!
Funky |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Tue May 08, 2007 5:17 Post subject: |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Jun 13, 2007 11:34 Post subject: |
|
|
NWNX Functions 1.8.3 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.3.rar
Code: | // Set oCreature's movement rate
// - nMovementRate: MOVEMENT_RATE_*
// (see creaturespeed.2da)
void SetMovementRate(object oCreature, int nMovementRate = MOVEMENT_RATE_DEFAULT); |
|
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sat Jun 16, 2007 0:18 Post subject: |
|
|
NWNX Functions 1.8.4 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.4.rar
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sat Jun 23, 2007 23:36 Post subject: |
|
|
Custom Boot message:
(using default/custom TLK strings) |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sun Jun 24, 2007 0:14 Post subject: |
|
|
NWNX Functions 1.8.5 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.5.rar
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 |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Sat Jul 14, 2007 2:20 Post subject: |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Fri Jul 27, 2007 19:43 Post subject: |
|
|
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 |
|
|
Mikel of Avalon
Joined: 29 Dec 2004 Posts: 72 Location: Germany
|
Posted: Mon Oct 01, 2007 23:02 Post subject: |
|
|
It's possible to Set/Get fog distance via a custom function? _________________ Mikel of Avalon
Kalandur - Die vergessene Welt |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Tue Oct 02, 2007 9:31 Post subject: |
|
|
Yes. |
|
Back to top |
|
|
Mikel of Avalon
Joined: 29 Dec 2004 Posts: 72 Location: Germany
|
Posted: Tue Oct 02, 2007 12:37 Post subject: |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Tue Oct 02, 2007 12:51 Post subject: |
|
|
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 |
|
|
Mikel of Avalon
Joined: 29 Dec 2004 Posts: 72 Location: Germany
|
Posted: Tue Oct 02, 2007 15:45 Post subject: |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sat Nov 24, 2007 1:33 Post subject: |
|
|
NWNX Functions 1.8.6 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.6.rar
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 |
|
|
|