Help ! JASS share vision

Status
Không mở trả lời sau này.

nh0kl0ve14

Youtube Master Race
Tham gia ngày
17/6/10
Bài viết
27
Reaction score
1
mình muốn làm khi người chơi gõ lệnh -sv thì người chơi đó thấy hết tất cả người chơi bên kia đó, invi thấy luôn.mình đã thử làm mấy cái như không được.mấy bạn gáng dùm mình nha, thanks nhiều.

---------- Post added at 23:12 ---------- Previous post was at 22:46 ----------

sẵn cho mình hỏi cách làm system drop item luôn nha, ví dụ mình ấn -dropitem 1 thì item ở slot 1 sẽ rớt ra , thanks nhiều !
 
mình muốn làm khi người chơi gõ lệnh -sv thì người chơi đó thấy hết tất cả người chơi bên kia đó, invi thấy luôn.mình đã thử làm mấy cái như không được.mấy bạn gáng dùm mình nha, thanks nhiều.

---------- Post added at 23:12 ---------- Previous post was at 22:46 ----------

sẵn cho mình hỏi cách làm system drop item luôn nha, ví dụ mình ấn -dropitem 1 thì item ở slot 1 sẽ rớt ra , thanks nhiều !

Unit - Grant shared vision of (Triggering unit) to Player 1 (Red)
hàm này đủ khả năng soi sáng =))

Mã:
Drops Item
    Events
        Player - Player 1 (Red) types a chat message containing -dropitem as A substring
    Conditions
        (Integer((Substring((Entered chat string), 11, 1)))) Less than 7
    Actions
        Set TempInt = (Integer((Substring((Entered chat string), 11, 1))))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                TempInt Equal to 0
            Then - Actions
                Do nothing
            Else - Actions
                Custom script:   set bj_wantDestroyGroup = true
                Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and ((((Matching unit) is dead) Not equal to True) and ((Owner of (Matching unit)) Equal to (Triggering player))))) and do (Actions)
                    Loop - Actions
                        Hero - Drop the item from slot TempInt of (Picked unit)

.

P/S: Newbie về WorldEditor xài GUI đủ rồi 8-|
 
Chỉnh sửa cuối:
Status
Không mở trả lời sau này.
Back
Top