• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Item Classes

Status
Not open for further replies.
Level 18
Joined
Oct 25, 2006
Messages
1,171
Hep !
I got a problem with a RPG. I did different classes, they can all take only one type of weapon or armor.

There are no problem for the major part of item, but items in class "Bonus" and "Artefact" don't work (they even not triggered >.>). The triggers I made work for all class exepted those.

Triggers:
Take something
Evénements
Unité - A unit Acquiert un objet
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
(Item-class of (Item being manipulated)) Egal Ã* Permanent
Alors - Actions
Déclencheur - Run Take a Close Combat <gen> (ignoring conditions)
Sinon - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
(Item-class of (Item being manipulated)) Egal Ã* Divers
Alors - Actions
Déclencheur - Run Take a Bow <gen> (ignoring conditions)
Sinon - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
(Item-class of (Item being manipulated)) Egal Ã* Chargé
Alors - Actions
Déclencheur - Run Take a Wand <gen> (ignoring conditions)
Sinon - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
(Item-class of (Item being manipulated)) Egal Ã* Achetable
Alors - Actions
Déclencheur - Run Take a Metal Armor <gen> (ignoring conditions)
Sinon - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
(Item-class of (Item being manipulated)) Egal Ã* Un bonus
Alors - Actions
Déclencheur - Run Take a Leather Armor <gen> (ignoring conditions)
Sinon - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
(Item-class of (Item being manipulated)) Egal Ã* Divers
Alors - Actions
Déclencheur - Run Take a Tissu <gen> (ignoring conditions)
Sinon - Actions

Take a Close Combat
Evénements
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si - Conditions
((Triggering unit) is in Items_CloseCombat) Egal Ã* TRUE
Alors - Actions
Déclencheur - Run Only one Weapon <gen> (ignoring conditions)
Sinon - Actions
Partie - Display to (Player group((Owner of (Triggering unit)))) for 10.00 seconds the text: |cffD8C863You are n...
Héros - Drop (Item being manipulated) from (Triggering unit)


My apologies, my WE is french as I am =D

Told me if you really can't understand me :(

Thx.
 
Level 18
Joined
Oct 25, 2006
Messages
1,171
Problem solved: one of the item class dosen't work, trigger editor dosen't recognize it (in french it is the "Divers" class, dunno what is it in english sry, it is the last class of the condition).
 
Status
Not open for further replies.
Top