![]() ![]() |
Mar 8 2010, 07:53 AM
İleti
#1
|
|
|
Grup: Private İleti: 146 Katılım: 1-August 09 Nereden: ffffffffffuuuuuuuuu Üye No: 4,042 WE Seviye: Profesyonel Uzmanlık alanı: Modelleme/kaplama |
yani
red=kendisi yellow=dost teal=düşman dersek red, red bir unite dalarsa dalabilecek yellow bir unite dalarsa dalamayacak(order stop) teal a dalarsa dalabilecek QUOTE Untitled Trigger 003 Events Unit - A unit Is attacked Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Attacked unit)) Equal to (Owner of (Attacking unit)) Then - Actions Else - Actions Unit - Order (Attacking unit) to Stop bunu yaparsam kendine dalabiliyor, diğerlerine dalamıyor ben birde düşmana dalabilsin istiyorum şimdi aklıma bu geldi: QUOTE Untitled Trigger 003 Events Unit - A unit Is attacked Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Attacked unit)) Equal to (Owner of (Attacking unit)) And - All (Conditions) are true Conditions (Owner of (Attacked unit)) Not equal to Player 11 (Dark Green) (Owner of (Attacked unit)) Not equal to Player 12 (Brown) Then - Actions Else - Actions Unit - Order (Attacking unit) to Stop tabii ki gene olmadı aynı şekilde: QUOTE Untitled Trigger 003 Events Unit - A unit Is attacked Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Or - Any (Conditions) are true Conditions (Owner of (Attacked unit)) Not equal to Player 11 (Dark Green) (Owner of (Attacked unit)) Not equal to Player 12 (Brown) (Owner of (Attacked unit)) Equal to (Owner of (Attacking unit)) Then - Actions Else - Actions Unit - Order (Attacking unit) to Stop bu da olmuyor -------------------- ![]() |
|
|
|
Mar 8 2010, 10:03 AM
İleti
#2
|
|
|
Grup: SpellCraft Champion I & II İleti: 823 Katılım: 11-April 08 Nereden: Fethiye Üye No: 10 WE Seviye: Orta Uzmanlık alanı: Kod Yazma(GUI) |
Events
Unit - A unit Is attacked Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Attacked unit)) belongs to an ally of (Owner of (Attacking unit) equal to true Then - Actions Unit - Order (Attacking unit) to Stop Else - Actions -------------------- Yeni başlayanlar tarafından sık sorulan sorular. Tavern'den hero alma, creep çıkartıp hareket ettirme, multiboard hazırlama, bina yıkınca oyunu kazanma, shoptan skill satın alma, neutral creep spawnı vs. Soru sormadan önce bu konudaki haritaya bi göz atın belki bi çok sorunuzun cevabını bulursunuz.
Uber BomberMan 2.0 TR Range Değiştirme Sistemi v1.0 Triggerle Basit Skill Hazırlamak |
|
|
|
Mar 8 2010, 10:57 AM
İleti
#3
|
|
|
Grup: Private İleti: 146 Katılım: 1-August 09 Nereden: ffffffffffuuuuuuuuu Üye No: 4,042 WE Seviye: Profesyonel Uzmanlık alanı: Modelleme/kaplama |
Events Unit - A unit Is attacked Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Attacked unit)) belongs to an ally of (Owner of (Attacking unit) equal to true Then - Actions Unit - Order (Attacking unit) to Stop Else - Actions Events Unit - A unit Is attacked Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Attacked unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True Then - Actions Unit - Order (Attacking unit) to Stop Else - Actions Kendi unitlerine dalamıyor -------------------- ![]() |
|
|
|
Mar 8 2010, 12:50 PM
İleti
#4
|
|
|
Uzman ![]() ![]() ![]() ![]() ![]() Grup: JassCrafter İleti: 364 Katılım: 24-January 10 Üye No: 4,202 WE Seviye: Yeni Uzmanlık alanı: Yeryüzü Döşeme |
Şuna bi bakıver aceleyle yaptım belki yanlış olabilir.Yanlışsa akşam bakarım
Bu ileti Jedi tarafından Mar 8 2010, 04:52 PM yeniden düzenlenmiştir.
Ek: Dosya
|
|
|
|
Mar 8 2010, 05:22 PM
İleti
#5
|
|
|
Grup: SpellCraft Champion I & II İleti: 823 Katılım: 11-April 08 Nereden: Fethiye Üye No: 10 WE Seviye: Orta Uzmanlık alanı: Kod Yazma(GUI) |
QUOTE Attack Events Unit - A unit Is attacked Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Triggering unit)) Not equal to (Owner of (Attacking unit)) ((Triggering unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True Then - Actions Unit - Order (Attacking unit) to Stop Else - Actions O zaman böyle yap, çalışıyo denedim. Normal oyunda zaten her unit her unite saldırabiliyo (Invul olmadığı sürece). Senin tek yapman gereken dosta saldırmayı engellemek. Ilk verdiğim triggerde oyun kendi unitinide dost olarak gördüğü için çalışmamış. Jedi'nin yaptığına baktım düşman unitler benim heroma vuramıyodu. -------------------- Yeni başlayanlar tarafından sık sorulan sorular. Tavern'den hero alma, creep çıkartıp hareket ettirme, multiboard hazırlama, bina yıkınca oyunu kazanma, shoptan skill satın alma, neutral creep spawnı vs. Soru sormadan önce bu konudaki haritaya bi göz atın belki bi çok sorunuzun cevabını bulursunuz.
Uber BomberMan 2.0 TR Range Değiştirme Sistemi v1.0 Triggerle Basit Skill Hazırlamak |
|
|
|
Mar 8 2010, 05:31 PM
İleti
#6
|
|
|
Uzman ![]() ![]() ![]() ![]() ![]() Grup: JassCrafter İleti: 364 Katılım: 24-January 10 Üye No: 4,202 WE Seviye: Yeni Uzmanlık alanı: Yeryüzü Döşeme |
hero invuldu
trigger da bu: Attack Trigger Events Unit - A unit Is attacked Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Attacked unit)) Equal to Player 1 (Red) Then - Actions Do nothing Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Attacked unit)) Equal to Player 5 (Yellow) Then - Actions Unit - Order (Attacking unit) to Stop Else - Actions Do nothing Bu ileti Jedi tarafından Mar 8 2010, 05:43 PM yeniden düzenlenmiştir. |
|
|
|
Mar 8 2010, 10:23 PM
İleti
#7
|
|
|
Grup: Private İleti: 146 Katılım: 1-August 09 Nereden: ffffffffffuuuuuuuuu Üye No: 4,042 WE Seviye: Profesyonel Uzmanlık alanı: Modelleme/kaplama |
Teşekkürler hepinize.
Şuna bi bakıver aceleyle yaptım belki yanlış olabilir.Yanlışsa akşam bakarım hero invuldu trigger da bu: Attack Trigger Events Unit - A unit Is attacked Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Attacked unit)) Equal to Player 1 (Red) Then - Actions Do nothing Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Attacked unit)) Equal to Player 5 (Yellow) Then - Actions Unit - Order (Attacking unit) to Stop Else - Actions Do nothing Yanlış yere odaklanmışsın, o sadece bir örnek idi --- @yunusowic in dediği oldu QUOTE savasizni Events Unit - A unit Is attacked Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Triggering unit)) Not equal to (Owner of (Attacking unit)) ((Triggering unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True Then - Actions Unit - Order (Attacking unit) to Stop Else - Actions Bu kod doğru yani Bu ileti egomanyak tarafından Mar 9 2010, 09:07 AM yeniden düzenlenmiştir. -------------------- ![]() |
|
|
|
![]() ![]() |
1 kullanıcı bu başlığı okuyor (1 Misafir ve 0 Gizli Kullanıcı)
0 üye:
| Basit Görünüm | Tarih : 9th September 2010 - 10:24 PM |









Mar 8 2010, 07:53 AM








