Damage arttırma

Altikardes

Kızıltaş Madencisi
En iyi cevaplar
0
Adamın damagesini arttırma kodu varmı,yani yumruğunun vurduğu hasarı.
set damage to damage/2
şu şekilde arttırabilirmiyiz?
yardım eden herkese teşekkürler
 

TheRedstoneEngineer

Obsidyen Madencisi
En iyi cevaplar
0
Pek anlamam ama 1 dk yazıyorum.
Edit: Böyle olmalı
Kod:
on damage
[TAB]trigger:
[TAB][TAB]execute player command "/effect %victim%" 7 1 1
Bir oyuncuya vurulduğunda ona bir de anında hasar verir.
 

Altikardes

Kızıltaş Madencisi
En iyi cevaplar
0
Teşekkürler işime yaradı.[DOUBLEPOST=1430253516,1430240867][/DOUBLEPOST]@sergun26
@Axel102
[23:32:59 INFO]: [Skript] Reloading duyuru(1).sk...
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 36: increase the damage of attacker by 1')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 39: increase the damage of attacker by 2')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 42: increase the damage of attacker by 3')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 45: increase the damage of attacker by 4')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 48: increase the damage of attacker by 5')
[23:32:59 INFO]: [Skript] Encountered 5 errors while reloading duyuru(1).sk!
>

Bu hatalar nasıl cozulur;kod şudur:
on damage:
if {cavus.%attacker%} is set:
increase the damage of attacker by 1
if {cavus.%attacker%} is not set:
if {tegmen.%attacker%} is set:
increase the damage of attacker by 2
if {tegmen.%attacker%} is not set:
if {yuzbasi.%attacker%} is set:
increase the damage of attacker by 3
if {yuzbasi.%attacker%} is not set:
if {binbasi.%attacker%} is set:
increase the damage of attacker by 4
if {yuzbasi.%attacker%} is not set:
if {gkbaskani.%attacker%} is set:
increase the damage of attacker by 5
 

Axel102

Hayalet Avcısı
En iyi cevaplar
6
Teşekkürler işime yaradı.[DOUBLEPOST=1430253516,1430240867][/DOUBLEPOST]@sergun26
@Axel102
[23:32:59 INFO]: [Skript] Reloading duyuru(1).sk...
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 36: increase the damage of attacker by 1')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 39: increase the damage of attacker by 2')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 42: increase the damage of attacker by 3')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 45: increase the damage of attacker by 4')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 48: increase the damage of attacker by 5')
[23:32:59 INFO]: [Skript] Encountered 5 errors while reloading duyuru(1).sk!
>

Bu hatalar nasıl cozulur;kod şudur:
on damage:
if {cavus.%attacker%} is set:
increase the damage of attacker by 1
if {cavus.%attacker%} is not set:
if {tegmen.%attacker%} is set:
increase the damage of attacker by 2
if {tegmen.%attacker%} is not set:
if {yuzbasi.%attacker%} is set:
increase the damage of attacker by 3
if {yuzbasi.%attacker%} is not set:
if {binbasi.%attacker%} is set:
increase the damage of attacker by 4
if {yuzbasi.%attacker%} is not set:
if {gkbaskani.%attacker%} is set:
increase the damage of attacker by 5
Sergunun verdigi kod yanlıştı galiba
 
S

sergun26

Ziyaretçi
Teşekkürler işime yaradı.[DOUBLEPOST=1430253516,1430240867][/DOUBLEPOST]@sergun26
@Axel102
[23:32:59 INFO]: [Skript] Reloading duyuru(1).sk...
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 36: increase the damage of attacker by 1')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 39: increase the damage of attacker by 2')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 42: increase the damage of attacker by 3')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 45: increase the damage of attacker by 4')
[23:32:59 ERROR]: the damage of the attacker can't have anything added to it (du
yuru(1).sk, line 48: increase the damage of attacker by 5')
[23:32:59 INFO]: [Skript] Encountered 5 errors while reloading duyuru(1).sk!
>

Bu hatalar nasıl cozulur;kod şudur:
on damage:
if {cavus.%attacker%} is set:
increase the damage of attacker by 1
if {cavus.%attacker%} is not set:
if {tegmen.%attacker%} is set:
increase the damage of attacker by 2
if {tegmen.%attacker%} is not set:
if {yuzbasi.%attacker%} is set:
increase the damage of attacker by 3
if {yuzbasi.%attacker%} is not set:
if {binbasi.%attacker%} is set:
increase the damage of attacker by 4
if {yuzbasi.%attacker%} is not set:
if {gkbaskani.%attacker%} is set:
increase the damage of attacker by 5
Böyle dene:
increase damage by miktar
 

blackone1991

Elmas Madencisi
En iyi cevaplar
0
Kod:
increase damage by 3 # Hasar'ı 3 arttırır.

Eğer matematiksel bir işlem ile istiyor isen (%,+,/,-)
set {_damage} to damage
increase damage by {_damage} + {_damage} # 2 katı :3
increase damage by {_damage} % {_damage} # %2'si

Gibisinden kolay yollarla halledebilirsin.
 
Üst