Results 1 to 3 of 3
http://idgs.in/53463
  1. #1
    -Davion-'s Avatar
    Join Date
    Oct 2006
    Location
    Paris Van Java
    Posts
    4,557
    Points
    5,555.47
    Thanks: 10 / 336 / 75

    Default Ada yg tau trigger Item Charges?

    Ada yg bisa ngasi tau trigger item charges kaya town of scroll portal? jadi klo beli 2 item sama jumlah itemnya bergabung di 1 slot, pake GUI aja biar gw ngerti. Ama variable nya, tar gw kasi credit di map gw.

    Event
    A Unit Acuire an item
    Condition
    Item owned by triggering unit equal to Town Portal
    Action

  2. Hot Ad
  3. #2
    BuaYa JingkRaK's Avatar
    Join Date
    Oct 2007
    Location
    When u believe me then I'll be there
    Posts
    613
    Points
    711.00
    Thanks: 0 / 0 / 0

    Default

    Item Charge?
    gampang atuh...


    Code:
    Charged Item
        Events
            Unit - A unit Acquires an item
        Conditions
            (Item-type of (Item being manipulated)) Equal to xxx
        Actions
            Set ChargedItem = (Item being manipulated)
            Set HeroChargedItem = (Hero manipulating item)
            For each (Integer A) from 1 to 6, do (Actions)
                Loop - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        If - Conditions
                            (Item-type of (Item carried by HeroChargedItem in slot (Integer A))) Equal to (Item-type of ChargedItem)
                        Then - Actions
                            Item - Set charges remaining in (Item carried by HeroChargedItem in slot (Integer A)) to ((Charges remaining in (Item carried by HeroChargedItem in slot (Integer A))) + (Charges remaining in ChargedItem))
                            Item - Remove ChargedItem
                        Else - Actions

  4. #3
    -Davion-'s Avatar
    Join Date
    Oct 2006
    Location
    Paris Van Java
    Posts
    4,557
    Points
    5,555.47
    Thanks: 10 / 336 / 75

    Default

    Quote Originally Posted by BuaYa JingkRaK View Post
    Item Charge?
    gampang atuh...


    Code:
    Charged Item
        Events
            Unit - A unit Acquires an item
        Conditions
            (Item-type of (Item being manipulated)) Equal to xxx
        Actions
            Set ChargedItem = (Item being manipulated)
            Set HeroChargedItem = (Hero manipulating item)
            For each (Integer A) from 1 to 6, do (Actions)
                Loop - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        If - Conditions
                            (Item-type of (Item carried by HeroChargedItem in slot (Integer A))) Equal to (Item-type of ChargedItem)
                        Then - Actions
                            Item - Set charges remaining in (Item carried by HeroChargedItem in slot (Integer A)) to ((Charges remaining in (Item carried by HeroChargedItem in slot (Integer A))) + (Charges remaining in ChargedItem))
                            Item - Remove ChargedItem
                        Else - Actions
    Makasih kk, nama buaya jinkrak akan berada didalam Pahlawan DotA Indonesia, tunggu saja kehadirannya.

Posting Permissions

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