Page 1 of 2 12 LastLast
Results 1 to 15 of 22
http://idgs.in/50043
  1. #1
    l0git3c's Avatar
    Join Date
    Oct 2006
    Location
    England, Manchester
    Posts
    3,968
    Points
    4,650.70
    Thanks: 0 / 3 / 3

    Default [ASK]Cara nyari jumlah "x" terbanyak

    kan gw dah set, tiap player ngekill hero player lain, maka

    Set PlayerKills [Player number of Owner of Killing Unit] = PlayerKills [Player number of Owner of Killing Unit] + 1

    Nah sekarang gw mo buat pas di akhir game, dikasih liat, siapa Player yg paling banyak ngekill....caranya gmn yah????? Oh, terus kalo misalnya ada yg sama, dijadiinnya gini

    Killer Player = Player 1 and Player 2

    Kalo yg sama ampe 3 player

    Killer Player = Player 1, Player 2, and Player 3

    anyone help?::

  2. Hot Ad
  3. #2
    phonoscope's Avatar
    Join Date
    Nov 2007
    Location
    On Pad™
    Posts
    2,521
    Points
    2,951.70
    Thanks: 0 / 0 / 0

    Default

    klo di c++ sih pake player1.player
    tau dah klo sistem nya di struct kek gitu....

    klo p1 = player 1, p2... dst... sampe p12 = player 12

    bisa kan tuh...

  4. #3
    l0git3c's Avatar
    Join Date
    Oct 2006
    Location
    England, Manchester
    Posts
    3,968
    Points
    4,650.70
    Thanks: 0 / 3 / 3

    Default

    Quote Originally Posted by phonoscope View Post
    klo di c++ sih pake player1.player
    tau dah klo sistem nya di struct kek gitu....

    klo p1 = player 1, p2... dst... sampe p12 = player 12

    bisa kan tuh...
    ??

    bisa gila?
    gmn?

  5. #4
    phonoscope's Avatar
    Join Date
    Nov 2007
    Location
    On Pad™
    Posts
    2,521
    Points
    2,951.70
    Thanks: 0 / 0 / 0

    Default

    sry ga bisa kasi masukan... ^^ << bukan trigering ahli

  6. #5
    SrZ]Xevirath's Avatar
    Join Date
    Feb 2007
    Location
    Dragon Palace
    Posts
    3,427
    Points
    5,090.80
    Thanks: 0 / 20 / 16

    Default

    kaLo pake JASS gw bisa -_-
    kaLo GUI gw udah agak lupa >_<

  7. #6
    l0git3c's Avatar
    Join Date
    Oct 2006
    Location
    England, Manchester
    Posts
    3,968
    Points
    4,650.70
    Thanks: 0 / 3 / 3

    Default

    Quote Originally Posted by --Thanatos-- View Post
    kaLo pake JASS gw bisa -_-
    kaLo GUI gw udah agak lupa >_<
    ayo dong inget2, plzzzzzz

  8. #7
    SrZ]Xevirath's Avatar
    Join Date
    Feb 2007
    Location
    Dragon Palace
    Posts
    3,427
    Points
    5,090.80
    Thanks: 0 / 20 / 16

    Default

    Liat betapa panjangnya.....
    >_<

    jalan si
    pake yang dibold aja

    Code:
    Highest
        Events
            Map initialization
        Conditions
        Actions
            -------- Debugging Setup --------
            Set tempString = <Empty String>
            Set tempInteger = 0
            Set tempInteger2 = 0
            Set tempInteger3 = 0
            Set tempInteger4 = 0
            Set SomeNumber[1] = 0
            Set SomeNumber[2] = 0
            Set SomeNumber[3] = 3
            Set SomeNumber[4] = 3
            Set SomeNumber[5] = 5
            Set SomeNumber[6] = 5
            Set SomeNumber[7] = 4
            -------- Below is the trigger --------
            For each (Integer A) from 1 to 7, do (Actions)
                Loop - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        If - Conditions
                            SomeNumber[(Integer A)] Greater than tempInteger
                        Then - Actions
                            Set tempInteger2 = SomeNumber[(Integer A)]
                            Set tempInteger = (Integer A)
                        Else - Actions
            Custom script:   call BJDebugMsg (I2S(udg_tempInteger2))
            For each (Integer A) from 1 to 7, do (Actions)
                Loop - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        If - Conditions
                            SomeNumber[(Integer A)] Equal to tempInteger2
                        Then - Actions
                            Set tempInteger3 = (tempInteger3 + 1)
                        Else - Actions
            Custom script:   call BJDebugMsg (I2S(udg_tempInteger3))
            For each (Integer A) from 1 to 7, do (Actions)
                Loop - Actions
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        If - Conditions
                            SomeNumber[(Integer A)] Equal to tempInteger2
                        Then - Actions
                            Set tempInteger4 = (tempInteger4 + 1)
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                If - Conditions
                                    tempInteger4 Equal to 1
                                Then - Actions
                                    Set tempString = (Name of (Player((Integer A))))
                                Else - Actions
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                If - Conditions
                                    tempInteger3 Equal to 2
                                    tempInteger4 Equal to 2
                                Then - Actions
                                    Set tempString = (tempString + ( and  + (Name of (Player((Integer A))))))
                                Else - Actions
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                If - Conditions
                                    tempInteger3 Greater than 2
                                    tempInteger4 Less than tempInteger3
                                    tempInteger4 Not Equal To 1
                                Then - Actions
                                    Set tempString = (tempString + (,  + (Name of (Player((Integer A))))))
                                Else - Actions
                            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                If - Conditions
                                    tempInteger3 Greater than 2
                                    tempInteger4 Equal to tempInteger3
                                Then - Actions
                                    Set tempString = (tempString + (, and  + (Name of (Player((Integer A))))))
                                Else - Actions
                        Else - Actions
            Custom script:   call BJDebugMsg (udg_tempString)
    tempString = Player-player yang terbesar

    SomeNumber[] diganti jadi PlayerKills[]
    Sisa Variablenya yah... bikin tuh wkakhakwhkahkw

    Sampe pake 4 tempInteger
    saking bingungnya gw >_<
    lagi pusing berat gw

  9. #8
    l0git3c's Avatar
    Join Date
    Oct 2006
    Location
    England, Manchester
    Posts
    3,968
    Points
    4,650.70
    Thanks: 0 / 3 / 3

    Default

    waduh ribet banget bro...
    logikanya gmn emg? @_@

  10. #9
    SrZ]Xevirath's Avatar
    Join Date
    Feb 2007
    Location
    Dragon Palace
    Posts
    3,427
    Points
    5,090.80
    Thanks: 0 / 20 / 16

    Default

    Logikanya,

    Loop Integer A pertama:
    Nyari angka terbesar dan siapa yang pegang

    Loop Integer A kedua:
    Ngitung ada berapa yang punya angka terbesar

    Loop Integer A ketiga:
    Bikin text

    gw lagi pusing ga ketemu logika lain >_<

  11. #10
    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

    maksud nya maw bikin gimana nih?

    sapa tau gw bisa bantuin...^^

  12. #11
    rikkucool's Avatar
    Join Date
    Jan 2008
    Location
    jkt
    Posts
    59
    Points
    64.90
    Thanks: 0 / 0 / 0

    Default

    pengen bantu cuma aku anak TI smester 1 baru belajar pake C.... pake switch case kali kk

  13. #12
    phonoscope's Avatar
    Join Date
    Nov 2007
    Location
    On Pad™
    Posts
    2,521
    Points
    2,951.70
    Thanks: 0 / 0 / 0

    Default

    mangnya ada ya WEGUI pake sistem switch case???

  14. #13
    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

    mungkin dia make World Editor tapi dengan trigger nya C++ ....::hahaha::

  15. #14
    phonoscope's Avatar
    Join Date
    Nov 2007
    Location
    On Pad™
    Posts
    2,521
    Points
    2,951.70
    Thanks: 0 / 0 / 0

    Default

    ada2 aja...

    klo masuk ke c++ mah mending bikin game sendiri dah dari pada masukin ke war3

  16. #15
    LaMBhE's Avatar
    Join Date
    Oct 2007
    Location
    City of "YouNG ToweR" mana coba??
    Posts
    980
    Points
    1,130.30
    Thanks: 0 / 0 / 0

    Default

    C++ apaan si.. mangnya ada hubungan sama war3??

Page 1 of 2 12 LastLast

Posting Permissions

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