NWNX:EE  8193.36.12
nwnx_player.nss
Go to the documentation of this file.
1 #include "nwnx"
6 
7 const string NWNX_Player = "NWNX_Player";
8 
11 {
12  object oItem;
13  object oSecondaryItem;
16  string sResRef;
17  string sCommandLabel;
18  string sCommandLine;
19  string sToolTip;
20  int nINTParam1;
21  int nMetaType;
24  object oAssociate;
25 };
26 
29 {
30  string sName;
31  string sText;
32  string sTag;
33  int nState;
34  int nPriority;
37  int nUpdated;
40 };
41 
42 
58 
71 const int NWNX_PLAYER_PLATFORM_IOS = 30;
79 
84 void NWNX_Player_ForcePlaceableExamineWindow(object player, object placeable);
85 
96 void NWNX_Player_ForcePlaceableInventoryWindow(object player, object placeable);
97 
104 void NWNX_Player_StartGuiTimingBar(object player, float seconds, string script = "", int type = NWNX_PLAYER_TIMING_BAR_CUSTOM);
105 
109 void NWNX_Player_StopGuiTimingBar(object player, string script = "");
110 
115 void NWNX_Player_SetAlwaysWalk(object player, int bWalk=TRUE);
116 
121 struct NWNX_Player_QuickBarSlot NWNX_Player_GetQuickBarSlot(object player, int slot);
122 
127 void NWNX_Player_SetQuickBarSlot(object player, int slot, struct NWNX_Player_QuickBarSlot qbs);
128 
132 string NWNX_Player_GetBicFileName(object player);
133 
141 void NWNX_Player_ShowVisualEffect(object player, int effectId, vector position, float scale=1.0f, vector translate=[], vector rotate=[]);
142 
146 void NWNX_Player_MusicBackgroundChangeDay(object player, int track);
147 
151 void NWNX_Player_MusicBackgroundChangeNight(object player, int track);
152 
155 void NWNX_Player_MusicBackgroundStart(object player);
156 
159 void NWNX_Player_MusicBackgroundStop(object player);
160 
164 void NWNX_Player_MusicBattleChange(object player, int track);
165 
168 void NWNX_Player_MusicBattleStart(object player);
169 
172 void NWNX_Player_MusicBattleStop(object player);
173 
179 void NWNX_Player_PlaySound(object player, string sound, object target = OBJECT_INVALID);
180 
185 void NWNX_Player_SetPlaceableUsable(object player, object placeable, int usable);
186 
190 void NWNX_Player_SetRestDuration(object player, int duration);
191 
200 void NWNX_Player_ApplyInstantVisualEffectToObject(object player, object target, int visualeffect, float scale=1.0f, vector translate=[], vector rotate=[]);
201 
206 void NWNX_Player_UpdateCharacterSheet(object player);
207 
213 void NWNX_Player_OpenInventory(object player, object target, int open = TRUE);
214 
219 string NWNX_Player_GetAreaExplorationState(object player, object area);
220 
225 void NWNX_Player_SetAreaExplorationState(object player, object area, string str);
226 
232 void NWNX_Player_SetRestAnimation(object oPlayer, int nAnimation);
233 
239 void NWNX_Player_SetObjectVisualTransformOverride(object oPlayer, object oObject, int nTransform, float fValue);
240 
247 void NWNX_Player_ApplyLoopingVisualEffectToObject(object player, object target, int visualeffect);
248 
253 void NWNX_Player_SetPlaceableNameOverride(object player, object placeable, string name);
254 
259 int NWNX_Player_GetQuestCompleted(object player, string sQuestName);
260 
272 void NWNX_Player_SetPersistentLocation(string sCDKeyOrCommunityName, string sBicFileName, object oWP, int bFirstConnectOnly = TRUE);
273 
278 void NWNX_Player_UpdateItemName(object oPlayer, object oItem);
279 
294 int NWNX_Player_PossessCreature(object oPossessor, object oPossessed, int bMindImmune = TRUE, int bCreateDefaultQB = FALSE);
295 
298 int NWNX_Player_GetPlatformId(object oPlayer);
299 
304 int NWNX_Player_GetLanguage(object oPlayer);
305 
312 void NWNX_Player_SetResManOverride(object oPlayer, int nResType, string sOldResName, string sNewResName);
313 
319 void NWNX_Player_SetCustomToken(object oPlayer, int nCustomTokenNumber, string sTokenValue);
320 
325 void NWNX_Player_SetCreatureNameOverride(object oPlayer, object oCreature, string sName);
326 
333 void NWNX_Player_FloatingTextStringOnCreature(object oPlayer, object oCreature, string sText, int bChatWindow = TRUE);
334 
339 void NWNX_Player_ToggleDM(object oPlayer, int bIsDM);
340 
345 void NWNX_Player_SetObjectMouseCursorOverride(object oPlayer, object oObject, int nCursor);
346 
351 void NWNX_Player_SetObjectHiliteColorOverride(object oPlayer, object oObject, int nColor);
352 
357 void NWNX_Player_RemoveEffectFromTURD(object oPlayer, string sEffectTag);
358 
363 void NWNX_Player_SetSpawnLocation(object oPlayer, location locSpawn);
364 
367 void NWNX_Player_SendDMAllCreatorLists(object oPlayer);
368 
377 int NWNX_Player_AddCustomJournalEntry(object oPlayer, struct NWNX_Player_JournalEntry journalEntry, int nSilentUpdate = 0);
378 
386 struct NWNX_Player_JournalEntry NWNX_Player_GetJournalEntry(object oPlayer, string questTag);
387 
390 void NWNX_Player_CloseStore(object oPlayer);
391 
398 void NWNX_Player_SetTlkOverride(object oPlayer, int nStrRef, string sOverride, int bRestoreGlobal = TRUE);
399 
402 void NWNX_Player_ReloadTlk(object oPlayer);
403 
410 void NWNX_Player_UpdateWind(object oPlayer, vector vDirection, float fMagnitude, float fYaw, float fPitch);
411 
415 void NWNX_Player_UpdateSkyBox(object oPlayer, int nSkyBox);
416 
421 void NWNX_Player_UpdateFogColor(object oPlayer, int nSunFogColor, int nMoonFogColor);
422 
423 
428 void NWNX_Player_UpdateFogAmount(object oPlayer, int nSunFogAmount, int nMoonFogAmount);
429 
433 object NWNX_Player_GetGameObject(object oPlayer);
434 
439 void NWNX_Player_SetObjectUiDiscoveryMaskOverride(object oPlayer, object oObject, int nMask);
440 
446 void NWNX_Player_SendPartyInvite(object oPlayer, object oInviter, int bForceInvite = FALSE, int bHideDialog = FALSE);
447 
451 object NWNX_Player_GetTURD(object oPlayer);
452 
455 void NWNX_Player_ReloadColorPalettes(object oPlayer);
456 
458 
459 void NWNX_Player_ForcePlaceableExamineWindow(object player, object placeable)
460 {
461  string sFunc = "ForcePlaceableExamineWindow";
462 
463  NWNX_PushArgumentObject(placeable);
464  NWNX_PushArgumentObject(player);
465 
466  NWNX_CallFunction(NWNX_Player, sFunc);
467 }
468 
469 void NWNX_Player_ForcePlaceableInventoryWindow(object player, object placeable)
470 {
471  string sFunc = "ForcePlaceableInventoryWindow";
472 
473  NWNX_PushArgumentObject(placeable);
474  NWNX_PushArgumentObject(player);
475 
476  NWNX_CallFunction(NWNX_Player, sFunc);
477 }
478 
479 void NWNX_Player_INTERNAL_StopGuiTimingBar(object player, string script = "", int id = -1)
480 {
481  int activeId = GetLocalInt(player, "NWNX_PLAYER_GUI_TIMING_ACTIVE");
482  // Either the timing event was never started, or it already finished.
483  if (activeId == 0)
484  return;
485 
486  // If id != -1, we ended up here through DelayCommand. Make sure it's for the right ID
487  if (id != -1 && id != activeId)
488  return;
489 
490  DeleteLocalInt(player, "NWNX_PLAYER_GUI_TIMING_ACTIVE");
491 
492  string sFunc = "StopGuiTimingBar";
493  NWNX_PushArgumentObject(player);
494  NWNX_CallFunction(NWNX_Player, sFunc);
495 
496  if(script != "")
497  {
498  ExecuteScript(script, player);
499  }
500 }
501 
502 void NWNX_Player_StartGuiTimingBar(object player, float seconds, string script = "", int type = NWNX_PLAYER_TIMING_BAR_CUSTOM)
503 {
504  if (GetLocalInt(player, "NWNX_PLAYER_GUI_TIMING_ACTIVE"))
505  return;
506 
507  string sFunc = "StartGuiTimingBar";
508  NWNX_PushArgumentInt(type);
509  NWNX_PushArgumentFloat(seconds);
510  NWNX_PushArgumentObject(player);
511 
512  NWNX_CallFunction(NWNX_Player, sFunc);
513 
514  int id = GetLocalInt(player, "NWNX_PLAYER_GUI_TIMING_ID") + 1;
515  SetLocalInt(player, "NWNX_PLAYER_GUI_TIMING_ACTIVE", id);
516  SetLocalInt(player, "NWNX_PLAYER_GUI_TIMING_ID", id);
517 
518  DelayCommand(seconds, NWNX_Player_INTERNAL_StopGuiTimingBar(player, script, id));
519 }
520 
521 void NWNX_Player_StopGuiTimingBar(object player, string script = "")
522 {
523  NWNX_Player_INTERNAL_StopGuiTimingBar(player, script, -1);
524 }
525 
526 void NWNX_Player_SetAlwaysWalk(object player, int bWalk=TRUE)
527 {
528  string sFunc = "SetAlwaysWalk";
529 
530  NWNX_PushArgumentInt(bWalk);
531  NWNX_PushArgumentObject(player);
532 
533  NWNX_CallFunction(NWNX_Player, sFunc);
534 }
535 
537 {
538  string sFunc = "GetQuickBarSlot";
539  struct NWNX_Player_QuickBarSlot qbs;
540 
541  NWNX_PushArgumentInt(slot);
542  NWNX_PushArgumentObject(player);
543  NWNX_CallFunction(NWNX_Player, sFunc);
544 
558 
559  return qbs;
560 }
561 
562 void NWNX_Player_SetQuickBarSlot(object player, int slot, struct NWNX_Player_QuickBarSlot qbs)
563 {
564  string sFunc = "SetQuickBarSlot";
565 
579 
580  NWNX_PushArgumentInt(slot);
581  NWNX_PushArgumentObject(player);
582  NWNX_CallFunction(NWNX_Player, sFunc);
583 }
584 
585 string NWNX_Player_GetBicFileName(object player)
586 {
587  string sFunc = "GetBicFileName";
588 
589  NWNX_PushArgumentObject(player);
590  NWNX_CallFunction(NWNX_Player, sFunc);
591  return NWNX_GetReturnValueString();
592 }
593 
594 void NWNX_Player_ShowVisualEffect(object player, int effectId, vector position, float scale=1.0f, vector translate=[], vector rotate=[])
595 {
596  string sFunc = "ShowVisualEffect";
597 
598  NWNX_PushArgumentFloat(rotate.x);
599  NWNX_PushArgumentFloat(rotate.y);
600  NWNX_PushArgumentFloat(rotate.z);
601  NWNX_PushArgumentFloat(translate.x);
602  NWNX_PushArgumentFloat(translate.y);
603  NWNX_PushArgumentFloat(translate.z);
604  NWNX_PushArgumentFloat(scale);
605  NWNX_PushArgumentFloat(position.x);
606  NWNX_PushArgumentFloat(position.y);
607  NWNX_PushArgumentFloat(position.z);
608  NWNX_PushArgumentInt(effectId);
609  NWNX_PushArgumentObject(player);
610 
611  NWNX_CallFunction(NWNX_Player, sFunc);
612 }
613 
614 void NWNX_Player_MusicBackgroundChangeDay(object player, int track)
615 {
616  string sFunc = "ChangeBackgroundMusic";
617 
618  NWNX_PushArgumentInt(track);
619  NWNX_PushArgumentInt(TRUE);
620  NWNX_PushArgumentObject(player);
621 
622  NWNX_CallFunction(NWNX_Player, sFunc);
623 }
624 
625 void NWNX_Player_MusicBackgroundChangeNight(object player, int track)
626 {
627  string sFunc = "ChangeBackgroundMusic";
628 
629  NWNX_PushArgumentInt(track);
630  NWNX_PushArgumentInt(FALSE);
631  NWNX_PushArgumentObject(player);
632 
633  NWNX_CallFunction(NWNX_Player, sFunc);
634 }
635 
637 {
638  string sFunc = "PlayBackgroundMusic";
639 
640  NWNX_PushArgumentInt(TRUE);
641  NWNX_PushArgumentObject(player);
642 
643  NWNX_CallFunction(NWNX_Player, sFunc);
644 }
645 
647 {
648  string sFunc = "PlayBackgroundMusic";
649 
650  NWNX_PushArgumentInt(FALSE);
651  NWNX_PushArgumentObject(player);
652 
653  NWNX_CallFunction(NWNX_Player, sFunc);
654 }
655 
656 void NWNX_Player_MusicBattleChange(object player, int track)
657 {
658  string sFunc = "ChangeBattleMusic";
659 
660  NWNX_PushArgumentInt(track);
661  NWNX_PushArgumentObject(player);
662 
663  NWNX_CallFunction(NWNX_Player, sFunc);
664 }
665 
666 void NWNX_Player_MusicBattleStart(object player)
667 {
668  string sFunc = "PlayBattleMusic";
669 
670  NWNX_PushArgumentInt(TRUE);
671  NWNX_PushArgumentObject(player);
672 
673  NWNX_CallFunction(NWNX_Player, sFunc);
674 }
675 
676 void NWNX_Player_MusicBattleStop(object player)
677 {
678  string sFunc = "PlayBattleMusic";
679 
680  NWNX_PushArgumentInt(FALSE);
681  NWNX_PushArgumentObject(player);
682 
683  NWNX_CallFunction(NWNX_Player, sFunc);
684 }
685 
686 void NWNX_Player_PlaySound(object player, string sound, object target = OBJECT_INVALID)
687 {
688  string sFunc = "PlaySound";
689 
690  NWNX_PushArgumentObject(target);
692  NWNX_PushArgumentObject(player);
693 
694  NWNX_CallFunction(NWNX_Player, sFunc);
695 }
696 
697 void NWNX_Player_SetPlaceableUsable(object player, object placeable, int usable)
698 {
699  string sFunc = "SetPlaceableUsable";
700 
701  NWNX_PushArgumentInt(usable);
702  NWNX_PushArgumentObject(placeable);
703  NWNX_PushArgumentObject(player);
704 
705  NWNX_CallFunction(NWNX_Player, sFunc);
706 }
707 
708 void NWNX_Player_SetRestDuration(object player, int duration)
709 {
710  string sFunc = "SetRestDuration";
711 
712  NWNX_PushArgumentInt(duration);
713  NWNX_PushArgumentObject(player);
714 
715  NWNX_CallFunction(NWNX_Player, sFunc);
716 }
717 
718 void NWNX_Player_ApplyInstantVisualEffectToObject(object player, object target, int visualeffect, float scale=1.0f, vector translate=[], vector rotate=[])
719 {
720  string sFunc = "ApplyInstantVisualEffectToObject";
721 
722  NWNX_PushArgumentFloat(rotate.z);
723  NWNX_PushArgumentFloat(rotate.y);
724  NWNX_PushArgumentFloat(rotate.x);
725  NWNX_PushArgumentFloat(translate.z);
726  NWNX_PushArgumentFloat(translate.y);
727  NWNX_PushArgumentFloat(translate.x);
728  NWNX_PushArgumentFloat(scale);
729  NWNX_PushArgumentInt(visualeffect);
730  NWNX_PushArgumentObject(target);
731  NWNX_PushArgumentObject(player);
732 
733  NWNX_CallFunction(NWNX_Player, sFunc);
734 }
735 
737 {
738  string sFunc = "UpdateCharacterSheet";
739 
740  NWNX_PushArgumentObject(player);
741 
742  NWNX_CallFunction(NWNX_Player, sFunc);
743 }
744 
745 void NWNX_Player_OpenInventory(object player, object target, int open = TRUE)
746 {
747  string sFunc = "OpenInventory";
748 
749  NWNX_PushArgumentInt(open);
750  NWNX_PushArgumentObject(target);
751  NWNX_PushArgumentObject(player);
752 
753  NWNX_CallFunction(NWNX_Player, sFunc);
754 }
755 
756 string NWNX_Player_GetAreaExplorationState(object player, object area)
757 {
758  string sFunc = "GetAreaExplorationState";
759 
761  NWNX_PushArgumentObject(player);
762 
763  NWNX_CallFunction(NWNX_Player, sFunc);
764  return NWNX_GetReturnValueString();
765 }
766 
767 void NWNX_Player_SetAreaExplorationState(object player, object area, string str)
768 {
769  string sFunc = "SetAreaExplorationState";
770 
773  NWNX_PushArgumentObject(player);
774 
775  NWNX_CallFunction(NWNX_Player, sFunc);
776 }
777 
778 void NWNX_Player_SetRestAnimation(object oPlayer, int nAnimation)
779 {
780  string sFunc = "SetRestAnimation";
781 
782  NWNX_PushArgumentInt(nAnimation);
783  NWNX_PushArgumentObject(oPlayer);
784 
785  NWNX_CallFunction(NWNX_Player, sFunc);
786 }
787 
788 void NWNX_Player_SetObjectVisualTransformOverride(object oPlayer, object oObject, int nTransform, float fValue)
789 {
790  string sFunc = "SetObjectVisualTransformOverride";
791 
792  NWNX_PushArgumentFloat(fValue);
793  NWNX_PushArgumentInt(nTransform);
794  NWNX_PushArgumentObject(oObject);
795  NWNX_PushArgumentObject(oPlayer);
796 
797  NWNX_CallFunction(NWNX_Player, sFunc);
798 }
799 
800 void NWNX_Player_ApplyLoopingVisualEffectToObject(object player, object target, int visualeffect)
801 {
802  string sFunc = "ApplyLoopingVisualEffectToObject";
803 
804  NWNX_PushArgumentInt(visualeffect);
805  NWNX_PushArgumentObject(target);
806  NWNX_PushArgumentObject(player);
807 
808  NWNX_CallFunction(NWNX_Player, sFunc);
809 }
810 
811 void NWNX_Player_SetPlaceableNameOverride(object player, object placeable, string name)
812 {
813  string sFunc = "SetPlaceableNameOverride";
814 
816  NWNX_PushArgumentObject(placeable);
817  NWNX_PushArgumentObject(player);
818 
819  NWNX_CallFunction(NWNX_Player, sFunc);
820 }
821 
822 int NWNX_Player_GetQuestCompleted(object player, string sQuestName)
823 {
824  string sFunc = "GetQuestCompleted";
825 
826  NWNX_PushArgumentString(sQuestName);
827  NWNX_PushArgumentObject(player);
828 
829  NWNX_CallFunction(NWNX_Player, sFunc);
830  return NWNX_GetReturnValueInt();
831 }
832 
833 void NWNX_Player_SetPersistentLocation(string sCDKeyOrCommunityName, string sBicFileName, object oWP, int bFirstConnectOnly = TRUE)
834 {
835  string sFunc = "SetPersistentLocation";
836 
837  NWNX_PushArgumentInt(bFirstConnectOnly);
839  NWNX_PushArgumentString(sBicFileName);
840  NWNX_PushArgumentString(sCDKeyOrCommunityName);
841 
842  NWNX_CallFunction(NWNX_Player, sFunc);
843 }
844 
845 void NWNX_Player_UpdateItemName(object oPlayer, object oItem)
846 {
847  string sFunc = "UpdateItemName";
848 
850  NWNX_PushArgumentObject(oPlayer);
851 
852  NWNX_CallFunction(NWNX_Player, sFunc);
853 }
854 
855 int NWNX_Player_PossessCreature(object oPossessor, object oPossessed, int bMindImmune = TRUE, int bCreateDefaultQB = FALSE)
856 {
857  string sFunc = "PossessCreature";
858 
859  NWNX_PushArgumentInt(bCreateDefaultQB);
860  NWNX_PushArgumentInt(bMindImmune);
861  NWNX_PushArgumentObject(oPossessed);
862  NWNX_PushArgumentObject(oPossessor);
863 
864  NWNX_CallFunction(NWNX_Player, sFunc);
865  return NWNX_GetReturnValueInt();
866 }
867 
868 int NWNX_Player_GetPlatformId(object oPlayer)
869 {
870  string sFunc = "GetPlatformId";
871 
872  NWNX_PushArgumentObject(oPlayer);
873 
874  NWNX_CallFunction(NWNX_Player, sFunc);
875  return NWNX_GetReturnValueInt();
876 }
877 
878 int NWNX_Player_GetLanguage(object oPlayer)
879 {
880  string sFunc = "GetLanguage";
881 
882  NWNX_PushArgumentObject(oPlayer);
883 
884  NWNX_CallFunction(NWNX_Player, sFunc);
885  return NWNX_GetReturnValueInt();
886 }
887 
888 void NWNX_Player_SetResManOverride(object oPlayer, int nResType, string sOldResName, string sNewResName)
889 {
890  string sFunc = "SetResManOverride";
891 
892  NWNX_PushArgumentString(sNewResName);
893  NWNX_PushArgumentString(sOldResName);
894  NWNX_PushArgumentInt(nResType);
895  NWNX_PushArgumentObject(oPlayer);
896 
897  NWNX_CallFunction(NWNX_Player, sFunc);
898 }
899 
900 void NWNX_Player_SetCustomToken(object oPlayer, int nCustomTokenNumber, string sTokenValue)
901 {
902  string sFunc = "SetCustomToken";
903 
904  NWNX_PushArgumentString(sTokenValue);
905  NWNX_PushArgumentInt(nCustomTokenNumber);
906  NWNX_PushArgumentObject(oPlayer);
907 
908  NWNX_CallFunction(NWNX_Player, sFunc);
909 }
910 
911 void NWNX_Player_SetCreatureNameOverride(object oPlayer, object oCreature, string sName)
912 {
913  string sFunc = "SetCreatureNameOverride";
914 
916  NWNX_PushArgumentObject(oCreature);
917  NWNX_PushArgumentObject(oPlayer);
918 
919  NWNX_CallFunction(NWNX_Player, sFunc);
920 }
921 
922 void NWNX_Player_FloatingTextStringOnCreature(object oPlayer, object oCreature, string sText, int bChatWindow = TRUE)
923 {
924  string sFunc = "FloatingTextStringOnCreature";
925 
926  NWNX_PushArgumentInt(bChatWindow);
928  NWNX_PushArgumentObject(oCreature);
929  NWNX_PushArgumentObject(oPlayer);
930 
931  NWNX_CallFunction(NWNX_Player, sFunc);
932 }
933 
934 void NWNX_Player_ToggleDM(object oPlayer, int bIsDM)
935 {
936  string sFunc = "ToggleDM";
937 
938  NWNX_PushArgumentInt(bIsDM);
939  NWNX_PushArgumentObject(oPlayer);
940 
941  NWNX_CallFunction(NWNX_Player, sFunc);
942 }
943 
944 void NWNX_Player_SetObjectMouseCursorOverride(object oPlayer, object oObject, int nCursor)
945 {
946  string sFunc = "SetObjectMouseCursorOverride";
947 
948  NWNX_PushArgumentInt(nCursor);
949  NWNX_PushArgumentObject(oObject);
950  NWNX_PushArgumentObject(oPlayer);
951 
952  NWNX_CallFunction(NWNX_Player, sFunc);
953 }
954 
955 void NWNX_Player_SetObjectHiliteColorOverride(object oPlayer, object oObject, int nColor)
956 {
957  string sFunc = "SetObjectHiliteColorOverride";
958 
959  NWNX_PushArgumentInt(nColor);
960  NWNX_PushArgumentObject(oObject);
961  NWNX_PushArgumentObject(oPlayer);
962 
963  NWNX_CallFunction(NWNX_Player, sFunc);
964 }
965 
966 void NWNX_Player_RemoveEffectFromTURD(object oPlayer, string sEffectTag)
967 {
968  string sFunc = "RemoveEffectFromTURD";
969 
970  NWNX_PushArgumentString(sEffectTag);
971  NWNX_PushArgumentObject(oPlayer);
972 
973  NWNX_CallFunction(NWNX_Player, sFunc);
974 }
975 
976 void NWNX_Player_SetSpawnLocation(object oPlayer, location locSpawn)
977 {
978  string sFunc = "SetSpawnLocation";
979 
980  vector vPosition = GetPositionFromLocation(locSpawn);
981 
982  NWNX_PushArgumentFloat(GetFacingFromLocation(locSpawn));
983  NWNX_PushArgumentFloat(vPosition.z);
984  NWNX_PushArgumentFloat(vPosition.y);
985  NWNX_PushArgumentFloat(vPosition.x);
986  NWNX_PushArgumentObject(GetAreaFromLocation(locSpawn));
987  NWNX_PushArgumentObject(oPlayer);
988 
989  NWNX_CallFunction(NWNX_Player, sFunc);
990 }
991 
993 {
994  string sFunc = "SendDMAllCreatorLists";
995  NWNX_PushArgumentObject(oPlayer);
996  NWNX_CallFunction(NWNX_Player, sFunc);
997 }
998 
999 int NWNX_Player_AddCustomJournalEntry(object oPlayer, struct NWNX_Player_JournalEntry journalEntry, int nSilentUpdate = 0)
1000 {
1001  string sFunc = "AddCustomJournalEntry";
1002  NWNX_PushArgumentInt(nSilentUpdate);
1003  NWNX_PushArgumentInt(journalEntry.nTimeOfDay);
1004  NWNX_PushArgumentInt(journalEntry.nCalendarDay);
1005  NWNX_PushArgumentInt(journalEntry.nUpdated);
1006  NWNX_PushArgumentInt(journalEntry.nQuestDisplayed);
1007  NWNX_PushArgumentInt(journalEntry.nQuestCompleted);
1008  NWNX_PushArgumentInt(journalEntry.nPriority);
1009  NWNX_PushArgumentInt(journalEntry.nState);
1010  NWNX_PushArgumentString(journalEntry.sTag);
1011  NWNX_PushArgumentString(journalEntry.sText);
1012  NWNX_PushArgumentString(journalEntry.sName);
1013  NWNX_PushArgumentObject(oPlayer);
1014  NWNX_CallFunction(NWNX_Player, sFunc);
1015  return NWNX_GetReturnValueInt();
1016 }
1017 
1018 struct NWNX_Player_JournalEntry NWNX_Player_GetJournalEntry(object oPlayer, string questTag)
1019 {
1020  string sFunc = "GetJournalEntry";
1021  struct NWNX_Player_JournalEntry entry;
1022 
1023  NWNX_PushArgumentString(questTag);
1024  NWNX_PushArgumentObject(oPlayer);
1025  NWNX_CallFunction(NWNX_Player, sFunc);
1026 
1027  entry.nUpdated = NWNX_GetReturnValueInt();
1028  if(entry.nUpdated == -1) // -1 set as an indicator to say that the entry was not found
1029  {
1030  return entry;
1031  }
1035  entry.nState = NWNX_GetReturnValueInt();
1038  entry.sName = NWNX_GetReturnValueString();
1039  entry.sText = NWNX_GetReturnValueString();
1040  entry.sTag = questTag;
1041  return entry;
1042 }
1043 
1044 void NWNX_Player_CloseStore(object oPlayer)
1045 {
1046  string sFunc = "CloseStore";
1047 
1048  NWNX_PushArgumentObject(oPlayer);
1049  NWNX_CallFunction(NWNX_Player, sFunc);
1050 }
1051 
1052 void NWNX_Player_SetTlkOverride(object oPlayer, int nStrRef, string sOverride, int bRestoreGlobal = TRUE)
1053 {
1054  string sFunc = "SetTlkOverride";
1055 
1056  NWNX_PushArgumentInt(bRestoreGlobal);
1057  NWNX_PushArgumentString(sOverride);
1058  NWNX_PushArgumentInt(nStrRef);
1059  NWNX_PushArgumentObject(oPlayer);
1060  NWNX_CallFunction(NWNX_Player, sFunc);
1061 }
1062 
1063 void NWNX_Player_ReloadTlk(object oPlayer)
1064 {
1065  string sFunc = "ReloadTlk";
1066 
1067  NWNX_PushArgumentObject(oPlayer);
1068  NWNX_CallFunction(NWNX_Player, sFunc);
1069 }
1070 
1071 void NWNX_Player_UpdateWind(object oPlayer, vector vDirection, float fMagnitude, float fYaw, float fPitch)
1072 {
1073  string sFunc = "UpdateWind";
1074 
1075  NWNX_PushArgumentFloat(fPitch);
1076  NWNX_PushArgumentFloat(fYaw);
1077  NWNX_PushArgumentFloat(fMagnitude);
1078  NWNX_PushArgumentFloat(vDirection.x);
1079  NWNX_PushArgumentFloat(vDirection.y);
1080  NWNX_PushArgumentFloat(vDirection.z);
1081  NWNX_PushArgumentObject(oPlayer);
1082  NWNX_CallFunction(NWNX_Player, sFunc);
1083 }
1084 
1085 void NWNX_Player_UpdateSkyBox(object oPlayer, int nSkyBox)
1086 {
1087  string sFunc = "UpdateSkyBox";
1088 
1089  NWNX_PushArgumentInt(nSkyBox);
1090  NWNX_PushArgumentObject(oPlayer);
1091  NWNX_CallFunction(NWNX_Player, sFunc);
1092 }
1093 
1094 void NWNX_Player_UpdateFogColor(object oPlayer, int nSunFogColor, int nMoonFogColor)
1095 {
1096  string sFunc = "UpdateFogColor";
1097 
1098  NWNX_PushArgumentInt(nMoonFogColor);
1099  NWNX_PushArgumentInt(nSunFogColor);
1100  NWNX_PushArgumentObject(oPlayer);
1101  NWNX_CallFunction(NWNX_Player, sFunc);
1102 }
1103 
1104 void NWNX_Player_UpdateFogAmount(object oPlayer, int nSunFogAmount, int nMoonFogAmount)
1105 {
1106  string sFunc = "UpdateFogAmount";
1107 
1108  NWNX_PushArgumentInt(nMoonFogAmount);
1109  NWNX_PushArgumentInt(nSunFogAmount);
1110  NWNX_PushArgumentObject(oPlayer);
1111  NWNX_CallFunction(NWNX_Player, sFunc);
1112 }
1113 
1114 object NWNX_Player_GetGameObject(object oPlayer)
1115 {
1116  string sFunc = "GetGameObject";
1117 
1118  NWNX_PushArgumentObject(oPlayer);
1119  NWNX_CallFunction(NWNX_Player, sFunc);
1120  return NWNX_GetReturnValueObject();
1121 }
1122 
1123 void NWNX_Player_SetObjectUiDiscoveryMaskOverride(object oPlayer, object oObject, int nMask)
1124 {
1125  string sFunc = "SetObjectUiDiscoveryMaskOverride";
1126 
1127  NWNX_PushArgumentInt(nMask);
1128  NWNX_PushArgumentObject(oObject);
1129  NWNX_PushArgumentObject(oPlayer);
1130 
1131  NWNX_CallFunction(NWNX_Player, sFunc);
1132 }
1133 
1134 void NWNX_Player_SendPartyInvite(object oPlayer, object oInviter, int bForceInvite = FALSE, int bHideDialog = FALSE)
1135 {
1136  string sFunc = "SendPartyInvite";
1137 
1138  NWNX_PushArgumentInt(bHideDialog);
1139  NWNX_PushArgumentInt(bForceInvite);
1140  NWNX_PushArgumentObject(oInviter);
1141  NWNX_PushArgumentObject(oPlayer);
1142 
1143  NWNX_CallFunction(NWNX_Player, sFunc);
1144 }
1145 
1146 object NWNX_Player_GetTURD(object oPlayer)
1147 {
1148  string sFunc = "GetTURD";
1149 
1150  NWNX_PushArgumentObject(oPlayer);
1151  NWNX_CallFunction(NWNX_Player, sFunc);
1152 
1153  return NWNX_GetReturnValueObject();
1154 }
1155 
1157 {
1158  string sFunc = "ReloadColorPalettes";
1159 
1160  NWNX_PushArgumentObject(oPlayer);
1161  NWNX_CallFunction(NWNX_Player, sFunc);
1162 }
NWNX_Player_QuickBarSlot::nMetaType
int nMetaType
Definition: nwnx_player.nss:21
NWNX_Player_SetAreaExplorationState
void NWNX_Player_SetAreaExplorationState(object player, object area, string str)
Set player's area exploration state.
Definition: nwnx_player.nss:767
NWNX_GetReturnValueInt
int NWNX_GetReturnValueInt()
Returns the specified type from the c++ side.
Definition: nwnx.nss:94
NWNX_Player_SendDMAllCreatorLists
void NWNX_Player_SendDMAllCreatorLists(object oPlayer)
Resends palettes to a DM.
Definition: nwnx_player.nss:992
NWNX_Player_SetPlaceableNameOverride
void NWNX_Player_SetPlaceableNameOverride(object player, object placeable, string name)
Override the name of placeable for player only.
Definition: nwnx_player.nss:811
NWNX_Player_QuickBarSlot::oItem
object oItem
Definition: nwnx_player.nss:12
NWNX_Player_StartGuiTimingBar
void NWNX_Player_StartGuiTimingBar(object player, float seconds, string script="", int type=NWNX_PLAYER_TIMING_BAR_CUSTOM)
Starts displaying a timing bar.
Definition: nwnx_player.nss:502
NWNX_Player_SetRestDuration
void NWNX_Player_SetRestDuration(object player, int duration)
Override player's rest duration.
Definition: nwnx_player.nss:708
NWNX_PLAYER_PLATFORM_WINDOWS_X86
const int NWNX_PLAYER_PLATFORM_WINDOWS_X86
Definition: nwnx_player.nss:63
NWNX_Player_OpenInventory
void NWNX_Player_OpenInventory(object player, object target, int open=TRUE)
Allows player to open target's inventory.
Definition: nwnx_player.nss:745
NWNX_Player_SendPartyInvite
void NWNX_Player_SendPartyInvite(object oPlayer, object oInviter, int bForceInvite=FALSE, int bHideDialog=FALSE)
Send a party invite from oInviter to oPlayer.
Definition: nwnx_player.nss:1134
NWNX_Player_CloseStore
void NWNX_Player_CloseStore(object oPlayer)
Closes any store oPlayer may have open.
Definition: nwnx_player.nss:1044
NWNX_Player_JournalEntry::nCalendarDay
int nCalendarDay
Definition: nwnx_player.nss:38
NWNX_Player_UpdateSkyBox
void NWNX_Player_UpdateSkyBox(object oPlayer, int nSkyBox)
Update the SkyBox for oPlayer only.
Definition: nwnx_player.nss:1085
NWNX_Player_QuickBarSlot::sCommandLine
string sCommandLine
Definition: nwnx_player.nss:18
NWNX_PLAYER_PLATFORM_LINUX_ARM64
const int NWNX_PLAYER_PLATFORM_LINUX_ARM64
Definition: nwnx_player.nss:68
NWNX_Player_SetObjectUiDiscoveryMaskOverride
void NWNX_Player_SetObjectUiDiscoveryMaskOverride(object oPlayer, object oObject, int nMask)
Override the ui discovery mask of oObject for oPlayer only.
Definition: nwnx_player.nss:1123
NWNX_Player_RemoveEffectFromTURD
void NWNX_Player_RemoveEffectFromTURD(object oPlayer, string sEffectTag)
Remove effects with sEffectTag from oPlayer's TURD.
Definition: nwnx_player.nss:966
NWNX_Player_QuickBarSlot::sCommandLabel
string sCommandLabel
Definition: nwnx_player.nss:17
NWNX_Player_QuickBarSlot::nDomainLevel
int nDomainLevel
Definition: nwnx_player.nss:22
NWNX_Player_JournalEntry::nState
int nState
Definition: nwnx_player.nss:33
NWNX_Player_QuickBarSlot::oAssociate
object oAssociate
Definition: nwnx_player.nss:24
NWNX_Player_ApplyLoopingVisualEffectToObject
void NWNX_Player_ApplyLoopingVisualEffectToObject(object player, object target, int visualeffect)
Apply a looping visualeffect to a target that only player can see.
Definition: nwnx_player.nss:800
NWNX_Player_MusicBattleChange
void NWNX_Player_MusicBattleChange(object player, int track)
Changes the battle music track for the given player only.
Definition: nwnx_player.nss:656
NWNX_PLAYER_TIMING_BAR_TRAP_EXAMINE
const int NWNX_PLAYER_TIMING_BAR_TRAP_EXAMINE
Definition: nwnx_player.nss:51
NWNX_Player_UpdateFogColor
void NWNX_Player_UpdateFogColor(object oPlayer, int nSunFogColor, int nMoonFogColor)
Update Sun and Moon Fog Color for oPlayer only.
Definition: nwnx_player.nss:1094
NWNX_PLAYER_PLATFORM_INVALID
const int NWNX_PLAYER_PLATFORM_INVALID
Definition: nwnx_player.nss:62
NWNX_Player_GetJournalEntry
struct NWNX_Player_JournalEntry NWNX_Player_GetJournalEntry(object oPlayer, string questTag)
Returns a struct containing a journal entry that can then be modified.
Definition: nwnx_player.nss:1018
NWNX_Player_SetObjectVisualTransformOverride
void NWNX_Player_SetObjectVisualTransformOverride(object oPlayer, object oObject, int nTransform, float fValue)
Override a visual transform on the given object that only player will see.
Definition: nwnx_player.nss:788
NWNX_Player_ForcePlaceableInventoryWindow
void NWNX_Player_ForcePlaceableInventoryWindow(object player, object placeable)
Force opens the target object's inventory for the player.
Definition: nwnx_player.nss:469
NWNX_PLAYER_PLATFORM_MAC_X86
const int NWNX_PLAYER_PLATFORM_MAC_X86
Definition: nwnx_player.nss:69
NWNX_Player_QuickBarSlot::nMultiClass
int nMultiClass
Definition: nwnx_player.nss:15
NWNX_Player_SetCustomToken
void NWNX_Player_SetCustomToken(object oPlayer, int nCustomTokenNumber, string sTokenValue)
Set nCustomTokenNumber to sTokenValue for oPlayer only.
Definition: nwnx_player.nss:900
NWNX_Player_JournalEntry::nTimeOfDay
int nTimeOfDay
Definition: nwnx_player.nss:39
NWNX_PLAYER_TIMING_BAR_TRAP_FLAG
const int NWNX_PLAYER_TIMING_BAR_TRAP_FLAG
Definition: nwnx_player.nss:48
NWNX_PLAYER_TIMING_BAR_TRAP_DISARM
const int NWNX_PLAYER_TIMING_BAR_TRAP_DISARM
Definition: nwnx_player.nss:50
NWNX_Player_QuickBarSlot::sToolTip
string sToolTip
Definition: nwnx_player.nss:19
NWNX_Player_MusicBackgroundChangeDay
void NWNX_Player_MusicBackgroundChangeDay(object player, int track)
Changes the daytime music track for the given player only.
Definition: nwnx_player.nss:614
NWNX_Player_UpdateWind
void NWNX_Player_UpdateWind(object oPlayer, vector vDirection, float fMagnitude, float fYaw, float fPitch)
Update wind for oPlayer only.
Definition: nwnx_player.nss:1071
NWNX_Player_ReloadColorPalettes
void NWNX_Player_ReloadColorPalettes(object oPlayer)
Reloads the color palettes for oPlayer.
Definition: nwnx_player.nss:1156
NWNX_PLAYER_TIMING_BAR_REST
const int NWNX_PLAYER_TIMING_BAR_REST
Definition: nwnx_player.nss:53
NWNX_PLAYER_PLATFORM_WINDOWS_X64
const int NWNX_PLAYER_PLATFORM_WINDOWS_X64
Definition: nwnx_player.nss:64
NWNX_Player_GetBicFileName
string NWNX_Player_GetBicFileName(object player)
Get the name of the .bic file associated with the player's character.
Definition: nwnx_player.nss:585
NWNX_Player_QuickBarSlot::nAssociateType
int nAssociateType
Definition: nwnx_player.nss:23
NWNX_CallFunction
void NWNX_CallFunction(string pluginName, string functionName)
Scripting interface to NWNX.
Definition: nwnx.nss:54
NWNX_Player_QuickBarSlot::oSecondaryItem
object oSecondaryItem
Definition: nwnx_player.nss:13
NWNX_Player_JournalEntry
A journal entry.
Definition: nwnx_player.nss:28
NWNX_Player_JournalEntry::sName
string sName
Definition: nwnx_player.nss:30
NWNX_PLAYER_PLATFORM_ANDROID_ARM64
const int NWNX_PLAYER_PLATFORM_ANDROID_ARM64
Definition: nwnx_player.nss:73
NWNX_GetReturnValueString
string NWNX_GetReturnValueString()
Returns the specified type from the c++ side.
Definition: nwnx.nss:109
NWNX_PushArgumentString
void NWNX_PushArgumentString(string value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:74
NWNX_Player_QuickBarSlot::sResRef
string sResRef
Definition: nwnx_player.nss:16
NWNX_PLAYER_TIMING_BAR_CUSTOM
const int NWNX_PLAYER_TIMING_BAR_CUSTOM
Definition: nwnx_player.nss:56
NWNX_Player_MusicBackgroundChangeNight
void NWNX_Player_MusicBackgroundChangeNight(object player, int track)
Changes the nighttime music track for the given player only.
Definition: nwnx_player.nss:625
NWNX_Player_SetResManOverride
void NWNX_Player_SetResManOverride(object oPlayer, int nResType, string sOldResName, string sNewResName)
Override sOldResName with sNewResName of nResType for oPlayer.
Definition: nwnx_player.nss:888
NWNX_Player_SetAlwaysWalk
void NWNX_Player_SetAlwaysWalk(object player, int bWalk=TRUE)
Sets whether the player should always walk when given movement commands.
Definition: nwnx_player.nss:526
NWNX_Player_JournalEntry::nUpdated
int nUpdated
Definition: nwnx_player.nss:37
NWNX_Player_MusicBattleStop
void NWNX_Player_MusicBattleStop(object player)
Stops the battle music for the given player only.
Definition: nwnx_player.nss:676
NWNX_PLAYER_PLATFORM_MICROSOFT_XBOXONE
const int NWNX_PLAYER_PLATFORM_MICROSOFT_XBOXONE
Definition: nwnx_player.nss:76
NWNX_Player_UpdateCharacterSheet
void NWNX_Player_UpdateCharacterSheet(object player)
Refreshes the players character sheet.
Definition: nwnx_player.nss:736
NWNX_PushArgumentObject
void NWNX_PushArgumentObject(object value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:69
NWNX_Player_SetObjectHiliteColorOverride
void NWNX_Player_SetObjectHiliteColorOverride(object oPlayer, object oObject, int nColor)
Override the hilite color of oObject for oPlayer only.
Definition: nwnx_player.nss:955
NWNX_Player_JournalEntry::sText
string sText
Definition: nwnx_player.nss:31
NWNX_PushArgumentInt
void NWNX_PushArgumentInt(int value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:59
NWNX_Player_GetPlatformId
int NWNX_Player_GetPlatformId(object oPlayer)
Returns the platform ID of the given player (NWNX_PLAYER_PLATFORM_*)
Definition: nwnx_player.nss:868
NWNX_Player_FloatingTextStringOnCreature
void NWNX_Player_FloatingTextStringOnCreature(object oPlayer, object oCreature, string sText, int bChatWindow=TRUE)
Display floaty text above oCreature for oPlayer only.
Definition: nwnx_player.nss:922
NWNX_Player_UpdateItemName
void NWNX_Player_UpdateItemName(object oPlayer, object oItem)
Force an item name to be updated.
Definition: nwnx_player.nss:845
NWNX_Player_GetQuickBarSlot
struct NWNX_Player_QuickBarSlot NWNX_Player_GetQuickBarSlot(object player, int slot)
Gets the player's quickbar slot info.
Definition: nwnx_player.nss:536
NWNX_Player_UpdateFogAmount
void NWNX_Player_UpdateFogAmount(object oPlayer, int nSunFogAmount, int nMoonFogAmount)
Update Sun and Moon Fog Amount for oPlayer only.
Definition: nwnx_player.nss:1104
NWNX_Player_GetAreaExplorationState
string NWNX_Player_GetAreaExplorationState(object player, object area)
Get player's area exploration state.
Definition: nwnx_player.nss:756
NWNX_Player_GetLanguage
int NWNX_Player_GetLanguage(object oPlayer)
Returns the game language of the given player (uses NWNX_DIALOG_LANGUAGE_*)
Definition: nwnx_player.nss:878
NWNX_PLAYER_PLATFORM_ANDROID_X64
const int NWNX_PLAYER_PLATFORM_ANDROID_X64
Definition: nwnx_player.nss:74
NWNX_PLAYER_PLATFORM_ANDROID_ARM32
const int NWNX_PLAYER_PLATFORM_ANDROID_ARM32
Definition: nwnx_player.nss:72
NWNX_PLAYER_PLATFORM_LINUX_X64
const int NWNX_PLAYER_PLATFORM_LINUX_X64
Definition: nwnx_player.nss:66
NWNX_Player_GetTURD
object NWNX_Player_GetTURD(object oPlayer)
Get the TURD for oPlayer.
Definition: nwnx_player.nss:1146
NWNX_Player_JournalEntry::nPriority
int nPriority
Definition: nwnx_player.nss:34
NWNX_Player_MusicBackgroundStop
void NWNX_Player_MusicBackgroundStop(object player)
Stops the background music for the given player only.
Definition: nwnx_player.nss:646
NWNX_Player_AddCustomJournalEntry
int NWNX_Player_AddCustomJournalEntry(object oPlayer, struct NWNX_Player_JournalEntry journalEntry, int nSilentUpdate=0)
Give a custom journal entry to oPlayer.
Definition: nwnx_player.nss:999
NWNX_Player_PlaySound
void NWNX_Player_PlaySound(object player, string sound, object target=OBJECT_INVALID)
Play a sound at the location of target for the given player only.
Definition: nwnx_player.nss:686
NWNX_PLAYER_PLATFORM_MAC_X64
const int NWNX_PLAYER_PLATFORM_MAC_X64
Definition: nwnx_player.nss:70
NWNX_Player_SetQuickBarSlot
void NWNX_Player_SetQuickBarSlot(object player, int slot, struct NWNX_Player_QuickBarSlot qbs)
Sets the player's quickbar slot info.
Definition: nwnx_player.nss:562
NWNX_PLAYER_PLATFORM_LINUX_ARM32
const int NWNX_PLAYER_PLATFORM_LINUX_ARM32
Definition: nwnx_player.nss:67
NWNX_Player_SetPlaceableUsable
void NWNX_Player_SetPlaceableUsable(object player, object placeable, int usable)
Toggle a placeable's usable flag for the given player only.
Definition: nwnx_player.nss:697
NWNX_Player_SetSpawnLocation
void NWNX_Player_SetSpawnLocation(object oPlayer, location locSpawn)
Set the location oPlayer will spawn when logging in to the server.
Definition: nwnx_player.nss:976
NWNX_Player_StopGuiTimingBar
void NWNX_Player_StopGuiTimingBar(object player, string script="")
Stop displaying a timing bar.
Definition: nwnx_player.nss:521
NWNX_Player_ForcePlaceableExamineWindow
void NWNX_Player_ForcePlaceableExamineWindow(object player, object placeable)
Force display placeable examine window for player.
Definition: nwnx_player.nss:459
NWNX_Player_SetCreatureNameOverride
void NWNX_Player_SetCreatureNameOverride(object oPlayer, object oCreature, string sName)
Override the name of creature for player only.
Definition: nwnx_player.nss:911
NWNX_GetReturnValueObject
object NWNX_GetReturnValueObject()
Returns the specified type from the c++ side.
Definition: nwnx.nss:104
NWNX_Player_ShowVisualEffect
void NWNX_Player_ShowVisualEffect(object player, int effectId, vector position, float scale=1.0f, vector translate=[], vector rotate=[])
Plays the VFX at the target position in current area for the given player only.
Definition: nwnx_player.nss:594
NWNX_Player_QuickBarSlot
A quickbar slot.
Definition: nwnx_player.nss:10
NWNX_Player_MusicBackgroundStart
void NWNX_Player_MusicBackgroundStart(object player)
Starts the background music for the given player only.
Definition: nwnx_player.nss:636
NWNX_PLAYER_TIMING_BAR_TRAP_SET
const int NWNX_PLAYER_TIMING_BAR_TRAP_SET
Definition: nwnx_player.nss:52
NWNX_Player_GetGameObject
object NWNX_Player_GetGameObject(object oPlayer)
Return's the currently-possessed game object of a player.
Definition: nwnx_player.nss:1114
NWNX_Player_SetTlkOverride
void NWNX_Player_SetTlkOverride(object oPlayer, int nStrRef, string sOverride, int bRestoreGlobal=TRUE)
Override nStrRef from the TlkTable with sOverride for oPlayer only.
Definition: nwnx_player.nss:1052
NWNX_Player_SetRestAnimation
void NWNX_Player_SetRestAnimation(object oPlayer, int nAnimation)
Override player's rest animation.
Definition: nwnx_player.nss:778
NWNX_PLAYER_TIMING_BAR_TRAP_RECOVER
const int NWNX_PLAYER_TIMING_BAR_TRAP_RECOVER
Definition: nwnx_player.nss:49
NWNX_PushArgumentFloat
void NWNX_PushArgumentFloat(float value)
Pushes the specified type to the c++ side.
Definition: nwnx.nss:64
NWNX_Player_ApplyInstantVisualEffectToObject
void NWNX_Player_ApplyInstantVisualEffectToObject(object player, object target, int visualeffect, float scale=1.0f, vector translate=[], vector rotate=[])
Apply visualeffect to target that only player can see.
Definition: nwnx_player.nss:718
NWNX_Player_ReloadTlk
void NWNX_Player_ReloadTlk(object oPlayer)
Make the player reload it's TlkTable.
Definition: nwnx_player.nss:1063
NWNX_PLAYER_PLATFORM_NINTENDO_SWITCH
const int NWNX_PLAYER_PLATFORM_NINTENDO_SWITCH
Definition: nwnx_player.nss:75
NWNX_Player_QuickBarSlot::nINTParam1
int nINTParam1
Definition: nwnx_player.nss:20
NWNX_PLAYER_TIMING_BAR_LOCK
const int NWNX_PLAYER_TIMING_BAR_LOCK
Definition: nwnx_player.nss:55
NWNX_Player_QuickBarSlot::nObjectType
int nObjectType
Definition: nwnx_player.nss:14
NWNX_PLAYER_PLATFORM_SONY_PS4
const int NWNX_PLAYER_PLATFORM_SONY_PS4
Definition: nwnx_player.nss:77
NWNX_PLAYER_PLATFORM_LINUX_X86
const int NWNX_PLAYER_PLATFORM_LINUX_X86
Definition: nwnx_player.nss:65
NWNX_Player_PossessCreature
int NWNX_Player_PossessCreature(object oPossessor, object oPossessed, int bMindImmune=TRUE, int bCreateDefaultQB=FALSE)
Possesses a creature by temporarily making them a familiar.
Definition: nwnx_player.nss:855
NWNX_Player_JournalEntry::nQuestCompleted
int nQuestCompleted
Definition: nwnx_player.nss:35
NWNX_Player_ToggleDM
void NWNX_Player_ToggleDM(object oPlayer, int bIsDM)
Toggle oPlayer's PlayerDM status.
Definition: nwnx_player.nss:934
NWNX_Player_JournalEntry::sTag
string sTag
Definition: nwnx_player.nss:32
NWNX_Player_GetQuestCompleted
int NWNX_Player_GetQuestCompleted(object player, string sQuestName)
Gets whether a quest has been completed by a player.
Definition: nwnx_player.nss:822
NWNX_Player_MusicBattleStart
void NWNX_Player_MusicBattleStart(object player)
Starts the battle music for the given player only.
Definition: nwnx_player.nss:666
NWNX_PLAYER_TIMING_BAR_UNLOCK
const int NWNX_PLAYER_TIMING_BAR_UNLOCK
Definition: nwnx_player.nss:54
NWNX_Player_SetPersistentLocation
void NWNX_Player_SetPersistentLocation(string sCDKeyOrCommunityName, string sBicFileName, object oWP, int bFirstConnectOnly=TRUE)
Place waypoints on module load representing where a PC should start.
Definition: nwnx_player.nss:833
NWNX_Player_SetObjectMouseCursorOverride
void NWNX_Player_SetObjectMouseCursorOverride(object oPlayer, object oObject, int nCursor)
Override the mouse cursor of oObject for oPlayer only.
Definition: nwnx_player.nss:944
NWNX_PLAYER_PLATFORM_IOS
const int NWNX_PLAYER_PLATFORM_IOS
Definition: nwnx_player.nss:71
NWNX_Player_JournalEntry::nQuestDisplayed
int nQuestDisplayed
Definition: nwnx_player.nss:36