Script functions list

1.
Name: QAddFact
Is used for: changing the value of chosen fact
Available for use in: Quest files
Properties:
  • Fact_ID - the name of the fact, you want to affect
  • Fact_Value - the value, you want to set
  • Valid_for - if -1, the value will be valid till you change it next time
  • Fact_ID - time period of current change validness

2.
Name: QBlockMeditation
Is used for: allowing or not allowing player character to meditate
Available for use in: Quest files
Properties:
  • isBlocked - if true, player character in not allowed to meditate, if false - player character is allowed to meditate

3.
Name: QBlockPlayer
Is used for: allowing or not allowing player character to move
Available for use in: Quest files
Properties:
  • blockPlayer - if true, player character is blocked, if false - player character is unblocked
  • freeCamera - if true, player is allowed to move camera while his character is blocked. If false - the camera is blocked too.

4.
Name: QBlockPlayerSword
Is used for: allowing or not allowing player character to use sword
Available for use in: Quest files
Properties:
  • BlockSword - if true, player character can't use his sword, if false - player character can use his sword.

5.
Name: QCameraShake
Is used for: shaking the camera (emulating the effect of earthquake)
Available for use in: Quest files
Properties:
  • ShakeType - variations of the effect.
  • shakeStrength - obviously, the strength of shaking

6.
Name: QClearAllPlayerBuffs
Is used for: removing all buffs (effects from elixirs etc.) from the player character
Available for use in: Quest files
Properties: No properties

7.
Name: QCheckHigherHealthLevel
Is used for: comparasing the health level of two NPCs
Available for use in: Quest files
Properties:
  • firstCharacterTag - the tag of first NPC, who will take part in comparising
  • secondCharacterTag - the tag of second NPC, who will take part in comparising
returns:
  • true, if health level of first NPC is higher than second
  • false, if health level of second NPC is higher than the first

8.
Name: QCheckIfAardHit
Is used for: checking, if chosen object was hit by Aard
Available for use in: Quest files
Properties:
  • ObjectTag - tag of the object, which will be checked
returns:
  • true, if object was hit by Aard
  • false, if object was not hit by Aard

9.
Name: QCheckIfInMeditation
Is used for: checking, if the player character is meditating
Available for use in: Quest files
Properties: No properties
returns:
  • true, if the player character is meditating
  • false, if the player character is not meditating

10.
Name: QDespawnNPCS
Is used for: despawning npcs
Available for use in: Quest files
Properties:
  • npcTag - tag of NPC(-s) that need(-s) to be despawned

11.
Name: QDrawWeapon
Is used for: make a chosen NPC to draw his weapon
Available for use in: Quest files
Properties:
  • targetsTag - tag of NPC, who will draw his weapon

12.
Name: QEnableTrigger
Is used for: enabling and disabling a chosen trigger (disabled trigger is a trigger, which can't be activated)
Available for use in: Quest files
Properties:
  • shouldBeEnabled - if true - trigger becomes enabled, if false - trigger becomes disabled
  • ObjectTag - tag of a trigger which you want to enable/disable

13.
Name: QEndGame
Is used for: showing the "Game over" screen
Available for use in: Quest files
Properties: No properties

14.
Name: QFadeIn
Is used for: making your screen dark
Available for use in: Quest files
Properties: No properties

15.
Name: QFadeOut
Is used for: returning your screen back to normal after being darked
Available for use in: Quest files
Properties: No properties

16.
Name: QGodMod
Is used for: making hero immortal
Available for use in: Quest files
Properties:
  • on - true to make hero immortal, false to make hero mortal

17.
Name: QRestoreHealth
Is used for: restoring all HitPoints of the target
Available for use in: Quest files
Properties:
  • targetTag - the tag of NPC, whose HitPoint you want to restore

18.
Name: QSetAppearance
Is used for: activating certain appearance for a chosen object (not NPC)
Available for use in: Quest files
Properties:
  • entityTag - tag of the object, whose appearance will be set
  • appearance - name of the appearance you want to set. List of available appearances consists of the appearances of selected EntityTemplate and the appearances of the included EntityTemplates

19.
Name: QSetCharacterAppearance
Is used for: activating certain appearance for a chosen NPC
Available for use in: Quest files
Properties:
  • entityTag - tag of the NPC, whose appearance will be set
  • appearance - name of the appearance you want to set. List of available appearances consists of the appearances of selected EntityTemplate and the appearances of the included EntityTemplates

20.
Name: QSetAttitude
Is used for: changing attitude of chosen NPC to player character
Available for use in: Quest files
Properties:
  • actorTag - the tag of NPC, whose attitude will be changed
  • attitude - AIA_Neutral, AIA_Friendly, AIA_Hostile, which are self-explanatory
  • dontNotice - false - ???, true - ???

21.
Name: QSetDrunk
Is used for: activating the effect of drunkenness (screen becomes blurred)
Available for use in: Quest files
Properties: No properties

22.
Name: QSetImmortal
Is used for: changing the "Immortal" property of the NPC
Available for use in: Quest files
Properties:
  • targetsTag - tag of the NPC, whose "Immortal" property you want to change
  • immortalityMode: AIM_None - NPC is mortal; AIM_Immortal - NPC won't die; AIM_Invulnerable - NPC won't get damage

23.
Name: QSetIsAttackableByPlayer
Is used for: setting true of false to the "IsAttackableByPlayer" property of the chosen NPC
Available for use in: Quest files
Properties:
  • actorsTag - the tag of NPC, whose property you want to change
  • enable - true makes NPC attackable, false - unattackable

24.
Name: QSetGeraltNaked
Is used for: putting off the current equipment of the hero
Available for use in: Quest files
Properties: No properties

25.
Name: QSetPlayerSneakMode
Is used for: turning on and off the sneak (stealth) mode
Available for use in: Quest files
Properties:
  • Flag - if true - player character is sneaking, if false - player character is moving in a usual way

26.
Name: QSetUseMageTeleport
Is used for: setting true of false to the "UseMageTeleport" property of the chosen NPC
Available for use in: Quest files
Properties:
  • actorsTag - the tag of NPC, whose property you want to change
  • enable - true makes NPC able to use mage teleport while in battle, false - NPC is not able to use mage teleport

27.
Name: QTriggerMedallion
Is used for: making the player character to scan the area with his witcher medallion
Available for use in: Quest files
Properties: No properties

28.
Name: QSetSepialFullscreenEffect
Is used for: putting a sepial effect on the screen (is used when Geralt goes through Egans memories)
Available for use in: Quest files
Properties:
  • Enable - if "true" - effect is on, if "false" - effect is off
  • fadeIn - amount of seconds while screen will get dark before setting the effect on\off
  • fadeOut - amount of seconds while screen will get light after being dark before setting the effect on\off

29.
Name: QMageTeleport
Is used for: making a character to teleport to the chosen spot using a teleportation effect
Available for use in: Quest files
Properties:
  • mageTag - tag of a character who will teleport
  • placeTag - tag of a place (waypoint, another NPCs tag etc.) where character will be teleported.

30.
Name: QPlayerWeaponToContainer
Is used for: taking players weapon and putting it into container (used when Geralt goes to Loredo residence)
Available for use in: Quest files
Properties:
  • containerTag - tag of a container where all the weapon will be put

31.
Name: QCatEffectToogle
Is used for: activating\deactivating the effect after drinking "Cat" elixir
Available for use in: Quest files
Properties:
  • enable- if "true" - effect is on, if "false" - off

32.
Name: QModifyPriceMultiplicator
Is used for: multiplying prices of a certain merchant
Available for use in: Quest files
Properties:
  • NPCTag- tag of a merchant NPC whose prices will be multiplied
  • Multiplier- a number itself

33.
Name: QCheckCombatMode
Is used for: checking whether player character is in combat mode ot not
Available for use in: Quest files
Properties: No properties

returns:
  • true, if player character is in combat mode
  • false, if player character is not in combat mode

34.
Name: QSetGlobalAffiliation
Is used for: making characters of two chosen groups to help\ignore each others enemies
Available for use in: Quest files
Properties: No properties
Properties:
  • groupNameA - first group
  • groupNameB -second group
  • affiliation - ???

NOTE: each character has its group set in its Entity Template (AI tab)