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 
 
[EVENTS]Use Feat

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
Cyan Bloodbane



Joined: 25 Nov 2005
Posts: 23
Location: Somewhere in Italy

PostPosted: Sun Mar 01, 2009 11:43    Post subject: [EVENTS]Use Feat Reply with quote

Hi, i got a problem with use feat hook on a custom feat.

When i use GetEventSubType, the value returned seems to be incorrect.

It happens only with custom feats i added to feat.2da, the correct id would be 1116 but it returns 92.

I don't know if i did something wrong, but i don't think so.

There is the code :

Code:

void main()
{
    object obPC = OBJECT_SELF;
    int nEvent  = GetEventType();

    SendMessageToPC(obPC, "Debugging Event Hook ID : "+ IntToString(GetEventSubType()) +"\n\n");

    // * Exit
    return;
}


Holavez
Back to top
View user's profile Send private message
Quixsilver



Joined: 20 Jan 2009
Posts: 30

PostPosted: Mon Mar 02, 2009 6:05    Post subject: Reply with quote

I have the same problem... it seems to wrap at 255 maybe?
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Fri Oct 02, 2009 23:41    Post subject: Reply with quote

I've committed a fix for this.

Acaos
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 technical support All times are GMT + 2 Hours
Page 1 of 1

 
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