kk tolong jelasin dan klo bisa dicantumin trigger utk kombinasiin item kek di dota. Pliss, ud nyari2 dan nyoba2 masi bingung maklum pemula.
kk tolong jelasin dan klo bisa dicantumin trigger utk kombinasiin item kek di dota. Pliss, ud nyari2 dan nyoba2 masi bingung maklum pemula.
oo iy lupa, aq ga taw hrs bikin di mana, jd silahkan di move klo salah tempat asal jgn di delete
di Technical Support di Indogamers Warcraft Map harusnya...
eniwei, logikanya gini:
tiap seorang hero dapet resep, loe ngecek apa dia punya bahan2nya. Klo punya, ilangin resep dan bahannya, trus masukin item yang udah jadi.
Jadi misalnya buat bikin Sun Key loe butuh bahan Blood Key dan ghost key, serta resep Magic Key Chain, triggernya kira2:
Sun Key
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Magic Key Chain
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Blood Key) Equal to True
((Triggering unit) has an item of type Ghost Key) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type Blood Key)
Item - Remove (Item carried by (Triggering unit) of type Ghost Key)
Item - Remove (Item carried by (Triggering unit) of type Magic Key Chain)
Hero - Create Sun Key and give it to (Triggering unit)
Else - Actions
Do nothing
klo pake,
trigger ntu cuman jalan klo item yang baru diambil ntu Magic Key Chain...(Item-type of (Item being manipulated)) Equal to Magic Key Chain
jadi mending pake...
jadi trigger tetep jalan meski yang terakhir diambil bukan Magic Key Chain...Sun Key
Events
Unit - A unit Acquires an item
Conditions
-NONE //kosong maksudnya...
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Blood Key) Equal to True
((Triggering unit) has an item of type Ghost Key) Equal to True
((Triggering unit) has an item of type Magic Key Chain) Equal to True
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type Blood Key)
Item - Remove (Item carried by (Triggering unit) of type Ghost Key)
Item - Remove (Item carried by (Triggering unit) of type Magic Key Chain)
Hero - Create Sun Key and give it to (Triggering unit)
Else - Actions
ngomong2x gw lupa .. kl gw punya 2 bloodkey 2 ghost key ama 1 magic key chain jadinya gimana ?
tar gw tes dl ::
.
.
.
.
.
.
eh bisa ding .... X D
Last edited by rizzuh; 07-05-07 at 14:02.
waduh makasih byk neh untuk kk2 smua, btw wa jg mo nanya dunk klo supaya ga bisa make 2 item yg sama gimana seh, jd misal pny 2 ring of regen, 1 ring of regennya ilang dan duitnya dibalikin.
maap yah ud byk nanya soalnya emang masi pemula bgt nih, tp lagi mo bikin map kecil2an he3 ^^ V
klo menurut gw...
sebelumnya, u musti buat variable yang namanya ItemCheck di global variable...Event - A unit acquires an item
Condition -
Action -
Custom script : local integer udg_ItemCheck = 0
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 (Triggering unit) in slot (Integer A))) Equal to Ring of Regeneration
Then - Actions
Set ItemCheck = (ItemCheck + 1)
Custom script: loop
Custom script: exitwhen udg_ItemCheck == 1
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ItemCheck Greater than 1
Then - Actions
Item - Remove (Item carried by (Triggering unit) of type Ring of Regeneration)
Set ItemCheck = (ItemCheck - 1)
Player - Add <harga RingOfRegen> to Owner of Triggering Unit Current Gold
Else - Actions
Do nothing
Custom script: endloop
Else - Actions
Do nothing
ntu klo dibuat dalam GUI...biar bisa pengaruh ke semua player, gw pake custom script...haha...tapi klo ada yg lebih gampang jg gw pengen tau...
coz kbiasaan gw ntu...ngebikin yang mudah semakin sulit...lol ::
er...sory double post...
hmm..yang di atas ada yg kurang tuh,,, >__<
tambahin condition,
(Item-type of (Item being manipulated)) Equal to Ring Of Regeneration
klo ga ntu bakal tetep looping meski yang didapet bukan RoR...sori2... T__T
zzz
dia masih pemula, pake yang biasa2 ajah kali... gak usa pamer pake local variable segala -.-"
tapi kan ada juga orang extrimis yang pake cara unorthodox
macem kl di onepiec kakeknya si luffy ::
.
.
.
.
.
PS : apa itu orthodox ?? .. silahkan tanya ke institut bahasa terdekat ::
cara unorthodox yang gimana ni maksudnya?
(gw ngerti koq apa itu orthodox)
To put it simply ....
Unusual
godspeed
break a leg
waktu gw dulu nanya2x jg disodorinnya local2x ... mpe gw ga ngerti, tapi toh karena ga ngerti biasanya orang lebih tertarik buat mempelajari kan ? ::
Last edited by rizzuh; 08-05-07 at 10:08. Reason: siapa yang mindahin pad di keyboard gw ??
godspeed ama break a leg bukannya maksudnya good luck/selamet brjuang gitu? apa hubungannya?godspeed
break a leg
hohoho bagaimana klo kombo item potion? <----kan pake jass itu?
trus klo kita ga sengaja terambil 2 magic key? tar jadi satu dong? klo di dota nga
ga kok biar terambil 2 majik key ga masalah .... gw dah coba ... ::
kombo item potion ??.. maksudnya ?? gabungin item dengan charge gitu ??..
godspeed, break a leg ... ummm... nvm .... ::
Share This Thread