Posté le: 22/10/07 12:02 Sujet du message: Sort - Utilisation de Variables deploiement
Alors voila le sort d'un de mes heros. Je n'arrive pas a comprendre pourquoi il ne fonctionne pas correctement.
Il semblerait que ce soit relatif a la variable qui "compte" le nombre d'unite invoque encore en vie. Je pense que le probleme se situe dans le declancheur qui retire 1 lorsqu un squelette meurt.
C'est fort possible que ca vienne de mon utilisation des variables deploiements vu que je ne les ai pas encore vraiment utilisee.
Gui:
Trigger:
NECROSkeletons
Evénements
Unité - A unit Commence le lancement d'une compétence
Conditions
(Ability being cast) Egal à NECRO Raise Dead
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
sortSKELETONlevel[(Custom value of (Triggering unit))] Egal à 1
Alors - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
sortSKELETONlimit[(Custom value of (Triggering unit))] Inférieur à 2
Alors - Actions
Unité - Cause (Triggering unit) to damage (Triggering unit), dealing 70.00 damage of attack type Sorts and damage type Frappe des ténèbres Effet spécial - Create a special effect attached to the overhead of (Triggering unit) using ObjectsSpawnmodelsHumanHumanLargeDeathExplodeHumanLargeDeathExplode.mdl Set NECRO_SKEL_EFFECT[0] = (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
((Triggering unit) is alive) Egal à TRUE
Alors - Actions
Unité - Create 1 Skeleton (Necro Level 1) for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing Orientation bâtiment par défaut degrees Unité - Set the custom value of (Last created unit) to (Player number of (Triggering player)) Set sortSKELETONlimit[(Custom value of (Triggering unit))] = (sortSKELETONlimit[(Custom value of (Triggering unit))] + 1)
Partie - Display to (All players matching ((Owner of (Triggering unit)) Egal à (Triggering player))) the text: To much Skeletons a...
Sinon - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
sortSKELETONlevel[(Custom value of (Triggering unit))] Egal à 2
Alors - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
sortSKELETONlimit[(Custom value of (Triggering unit))] Inférieur à 3
Alors - Actions
Unité - Cause (Triggering unit) to damage (Triggering unit), dealing 85.00 damage of attack type Sorts and damage type Frappe des ténèbres Effet spécial - Create a special effect attached to the overhead of (Triggering unit) using ObjectsSpawnmodelsHumanHumanLargeDeathExplodeHumanLargeDeathExplode.mdl Set NECRO_SKEL_EFFECT[0] = (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
((Triggering unit) is alive) Egal à TRUE
Alors - Actions
Unité - Create 1 Skeleton (Necro Level 2) for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Orientation bâtiment par défaut degrees Unité - Set the custom value of (Last created unit) to (Player number of (Triggering player)) Set sortSKELETONlimit[(Custom value of (Triggering unit))] = (sortSKELETONlimit[(Custom value of (Triggering unit))] + 1)
Partie - Display to (All players matching ((Owner of (Triggering unit)) Egal à (Triggering player))) the text: To much Skeletons a...
Sinon - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
sortSKELETONlevel[(Custom value of (Triggering unit))] Egal à 3
Alors - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
sortSKELETONlimit[(Custom value of (Triggering unit))] Inférieur à 4
Alors - Actions
Unité - Cause (Triggering unit) to damage (Triggering unit), dealing 100.00 damage of attack type Sorts and damage type Frappe des ténèbres Effet spécial - Create a special effect attached to the overhead of (Triggering unit) using ObjectsSpawnmodelsHumanHumanLargeDeathExplodeHumanLargeDeathExplode.mdl Set NECRO_SKEL_EFFECT[0] = (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
((Triggering unit) is alive) Egal à TRUE
Alors - Actions
Unité - Create 1 Skeleton (Necro Level 3) for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Orientation bâtiment par défaut degrees Unité - Set the custom value of (Last created unit) to (Player number of (Triggering player)) Set sortSKELETONlimit[(Custom value of (Triggering unit))] = (sortSKELETONlimit[(Custom value of (Triggering unit))] + 1)
Partie - Display to (All players matching ((Owner of (Triggering unit)) Egal à (Triggering player))) the text: To much Skeletons a...
Sinon - Actions
Do nothing
Gui:
Trigger:
NECROSkeletonLimit
Evénements
Unité - A unit Meurt
Conditions
(Unit-type of (Triggering unit)) Egal à Skeleton (Necro Level 1) (Unit-type of (Triggering unit)) Egal à Skeleton (Necro Level 2) (Unit-type of (Triggering unit)) Egal à Skeleton (Necro Level 3)
Actions
Set sortSKELETONlimit[(Custom value of (Triggering unit))] = (sortSKELETONlimit[(Custom value of (Triggering unit))] - 1)
Gui:
Trigger:
NECROSkeletonLearn
Evénements
Unité - A unit Apprend une compétence
Conditions
(Learned Hero Skill) Egal à NECRO Raise Dead
Actions
Set sortSKELETONlevel[(Custom value of (Triggering unit))] = (sortSKELETONlevel[(Custom value of (Triggering unit))] + 1)
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