Login: Pass:
AsmoDD
Administrateur


Inscrit le: 12 Fév 2005
Messages: 836
Message Posté le: 13/08/2006 15:39 Sujet du message: Liste de fonctions de NWN 2
Un membre des forums officiels, Rinehardt, a pu dresser une liste des fonctions incluses dans NWN 2 à l'aide des photos prises lors de la GenCon. Bien que cette liste soit loin d'être définitive, on peut déjà compter 910 fonctions, à comparer aux 834 de NWN 1.67. Voilà la liste complète :

Code:
abs
acos
ActionAttack
ActionCastFakeSpellAtLocation
ActionCastFakeSpellAtObject
ActionCastSpellAtLocation
ActionCastSpellAtObject
ActionCloseDoor
ActionCounterSpell
ActionDoCommand
ActionEquipItem
ActionEquipMostDamagingMelee
ActionEquipMostDamagingRanged
ActionEquipMostEffectiveArmor
ActionExamine
ActionForceFollowObject
ActionForceMoveToLocation
ActionForceMoveToObject
ActionGiveItem
ActionInteractObject
ActionJumpToLocation
ActionJumpToObject
ActionLockObject
ActionMoveAwayFromLocation
ActionMoveAwayFromObject
ActionMoveToLocation
ActionMoveToObject
ActionOpenDoor
ActionPauseConversation
ActionPauseCutscene
ActionPickUpItem
ActionPlayAnimation
ActionPutDownItem
ActionRandomWalk
ActionRest
ActionResumeConversation
ActionSit
ActionSpeakString
ActionSpeakStringByStrRef
ActionStartConversation
ActionTakeItem
ActionUnequipItem
ActionUnlockObject
ActionUseFeat
ActionUseSkill
ActionUseTalentAtLocation
ActionUseTalentOnObject
ActionWait
ActivatePortal
AddHenchMan
AddItemProperty
AddJournalQuestEntry
?AddRosterMemberByCharacter
?AddRosterMemberByTemplate
?AddRosterMemberToParty
AddToParty
AdjustAlignment
AdjustReputation
AmbientSoundChangeDay
AmbientSoundChangeNight
AmbientSoundPlay
AmbientSoundsetDayVolume
AmbientSoundsetNightVolume
AmbientSoundStop
AngleToVector
ApplyEffectAtLocation
ApplyEffectToObject
asin
AssignCommand
AssignCutsceneActionToObject
atan
BeginConversation
BlackScreen
BootPC
CalcPointAwayFromPoint
CalcSafeLocation
ChangeFaction
ChangeToStandardFaction
CharToASCII
ClearAllActions
ClearCombatOverrides
ClearPersonalReputation
CloseGUIScreen
CopyItem
CopyItemAndModify
CopyObject
cos
CreateItemOnObject
CreateObject
d10
d100
d12
d2
d20
d3
d4
d6
d8
DayToNight
?DebugPrintString
DecrementRemainingFeatUses
DecrementRemainingSpellUses
DelayCommand
DeleteCampaignVariable
DeleteLocalFloat
DeleteLocalInt
DeleteLocalLocation
DeleteLocalObject
DeleteLocalString
DespawnRosterMember
DestroyCampaignDatabase
DestroyObject
DismountObject
DisplayGUIScreen
DisplayInputBox
DisplayMessageBox
DoDoorAction
DoPlaceableObjectAction
DoSinglePlayerAutosave
DoWhirlwindAttack
EffectAbilityDecrease
EffectAbilityIncrease
EffectAbsorbDamage
EffectACDecrease
EffectACIncrease
EffectApppear
EffectAreaOfEffect
EffectArmorCheckPenaltyIncrease
?EffectAssayResistance
effectAttackDecrease
EffectAttackIncrease
EffectBABMinimum
EffectBardSongSinging
EffectBeam
EffectBlindness
?EffectBonu***points
EffectBreakEnchantment
EffectCharmed
EffectConcealment
EffectConfused
EffectCurse
EffectCutsceneDominated
EffectCutsceneGhost
EffectCutsceneImmobilize
EffectCutsceneParalyze
EffectDamage
EffectDamageDecrease
EffectDamageImmunityDecrease
EffectDamageImmunityIncrease
EffectDamageIncrease
EffectDamageOverTime
EffectDamageReduction
EffectDamageResistance
EffectDamageShield
EffectDarkness
EffectDarkVision
EffectDazed
EffectDeaf
EffectDeath
EffectDetectUndead
EffectDisappear
EffectDisappearAppear
EffectDisease
EffectDisintegrate
EffectDispelMagicAll
EffectDispelMagicBest
EffectDominated
EffectEntangle
EffectEthereal
EffectFrightened
EffectHaste
EffectHeal
EffectHealOnZeroHP
?EffectHideousBlow
EffectHitPointChangeWhenDying
EffectImmunity
EffectInvisibility
?EffectJarring
EffectKnockdown
EffectLinkEffects
EffectLowLightVision
EffectMaxDamage
EffectMesmerize
EffectMissChance
EffectModifyAttacks
EffectMovementSpeedDecrease
EffectMovementSpeedIncrease
EffectNegativeLevel
EffectNWN2ParticleEffect
EffectNWN2ParticleEffectFile
EffectNWN2SpecialEffectFile
EffectOnDispel
EffectParalyze
EffectPetrify
EffectPoison
EffectPolymorph
EffectRegeneration
EffectResurrection
EffectSanctuary
EffectSavingThrowDecrease
EffectSavingThrowIncrease
EffectSeeInvisible
?EffectSeeTrueHPs
?EffectSetScale
EffectShareDamage
EffectSilence
EffectSkillDecrease
EffectSkillIncrease
EffectSleep
EffectSlow
EffectSpellFailure
EffectSpellImmunity
EffectSpellLevelAbsorption
EffectSpellResistanceDecrease
EffectSpellResistanceIncrease
EffectStunned
EffectSummonCreature
EffectSwarm
EffectTemporaryHitpoints
EffectTimeStop
EffectTrueSeeing
EffectTurned
EffectTurnResistanceDecrease
EffectTurnResistanceIncrease
EffectUltravision
EffectVisualEffect
EndGame
EventActivateItem
EventConversation
EventSpellCastAt
EventUserDefined
ExecuteScript
ExploreAreaForPlayer
ExportAllCharacters
ExportSingleCharacter
ExtraordinaryEffect
fabs
FadeFromBlack
FadeToBlack
FeatAdd
FeatRemove
FeetToMeters
FindSubString
FiredFromPartyTransition
FloatingTextStringOnCreature
FloatingTextStrRefOnCreature
FloatToInt
FloatToString
ForceRest
FortitudeSave
Get2DAString
GetAbilityModifier
GetAbilityScore
GetAC
GetActionMode
GetAge
GetAILevel
GetAlignmentGoodEvil
GetAlignmentLawChaos
GetAnimalCompanionCreatureType
GetAnimalCompanionName
GetAppearanceType
GetArcaneSpellFailure
GetArea
GetAreaFromLocation
GetAreaOfEffectCreator
GetAssociate
GetAssociateType
GetAttackTarget
GetAttemptedAttackTarget
GetAttemptedSpellTarget
GetBaseAttackBonus
GetBaseItemType
GetBlockingDoor
GetBumpState
GetCalendarDay
GetCalendarMonth
GetCalendarYear
GetCampaignFloat
GetCampaignInt
GetCampaignLocation
GetCampaignString
GetCampaignVector
GetCanTalkToNonPlayerOwnedCreature
GetCasterLevel
GetChallengeRating
GetCharBackground
GetClassByPosition
GetClickingObject
GetCommandable
GetControlledCharacter
GetCreatureHasTalent
GetCreatureSize
GetCreatureStartingPackage
GetCreatureTalentBest
GetCreatureTalentRandom
GetCurrentAction
GetCurrentHitPoints
GetCutsceneCameraMoveRate
GetDamageDealtByType
GetDefensiveCastingMode
GetDeity
GetDescription
GetDetectMode
GetDialogSoundLength
GetDistanceBetween
GetDistanceBetweenLocations
GetDistanceToObject
GetDroppableFlag
GetEffectCreator
GetEffectDurationType
GetEffectInteger
GetEffectSpellId
GetEffectSubType
GetEffectType
GetEncounterActive
GetEncounterDifficulty
GetEncounterSpawnsCurrent
GetEncounterSpawnsMax
GetEnteringObject
GetEventHandler
GetExitingObject
GetFacing
GetFacingFromLocation
GetFactionAverageGoodEvilAlignment
GetFactionAverageLawChaosAlignment
GetFactionAverageLevel
GetFactionAverageReputation
GetFactionAverageXP
GetFactionBestAC
GetFactionEqual
GetFactionGold
GetFactionLeader
GetFactionLeastDamagedMember
GetFactionMostDamagedMember
GetFactionMostFrequentClass
GetFactionStrongestMember
GetFactionWeakestMember
GetFactionWorstAC
GetFamiliarCreatureType
GetFamiliarName
GetFirstEffect
GetFirstEnteringPC
GetFirstFactionMember
GetFirstInPersistentObject
GetFirstItemInInventory
GetFirstItemProperty
GetFirstName
GetFirstObjectInArea
GetFirstObjectInShape
GetFirstPC
GetFirstRosterMember
GetFortitudeSavingThrow
GetGameDifficulty
GetGender
GetGlobalBool
GetGlobalFloat
GetGlobalInt
GetGlobalString
GetGoingToBeAttackedBy
GetGold
GetGoldPieceValue
GetGoodEvilValue
GetHasAnySpellEffect
GetHasFeat
GetHasFeatEffect
GetHasInventory
GetHasSkill
GetHasSpell
GetHasSpellEffect
GetHenchman
GetHitDice
GetIdentified
GetIdFromTalent
GetImmortal
GetInventoryDisturbItem
GetInventoryDisturbType
GetIsAreaAboveGround
GetIsAreaInterior
GetIsAreaNatural
GetIsCompanionPossessionBlocked
GetIsCreatureDisarmable
GetIsDawn
GetIsDay
GetIsDead
GetIsDM
GetIsDMPossessed
GetIsDoorActionPossible
GetIsDusk
GetIsEffectValid
GetIsEncounterCreature
GetIsEnemy
GetIsFriend
GetIsImmune
GetIsInCombat
GetIsInSubArea
GetIsItemPropertyValid
GetIsListening
GetIsNeutral
GetIsNight
GetIsObjectValid
GetIsOpen
GetIsOwnedByPlayer
GetIsPartyTransition
GetIsPC
GetIsPlaceableObjectActionPossible
GetIsPlayableRacialType
GetIsPossessedFamiliar
GetIsReactionTypeFriendly
GetIsReactionTypeHostile
GetIsReactionTypeNeutral
GetIsResting
GetIsRosterMember
GetIsRosterMemberAvailable
GetIsRosterMemberCampaignNPC
GetIsRosterMemberSelectable
GetIsSinglePlayer
GetIsSkillSuccessful
GetIsTalentValid
GetIsTrapped
GetIsWeaponEffective
GetItemActivated
GetItemActivatedTarget
GetItemActivatedTargetLocation
GetItemActivator
GetItemACValue
GetItemAppearance
GetItemCharges
GetItemCursedFlag
GetItemHasItemProperty
GetItemInSlot
GetItemPossessedBy
GetItemPossessor
GetItemPropertyCostTable
GetItemPropertyCostTableValue
GetItemPropertyDurationType
GetItemPropertyParam1
GetItemPropertyParam1Value
GetItemPropertySubType
GetItemPropertyType
GetItemStackSize
GetJournalEntry
GetJournalEntryQuestExperience
GetLastAssociateCommand
GetLastAttacker
GetLastAttackMode
GetLastAttackType
GetLastClosedBy
GetLastDamager
GetLastDisarmed
GetLastDisturbed
GetLastHostileActor
GetLastKiller
GetLastLocked
GetLastName
GetLastOpenedBy
GetLastPCRested
GetLastPCToCancelCutscene
GetLastPerceived
GetLastPerceptionHeard
GetLastPerceptionInaudible
GetLastPerceptionSeen
GetLastPerceptionVanished
GetLastPlayerDied
GetLastPlayerDying
GetLastRespawnButtonPresser
GetLastRestEventType
GetLastSpeaker
GetLastSpell
GetLastSpellCastClass
GetLastSpellCaster
GetLastSpellHarmful
GetLastTrapDetected
GetLastUnlocked
GetLastUsedBy
GetLastWeaponUsed
GetLawChaosValue
GetLevelByClass
GetLevelByPosition
GetLevelUpPackage
GetListenPatternNumber
GetLocalFloat
GetLocalInt
GetLocalLocation
GetLocalObject
GetLocalString
GetLocation
GetLocked
GetLockKeyRequired
GetLockKeyTag
GetLockLockable
GetLockLockDC
GetLockUnlockDC
GetLootable
GetMaster
GetMatchedSubstring
GetMatchedSubstringsCount
GetMaxHenchmen
GetMaxHitPoints
GetMetaMagicFeat
GetModule
GetModuleItemAquired
GetModuleItemAquiredBy
GetModuleItemAquiredFrom
GetModuleItemAquiredStackSize
GetModuleItemLost
GetModuleItemLostBy
GetModuleName
GetMovementRate
GetName
GetNearestCreature
GetNearestCreatureToLocation
GetNearestObject
GetNearestObjectByTag
GetNearestObjectToLocation
GetNearestTrapToObject
GetNextEffect
GetNextEnteringPC
GetNextFactionMember
GetNextInPersistentObject
GetNextItemInInventory
GetNextItemProperty
GetNextObjectInArea
GetNextObjectInShape
GetNextPC
GetNextRosterMember
GetNodeSpeaker
GetNumActions
GetNumCutsceneActionsPending
GetNumStackedItems
GetObjectByTag
GetObjectFromRosterName
GetObjectHeard
GetObjectSeen
GetObjectType
GetOwnedCharacter
GetPCIPAddress
GetPCItemLastEquipped
GetPCItemLastEquippedBy
GetPCItemLastUnequipped
GetPCItemLastUnequippedBy
GetPCLevellingUp
GetPCPlayerName
GetPCPublicCDKey
GetPCSpeaker
GetPlaceableIllumination
GetPlotFlag
GetPosition
GetPositionFromLocation
GetProjectileTravelTime
GetRacialType
GetReflexAdjustedDamage
GetReflexSavingThrow
GetReputation
GetResRef
GetRosterNameFromObject
GetRosterNPCPartyLimit
?GetScriptHidden
GetSittingCreature
GetSkillRank
GetSpellCastItem
GetSpellFeatId
GetSpellId
GetSpellLevel
GetSpellResistance
GetSpellSaveDC
GetSpellTargetLocation
GetSpellTargetObject
GetStandardFactionReputation
GetStartingLocation
GetStealthMode
GetStolenFlag
GetStoreGold
GetStoreIdentifyCost
GetStoreMaxBuyPrice
GetStringByStrRef
GetStringLeft
GetStringLength
GetStringLowerCase
GetStringRight
GetStringUpperCase
GetStrRefSoundDuration
GetSubRace
GetSubString
GetTag
GetTileMainLight1Color
GetTileMainLight2Color
GetTileSourceLight1Color
GetTileSourceLight2Color
GetTimeHour
GetTimeMillisecond
GetTimeMinute
GetTimeSecond
GetTotalDamageDealt
GetTotalLevels
GetTransitionTarget
GetTrapBaseType
GetTrapCreator
GetTrapDetectable
GetTrapDetectDC
GetTrapDetectedBy
GetTrapDisarmable
GetTrapDisarmDC
GetTrapFlagged
GetTrapKeyTag
GetTrapOneShot
GetTRUEBaseAttackBonus
GetTurnResistanceHD
GetTypeFromTalent
GetUseableFlag
GetUserDefinedEventNumber
GetWaypointByTag
GetWeaponRanged
GetWeather
GetWeight
GetWillSavingThrow
GetXP
GiveGoldToCreature
GiveXPToCreature
HoursToSeconds
IncrementRemainingFeatUses
InsertString
IntToFloat
IntToHexString
IntToString
IsInConversation
?IsInMultiplayerConversation
ItemPropertyAbilityBonus
ItemPropertyACBonus
ItemPropertyACBonusVsAlign
ItemPropertyACBonusVsDmgType
ItemPropertyACBonusVsRace
ItemPropertyACBonusVsSAlign
ItemPropertyArcaneSpellFailure
ItemPropertyAttackBonus
ItemPropertyAttackBonusVsAlign
ItemPropertyAttackBonusVsRace
ItemPropertyAttackBonusVsSAlign
ItemPropertyAttackPenalty
ItemPropertyBonusFeat
?ItemPropertyBonu***points
ItemPropertyBonusLevelSpell
ItemPropertyBonusSavingThrow
ItemPropertyBonusSavingThrowVsX
ItemPropertyBonusSpellResistance
ItemPropertyCastSpell
ItemPropertyContainerReducedWeight
ItemPropertyDamageBonus
ItemPropertyDamageBonusVsAlign
ItemPropertyDamageBonusVsRace
ItemPropertyDamageBonusVsSAlign
ItemPropertyDamageImmunity
ItemPropertyDamagePenalty
ItemPropertyDamageReduction
ItemPropertyDamageResistance
ItemPropertyDamageVulnerability
ItemPropertyDarkvision
ItemPropertyDecreaseAbility
ItemPropertyDecreaseAC
ItemPropertyDecreaseSkill
ItemPropertyEnhancementBonus
ItemPropertyEnhancementBonusVsAlign
ItemPropertyEnhancementBonusVsRace
ItemPropertyEnhancementBonusVsSAlign
ItemPropertyEnhancementPenalty
ItemPropertyExtraMeleeDamageType
ItemPropertyExtraRangedDamageType
ItemPropertyFreeAction
ItemPropertyHaste
ItemPropertyHealersKit
ItemPropertyHolyAvenger
ItemPropertyImmunityMisc
ItemPropertyImmunitytoSpellLevel
ItemPropertyImprovedEvasion
ItemPropertyKeen
ItemPropertyLight
ItemPropertyLimitUseByAlign
ItemPropertyLimitUseByClass
ItemPropertyLimitUseByRace
ItemPropertyLimitUseBySAlign
ItemPropertyMassiveCritical
ItemPropertyMaxRangeStrengthMod
ItemPropertyMonsterDamage
ItemPropertyNoDamage
ItemPropertyOnHitCastSpell
ItemPropertyOnHitProps
ItemPropertyOnMonsterHitProperties
ItemPropertyReducedSavingThrow
ItemPropertyReducedSavingThrowVsX
ItemPropertyRegeneration
ItemPropertySkillBonus
ItemPropertySpecialWalk
ItemPropertySpellImmunitySchool
ItemPropertySpellImmunitySpecific
ItemPropertyThievesTools
ItemPropertyTrap
ItemPropertyTrueSeeing
ItemPropertyTurnResistance
ItemPropertyUnlimitedAmmo
ItemPropertyVampiricRegeneration
ItemPropertyVisualEffect
ItemPropertyWeightIncrease
ItemPropertyWeightReduction
JumpPartyToArea
JumpToLocation
JumpToObject
LevelUpHenchman
LineOfSightObject
LineOfSightVector
LoadGlobalVariables
LoadNewModule
Location
log
MagicalEffect
MESMERIZE_BREAK_ON_ATTACKED
MountObject
MusicBackgroundChangeDay
MusicBackgroundChangeNight
MusicBackgroundGetBattleTrack
MusicBackgroundGetDayTrack
MusicBackgroundGetNightTrack
MusicBackgroundPlay
MusicBackgroundSetDelay
MusicBackgroundStop
MusicBattleChange
MusicBattlePlay
MusicBattleStop
NightToDay
ObjectToString
OpenInventory
OpenStore
PlayAnimation
PlayCutstomAnimation
PlaySound
PlaySoundByStrRef
PlayVoiceChat
PopUpDeathGUIPanel
PopUpGUIPanel
pow
PrintFloat
PrintInteger
PrintObject
PrintString
PrintVector
RandomName
RecomputeStaticLighting
ReflexSave
?RefreshSpellEffectDuration
RemoveEffect
RemoveFromParty
RemoveHenchman
RemoveItemProperty
RemoveJournalQuestEntry
RemoveRosterMember
RemoveRosterMemberFromParty
RemoveSEFFromObject
RemoveSummonedAssociate
ResetCreatureLevelForXP
ResetFeatUses
ResetNWN2Fog
ResistSpell
RestoreBaseAttackBonus
RestoreCameraFacing
RetrieveCampaignObject
RoundsToSeconds
SaveGlobalVariables
SendMessageToAllDMs
SendMessageToPC
SendMessageToPCByStrRef
SetActionMode
SetAILevel
SetAreaTransitionBMP
SetAssociateListenPatterns
SetBaseAttackBonus
SetBumpState
SetCalendar
SetCameraFacing
SetCameraHeight
SetCameraMode
SetCampaignFloat
SetCampaignInt
SetCampaignLocation
SetCampaignString
SetCampaignVector
SetCanTalkToNonPlayerOwnedCreature
SetCombatOverrides
SetCommandable
SetCreatureAppearanceType
SetCreatureScriptsToSet
SetCustomToken
SetCutsceneCameraMoveRate
SetCustceneMode
SetDeity
SetDescription
SetDroppableFlag
SetEffectSpellId
SetEncounterActive
SetEncounterDifficulty
SetEncounterSpawnsCurrent
SetEncounterSpawnsMax
SetEventHandler
SetFacing
SetFacingPoint
SetFirstName
SetFog
SetGlobalBool
SetGlobalFloat
SetGlobalInt
SetGlobalString
SetGUIObjectDisabled
SetGUIObjectHidden
SetGUIObjectText
SetIdentified
SetImmortal
SetIsCompanionPossessionBlocked
SetIsDestroyable
?SetIsRosterMemberCampaignNPC
SetIsRosterMemberSelectable
SetIsTemporaryEnemy
SetIsTemporaryFriend
SetIsTemporaryNeutral
SetItemCharges
SetItemCursedFlag
SetItemStackSize
SetLastName
SetLevelUpPackage
SetListening
SetListenPattern
SetLocalFloat
SetLocalGUIVariable
SetLocalInt
SetLocalLocation
SetLocalObject
SetLocalString
SetLocked
SetLookAtTarget
SetLootable
SetMapPinEnabled
SetMaxHenchmen
SetNWN2Fog
SetOrientOnDialog
?SetOwnersControlledCompanion
SetPanelButtonFlash
SetPCDislike
SetPCLike
SetPlaceableIllumination
SetPlotFlag
?SetRosterNPCPartyLimit
SetScriptHidden
SetStandardFactionReputation
SetStolenFlag
SetStoreGold
SetStoreIdentifyCost
SetStoreMaxBuyPrice
SetSubRace
SetTileMainLightColor
SetTileSourceLightColor
SetTime
SetTrapActive
SetTrapDetectedBy
SetTrapDisabled
SetWeaponVisibility
SetWeather
SetXP
ShowWorldMap
SignalEvent
sin
SoundObjectPlay
SoundObjectSetPosition
SoundObjectSetVolume
SoundObjectStop
SpawnItemProjectile
SpawnRosterMember
SpawnScriptDebugger
SpawnSpellProjectile
SpeakOneLinerConversation
SpeakString
SpeakStringByStrRef
sqrt
StartNewModule
StopFade
StoreCameraFacing
StoreCampaignObject
StringCompare
StringToFloat
StringToInt
SummonAnimalCompanion
SummonFamiliar
SupernaturalEffect
SurrenderToEnemies
TakeGoldFromCreature
TalentFeat
TalentSkill
TalentSpell
tan
TestStringAgainstPattern
TouchAttackMelee
TouchAttackRanged
TriggerEncounter
TurnsToSeconds
UnpossessFamiliar
Vector
VectorMagnitude
VectorNormalize
VectorToAngle
VersusAlignmentEffect
VersusRacialTypeEffect
VersusTrapEffect
WillSave
WriteTimeStampedLogEntry
YardsToMeters



On peut noter la disparition de certaines fonctions pour compenser l'arriver de nouvelles, telles que setFirstName() et setLastName(). Voilà les commentaires d'Adam Miller sur les nouvelles fonctions (je les traduirai peut-être un de ces jours) :


I thought I'd do a little analysis of the new scripting functions.
DismountObject
MountObject
For the horse lovers out there, this is a very good sign. My guess is that while we won't see official horses for the first release, there's still the "guts" of the system in place. I'd expect mounts in an expansion for sure, and perhaps even in an unofficial hak.

CloseGUIScreen
DisplayGUIScreen
DisplayInputBox
DisplayMessageBox
SetGUIObjectDisabled
SetGUIObjectHidden
SetGUIObjectText
SetLocalGUIVariable
This seems to be the new GUI functions. It looks like there's a simple input box (e.g. for naming a custom item), a pop-up message box, and the more complex custom GUIs. I especially like how you can set local GUI variables and text, allowing for things on the GUI to change. I'm guessing the ability to disable or hide GUI Objects lets you enable/disable buttons and the like.

GetGlobalBool
GetGlobalFloat
GetGlobalInt
GetGlobalString
LoadGlobalVariables
SaveGlobalVariables
We've heard hints of global functions. I'm fuzzy on what they're used for and how they're different than the database functions.

DespawnRosterMember
GetFirstRosterMember
GetIsRosterMember
GetIsRosterMemberAvailable
GetIsRosterMemberCampaignNPC
GetIsRosterMemberSelectable
GetNextRosterMember
GetObjectFromRosterName
GetRosterNameFromObject
GetRosterNPCPartyLimit
RemoveRosterMember
RemoveRosterMemberFromParty
?SetIsRosterMemberCampaignNPC
SetIsRosterMemberSelectable
SpawnRosterMember
It seems there's a thing called a "Roster", though I'm not sure what it is, exactly. Maybe it's a way of associating NPCs with a player? Maybe it's part of the stronghold system?

EffectAbsorbDamage
EffectArmorCheckPenaltyIncrease
?EffectAssayResistance
EffectBardSongSinging
?EffectBonu***points
EffectBreakEnchantment
EffectDamageOverTime
EffectDetectUndead
EffectHealOnZeroHP
?EffectHideousBlow
?EffectJarring
EffectLowLightVision
EffectMaxDamage
EffectMesmerize
EffectNWN2ParticleEffect
EffectNWN2ParticleEffectFile
EffectNWN2SpecialEffectFile
EffectOnDispel
?EffectSeeTrueHPs
?EffectSetScale
EffectShareDamage
There's lots of new effects, many of which are likely for the new spell functions. The NWN2 particle effect ones are especially neat. I'm guessing you make a "particle effect file" via the plug-in, include it in the module, and then call it with this script. Snazzy.

GetCanTalkToNonPlayerOwnedCreature
SetCanTalkToNonPlayerOwnedCreature
It sounds like NPCs have a flag that let you make sure only the player can talk to them.

GetControlledCharacter
?SetOwnersControlledCompanion
This forces the player to control a companion, which is amazingly cool. You could almost mimic some of the DM client functions by using a normal PC, adding a creature as a companion, and then controlling it. There's a few other related "Ownership" scripts.

PlayCutstomAnimation
If this is what I think it is, it could be the coolest thing since sliced bread. Adding custom animations to NWN was very difficult, and this single function might help get around that huge limitation.

SetCombatOverrides
ClearCombatOverrides
This might be an easy way to fiddle with a creature's AI, especially mid-combat.

GetEventHandler
SetEventHandler
SetCreatureScriptsToSet
I think these let you change the scripts for a creature dynamically. Pretty handy.

SetDescription
People have wanted this for a long, long time.

There's still some mystery functions. I don't get the Set/GetBumpState, SetScriptHidden, and IsInMultiplayerConversation. There's also some more that have a pretty obvious function (e.g. GetAge).

All-in-all, I'm pretty excited about all these new functions we can play with. Great stuff!


Pour le reste, je laisse la parole aux scripteurs !
Répondre en citant
Voir le profil de l'utilisateur Envoyer un message privé
-MeteZ-



Inscrit le: 19 Nov 2005
Messages: 85
Localisation: Région Parisienne
Message Posté le: 27/08/2006 14:39 Sujet du message:
Dans la liste de scripts (que j'ai vite fait survolée Razz ), certaines fonctions sont précédés d'un point d'interrogation, ca signifie quoi ? (Ca ne peut pas être pour signaler les nouveaux scripts car j'en ait vu des inexistants sur nwn1 qui ne porte pas de ?)

Question

Aussi j'ai trouvé dans la liste une fonction nommée "
MESMERIZE_BREAK_ON_ATTACKED". On dirait plutôt la définition d'une constante qu'une fonction parce qu'elle est entièrement écrite en majuscule, un choix bizarre pour une fonction. Des idées ?

Question
Répondre en citant
Voir le profil de l'utilisateur Envoyer un message privé
Montrer les messages depuis:   

Page 1 sur 1
Sauter vers:  

 

Vous ne pouvez pas poster de nouveaux sujets dans ce forum
Vous ne pouvez pas répondre aux sujets dans ce forum
Vous ne pouvez pas éditer vos messages dans ce forum
Vous ne pouvez pas supprimer vos messages dans ce forum
Vous ne pouvez pas voter dans les sondages de ce forum

Traduction par : phpBB-fr.com
Powered by phpBB © 2001, 2007 phpBB Group