====== Liste des Commandes pour Écrire un Script ====== Cette section^parlera de toutes les commandes de script, qui sont aussi les comandes que vous pouvez utiliser dans la console in-game. Voici la liste des commandes. Normalement, la page de chaque commande devrait contenir la description du manuel pdf de Nival. Enuite, des ajouts arriveront si vous avez de l'expérience en la matière. ===== Fonctions Génériques ===== [[.generic:GetGameVar()]]\\ [[.generic:length()]]\\ [[.generic:GetDifficulty()]]\\ [[.generic:Load()]]\\ [[.generic:mod()]]\\ [[.generic:print()]]\\ [[.generic:random()]]\\ [[.generic:Save()]]\\ [[.generic:SetGameVar()]]\\ [[.generic:Sleep()]]\\ [[.generic:sqrt()]]\\ [[.generic:startThread()]]\\ ===== Fonctions sur la Carte Aventure ===== [[.advmap:AddHeroCreatures()]]\\ [[.advmap:AddObjectCreatures()]]\\ [[.advmap:BlockGame()]]\\ [[.advmap:CalcHeroMoveCost()]]\\ [[.advmap:CanMoveHero()]]\\ [[.advmap:ChangeHeroStat()]]\\ [[.advmap:CreateMonster()]]\\ [[.advmap:DeployReserveHero()]]\\ [[.advmap:EnableAIHeroHiring()]]\\ [[.advmap:EnableHeroAI()]]\\ [[.advmap:IsObjectExists()]]\\ [[.advmap:GenerateMonsters()]]\\ [[.advmap:GetCurrentPlayer()]]\\ [[.advmap:GetDate()]]\\ [[.advmap:GetHeroCreatures()]]\\ [[.advmap:GetHeroLevel()]]\\ [[.advmap:GetHeroStat()]]\\ [[.advmap:GetObjectCreatures()]]\\ [[.advmap:GetObjectiveProgress()]]\\ [[.advmap:GetObjectiveState()]]\\ [[.advmap:GetObjectOwner()]]\\ [[.advmap:GetObjectsInRegion()]]\\ [[.advmap:GetObjectPosition()]]\\ [[.advmap:GetPlayerHeroes()]]\\ [[.advmap:GetPlayerResource()]]\\ [[.advmap:GetTownBuildingLevel()]]\\ [[.advmap:GetTownBuildingLimitLevel()]]\\ [[.advmap:GetTownBuildingMaxLevel()]]\\ [[.advmap:GetTownHero()]]\\ [[.advmap:GiveArtefact()]]\\ [[.advmap:LevelUpHero()]]\\ [[.advmap:GiveHeroSkill()]]\\ [[.advmap:GiveHeroWarMachine()]]\\ [[.advmap:HasArtefact()]]\\ [[.advmap:HasBorderguardKey()]]\\ [[.advmap:HasHeroSkill()]]\\ [[.advmap:HasHeroWarMachine()]]\\ [[.advmap:IsHeroAlive()]]\\ [[.advmap:IsHeroLootable()]]\\ [[.advmap:IsObjectEnabled()]]\\ [[.advmap:IsObjectInRegion()]]\\ [[.advmap:IsObjectiveVisible()]]\\ [[.advmap:IsObjectVisible()]]\\ [[.advmap:IsRegionBlocked()]]\\ [[.advmap:KnowHeroSpell()]]\\ [[.advmap:Loose()]]\\ [[.advmap:MarkObjectAsVisited()]]\\ [[.advmap:MessageBox()]]\\ [[.advmap:MoveCamera()]]\\ [[.advmap:MoveHero()]]\\ [[.advmap:MoveHeroRealTime()]]\\ [[.advmap:GetAllNames()]]\\ [[.advmap:OpenCircleFog()]]\\ [[.advmap:OpenRegionFog()]]\\ [[.advmap:Play2DSound()]]\\ [[.advmap:Play3DSound()]]\\ [[.advmap:PlayObjectAnimation()]]\\ [[.advmap:RazeTown()]]\\ [[.advmap:RegionToPoint()]]\\ [[.advmap:RemoveArtefact()]]\\ [[.advmap:RemoveHeroCreature()]]\\ [[.advmap:RemoveHeroWarMachine()]]\\ [[.advmap:RemoveObject()]]\\ [[.advmap:RemoveObjectCreature()]]\\ [[.advmap:ResetHeroCombatScript()]]\\ [[.advmap:ResetObjectFlashlight()]]\\ [[.advmap:SetAIHeroAttractor()]]\\ [[.advmap:SetAIPlayerAttractor()]]\\ [[.advmap:SetCombatLight()]]\\ [[.advmap:SetHeroCombatScript()]]\\ [[.advmap:SetHeroLootable()]]\\ [[.advmap:SetAmbientLight()]]\\ [[.advmap:SetObjectEnabled()]]\\ [[.advmap:SetObjectiveProgress()]]\\ [[.advmap:SetObjectiveState()]]\\ [[.advmap:SetObjectiveVisible()]]\\ [[.advmap:SetObjectFlashLight()]]\\ [[.advmap:SetObjectOwner()]]\\ [[.advmap:SetObjectPosition()]]\\ [[.advmap:SetPlayerResource()]]\\ [[.advmap:SetPlayerStartResources()]]\\ [[.advmap:SetRegionBlocked()]]\\ [[.advmap:SetTownBuildingLimitLevel()]]\\ [[.advmap:SetWarfogBehaviour()]]\\ [[.advmap:ShowFlyingSign()]]\\ [[.advmap:SiegeTown()]]\\ [[.advmap:StartCombat()]]\\ [[.advmap:StartCutScene()]]\\ [[.advmap:StartDialogScene()]]\\ [[.advmap:StopPlaySound()]]\\ [[.advmap:TeachHeroSpell()]]\\ [[.advmap:TransformTown()]]\\ [[.advmap:Trigger()]]\\ [[.advmap:UnblockGame()]]\\ [[.advmap:UnreserveHero()]]\\ [[.advmap:Win()]]\\ ===== Fonctions sur le Terrain de Combat===== [[.combat:Prepare()]]\\ [[.combat:Start()]]\\ [[.combat:IsHuman()]]\\ [[.combat:IsComputer()]]\\ [[.combat:SetControlMode()]]\\ [[.combat:EnableAutoFinish()]]\\ [[.combat:Finish()]]\\ [[.combat:GetAttackerHero()]]\\ [[.combat:GetAttackerCreatures()]]\\ [[.combat:GetAttackerWarMachines()]]\\ [[.combat:GetAttackerWarMachine()]]\\ [[.combat:GetDefenderHero()]]\\ [[.combat:GetDefenderCreatures()]]\\ [[.combat:GetDefenderWarMachines()]]\\ [[.combat:GetAttackerWarMachine()]]\\ [[.combat:GetDefenderBuidings()]]\\ [[.combat:GetDefenderBuiding()]]\\ [[.combat:IsAttacker()]]\\ [[.combat:IsHero()]]\\ [[.combat:IsCreature()]]\\ [[.combat:IsWarMachine()]]\\ [[.combat:IsBuilding()]]\\ [[.combat:GetHeroName()]]\\ [[.combat:GetCreatureType()]]\\ [[.combat:GetCreatureNumber()]]\\ [[.combat:GetWarMachineType()]]\\ [[.combat:GetBuildingType()]]\\ [[.combat:GetUnitPosition()]]\\ [[.combat:AddCreature()]]\\ [[.combat:EnableCinematicCamera()]]\\ ===== Fonctions dans les Villes ===== [[.town:HeroHired()]]\\ [[.town:CreatureHired()]]\\ ===== Tutoriaux ==== [[.tutorial:IsTutorialItemEnable()]]\\ [[.tutorial:IsTutorialMessageBoxOpen()]]\\ [[.tutorial:TutorialActivateHint()]]\\ [[.tutorial:TutorialMessageBox()]]\\ [[.tutorial:TutorialSetBlink()]]\\