Results 1 to 3 of 3
http://idgs.in/208317
  1. #1

    Join Date
    Jun 2009
    Posts
    5
    Points
    63.60
    Thanks: 0 / 0 / 0

    Default [Tutorial] Membuat Trigger penghalau allies attack

    Code:
    Anti allies attack
        Events
            Unit - A unit Is issued an order targeting an object
        Conditions
            (Issued order) Equal to (Order(attack))
            (Owner of (Target unit of issued order)) Not equal to Neutral Passive
            ((Owner of (Target unit of issued order)) is an ally of (Owner of (Triggering unit))) Equal to True
        Actions
            Unit - Order (Triggering unit) to Move To ((Position of (Target unit of issued order)) offset by 0.01 towards (Facing of (Triggering unit)) degrees)
    Ini trigger yang akan sangat berguna bila map kamu berjenis dota atau rpg
    Disabling allies attack.
    Nie trigger hasil nyoba2 doang sih...tapi ternyata working
    Hehehehe........dicoba deh, tapi jgn lupa ucapan terima kasihnya yah

  2. Hot Ad
  3. #2

    Join Date
    Jun 2008
    Location
    call removeLocation(udg_rumahlo)
    Posts
    43
    Points
    52.70
    Thanks: 0 / 0 / 0

    Default

    Quote Originally Posted by The_Dead_Flght View Post
    Code:
    Anti allies attack
        Events
            Unit - A unit Is issued an order targeting an object
        Conditions
            (Issued order) Equal to (Order(attack))
            (Owner of (Target unit of issued order)) Not equal to Neutral Passive
            ((Owner of (Target unit of issued order)) is an ally of (Owner of (Triggering unit))) Equal to True
        Actions
            Unit - Order (Triggering unit) to Move To ((Position of (Target unit of issued order)) offset by 0.01 towards (Facing of (Triggering unit)) degrees)
    Ini trigger yang akan sangat berguna bila map kamu berjenis dota atau rpg
    Disabling allies attack.
    Nie trigger hasil nyoba2 doang sih...tapi ternyata working
    Hehehehe........dicoba deh, tapi jgn lupa ucapan terima kasihnya yah
    Leak?

  4. #3
    KingB00ker's Avatar
    Join Date
    Jan 2007
    Posts
    622
    Points
    783.40
    Thanks: 35 / 22 / 17

    Default

    Haha, susah2 amat:

    Event
    Unit - A unit is attacked -----> event ini akan berlangsung sebelum unit kena serangan karena ada animation time

    Condition
    Boolean comparison - (Attacked unit) belongs to allies of (Owner of (attacking unit))

    Action
    Unit- Order (attacking unit) to (stop) -----> pilih order with no point

    Selesai~~~

    Untuk buat trigger supaya bisa deny bisa ditambahin conditionnya:
    Misalkan kk mau buat bisa dideny setelah hp dibawah 100, tambahkan condition ini:
    Real comparison - (Life of (attacked unit)) more than (100)

    Benar-benar selesai~~~

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •