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
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Tue Sep 19, 2006 23:42    Post subject: Reply with quote

Sorry - when i try to set a different racialtype, the nwnclient (winxp) crashed. Must i activate nwnx_leto to use this ?

[EDIT] Possible not the function - but anything with the new character i make - i will check it out at weekend while i'm still busy in RL.
_________________
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: Wed Sep 27, 2006 23:23    Post subject: Reply with quote

I'm working on area instancing (loading/copying new areas in-game) now. It works. Smile
It could be useful for instance dungeons or loading new areas with ResMan.
But I still don't see any "clean" solution to unload/delete an area object.
P.S. Yes, I realize that nobody needs it here (except me, of course). Very Happy
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
GodBeastX



Joined: 09 Aug 2006
Posts: 65

PostPosted: Wed Oct 18, 2006 22:07    Post subject: Reply with quote

Wait, you have ability to duplicate a dungeon?
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Fri Oct 20, 2006 15:38    Post subject: Reply with quote

GodBeastX wrote:
Wait, you have ability to duplicate a dungeon?
Yes.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Zunath



Joined: 06 Jul 2006
Posts: 183

PostPosted: Mon Oct 23, 2006 18:13    Post subject: Reply with quote

Instanced areas sounds really intriguing. It could be a great solution to player housing!

I'd love to test it out!
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Mon Oct 23, 2006 20:31    Post subject: Reply with quote

It's not done yet.
Specifiaclly, it crashes DM Client in some cases.
And I don't have enough time to debug it...
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: Thu Feb 15, 2007 19:37    Post subject: Reply with quote

NWNX Functions 1.7
----
http://data.virusman.ru/nwn/nwnx_functions-1.7.rar
----
New functions:
int GetDescriptionLength(object oObject);
string GetConversation(object oObject);
int GetUndroppableFlag(object oItem);
void SetUndroppableFlag(object oItem, int bUndroppable);
int GetItemWeight(object oObject);
void SetItemWeight(object oObject, int nWeight);

Updated:
Get/SetDescription now work with doors and creatures.
Added a bit more comments on functions
Added plugin sources to the package
---

virusman
15.02.2007

------------------------------------------
Complete function list:

int GetArmorAC(object oObject);
void SetArmorAC(object oObject, int iAC);
void SetGoldPieceValue(object oObject, int iValue);
void SetTag(object oObject, string sValue);
void SetRacialType(object oObject, int nRacialType);
int GetDescriptionLength(object oObject);
string GetDescription(object oObject);
string SetDescription(object oObject, string sNewDescription);
string GetConversation(object oObject);
int GetUndroppableFlag(object oItem);
void SetUndroppableFlag(object oItem, int bUndroppable);
int GetItemWeight(object oObject);
void SetItemWeight(object oObject, int nWeight);
string GetEventHandler(object oObject, int nEventId);
void SetEventHandler(object oObject, int nEventId, string sScript);
int GetFactionID(object oObject);
void SetFactionID(object oObject, int nFaction);
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
MacLir



Joined: 13 Jan 2005
Posts: 22

PostPosted: Fri Mar 09, 2007 2:15    Post subject: Reply with quote

Is there a win32 version of this? It would be extremely useful in a few 'situations' I have...
Back to top
View user's profile Send private message Send e-mail
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Fri Mar 09, 2007 8:48    Post subject: Reply with quote

Had a thought - I see you have Get/Set Event Handler - what about the oft-requested GetConversationNodeSelected, as they did for nwn2? Thinking about adding this to the SIMTools package so I can dynamically set the descriptions of the items that list commands based on the command options the user selects. Very Happy
Funky
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Fri Mar 09, 2007 11:41    Post subject: Reply with quote

MacLir wrote:
Is there a win32 version of this? It would be extremely useful in a few 'situations' I have...
What functions do you need?
FunkySwerve wrote:
Had a thought - I see you have Get/Set Event Handler - what about the oft-requested GetConversationNodeSelected, as they did for nwn2? Thinking about adding this to the SIMTools package so I can dynamically set the descriptions of the items that list commands based on the command options the user selects. Very Happy
Funky
I was thinking about it recently: it may be possible.
But making dynamic conversations is possible without such function (see DMFI).
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Fri Mar 09, 2007 20:27    Post subject: Reply with quote

Aye, I did the same thing with HGLL, using pspeed's zdialogue. The problem is that they use tokens, which are global, and you can only run one convo at a time. That's fine for HGLL, where using the leveler is infrequent, but for SIMTools, my dms and I are often firing commands at the same time - no good. Hence the request. Smile
Funky
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Fri Mar 09, 2007 22:01    Post subject: Reply with quote

FunkySwerve wrote:
Aye, I did the same thing with HGLL, using pspeed's zdialogue. The problem is that they use tokens, which are global, and you can only run one convo at a time. That's fine for HGLL, where using the leveler is infrequent, but for SIMTools, my dms and I are often firing commands at the same time - no good. Hence the request. Smile
Funky
You'll have to use tokens anyway, with or without GetConversationNodeSelected function, and even with script parameters in NWN2.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
MacLir



Joined: 13 Jan 2005
Posts: 22

PostPosted: Sat Mar 10, 2007 0:47    Post subject: Reply with quote

virusman wrote:
What functions do you need?

Heh, I really shouldn't be making more work for myself, but I'd like to see at the least the Get/SetFactionID, Get/SetEventHandler, and Get/SetDescription. Although, I could 'find' uses for all of them. Smile
Back to top
View user's profile Send private message Send e-mail
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Sat Mar 10, 2007 0:48    Post subject: Reply with quote

No you won't. The downside its that you'll have to write out the text, without the custom tokens. The upside is that it'll only require one action taken and one conditional script per convo. The savings in resources and sheer convenience would be HUGE. Maybe not the biggest concern for some, but my PW has been pushing the resource limit for going on 2 years now, and even after devising custom code to locate unused resources (the Bioware unused resources check is a joke) and removing around 3000, we are again within about 500 resources of having to offload stuff into a cep hak. As such, I had decided it wasn't worth it to upgrade SIMTools in the fashion I could if I could GetNodeSelected - it'd boost SIMTools to well over 500 resources, instead of the 20 or so it currently uses.
Funky
Back to top
View user's profile Send private message
wmbc9040op



Joined: 10 Mar 2007
Posts: 6

PostPosted: Sat Mar 10, 2007 21:55    Post subject: Reply with quote

I cannot seem to get the function plugin working right. Server version is 1.68 (build 8099)
With the demo module included the SetLockUnlockDC and SetStolenFlag_ do not change the values. I haven't checked any of the functions beyond what is in the demo module.

I notice in the code there is a DebugMe and ObjDump. I do not know how to use them, can someone explain to me what I need to do to use these from a nwn script?

Thanks for any help you can give. Also thank you for all the work you have done on getting these working for linux. I am using the chat, resman, and odbc and am very happy with them. I have the reset installed but have not used it yet. Great work.
Back to top
View user's profile Send private message
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 2 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