IPB

Hoşgeldiniz ( Giriş | Kayıt Ol )


 
Reply to this topicStart new topic
> Player, Kendi Unitlerine Saldırabilsin, Düşmana Saldırabilsi, n, allyye saldıramasın
egomanyak
mesaj Mar 8 2010, 07:53 AM
İleti #1


Çaylak
**


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 smile.gif


--------------------
Go to the top of the page
 
+Quote Post
yunusowic
mesaj Mar 8 2010, 10:03 AM
İleti #2


WE Unleashed
Grup Simge


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


--------------------
Go to the top of the page
 
+Quote Post
egomanyak
mesaj Mar 8 2010, 10:57 AM
İleti #3


Çaylak
**


Grup: Private
İleti: 146
Katılım: 1-August 09
Nereden: ffffffffffuuuuuuuuu
Üye No: 4,042
WE Seviye: Profesyonel
Uzmanlık alanı: Modelleme/kaplama



QUOTE(yunusowic @ Mar 8 2010, 10:03 AM) *
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 blush.gif


--------------------
Go to the top of the page
 
+Quote Post
Jedi
mesaj 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
Yüklenen Dosya(lar)  Allied___Enemy___Self_Attack.w3x ( 28.38K ) İndirilme Sayısı: 3
 
Go to the top of the page
 
+Quote Post
yunusowic
mesaj Mar 8 2010, 05:22 PM
İleti #5


WE Unleashed
Grup Simge


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.


--------------------
Go to the top of the page
 
+Quote Post
Jedi
mesaj 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 biggrin.gif
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.
Go to the top of the page
 
+Quote Post
egomanyak
mesaj Mar 8 2010, 10:23 PM
İleti #7


Çaylak
**


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.
QUOTE(Jedi @ Mar 8 2010, 12:50 PM) *
Şuna bi bakıver aceleyle yaptım belki yanlış olabilir.Yanlışsa akşam bakarım



QUOTE(Jedi @ Mar 8 2010, 05:31 PM) *
hero invuldu biggrin.gif
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 smile.gif

---
@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.


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
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