Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
logic <and> <not> <or>
#1
Для чего в .xml данные condition?
И хотелось бы посмотреть пример одного из скилов, который бы работал - с данными кондами.

Спасибо.
Ответ
#2
[SRC="xml"] <skill id="176" levels="3" name="Frenzy">
<!--
176 1 Frenzy Increases P. Atk. by 10% for 1 minute 30 seconds. Additionally increases P. Atk. by 20% when using a sword/blunt weapon. Increases Accuracy by 2 and P. Atk. by 5% when using a two-handed sword/blunt weapon. Available when HP is 60% or lower. none none
176 2 Frenzy Increases P. Atk. by 12% for 1 minute 30 seconds. Additionally increases P. Atk. by 30% when using a sword/blunt weapon. Increases Accuracy by 4 and P. Atk. by 7% when using a two-handed sword/blunt weapon. Available when HP is 60% or lower. none none
176 3 Frenzy Increases P. Atk. by 15% for 1 minute 30 seconds. Additionally increases P. Atk. by 40% when using a sword/blunt weapon. Increases Accuracy by 6 and P. Atk. by 10% when using a two-handed sword/blunt weapon. Available when HP is 60% or lower. none none
-->
<table name="#default">1.1 1.12 1.15</table>
<table name="#sword-blunt">1.20 1.3 1.4</table>
<table name="#two-hands">1.05 1.07 1.1</table>
<table name="#accCombat">2 4 6</table>
<table name="#effectPoint">303 438 523</table>
<table name="#abnormal_lv">1 2 3</table>
<table name="#mpConsume2">14 21 25</table>
<table name="#magicLevel">32 46 55</table>
<set name="icon" val="icon.skill0176" />
<set name="reuseDelay" val="300000" />
<set name="magicLevel" val="#magicLevel" />
<set name="hitTime" val="1500" />
<set name="hitCancelTime" val="500" />
<set name="mpConsume2" val="#mpConsume2" />
<set name="effectPoint" val="#effectPoint" />
<set name="target" val="TARGET_SELF" />
<set name="skillType" val="BUFF" />
<set name="operateType" val="OP_ACTIVE" />
<cond msgId="113" addName="1">
<player percentHP="60" />
</cond>
<for>
<effect count="1" name="Buff" stackOrder="#abnormal_lv" stackType="guts" time="90" val="0">
<mul order="0x30" stat="pAtk" val="#default" />
<mul order="0x30" stat="pAtk" val="#sword-blunt">
<and>
<using kind="Sword, Blunt, Big Sword, Big Blunt" />
<player percentHP="60" />
</and>
</mul>
<mul order="0x30" stat="pAtk" val="#two-hands">
<and>
<using kind="Big Sword, Big Blunt" />
</and>
</mul>
<add order="0x40" stat="accCombat" val="#accCombat">
<using kind="Big Sword, Big Blunt" />
</add>
</effect>
</for>
</skill>[/SRC]
[SRC="xml"] <skill id="134" levels="1" name="Toughness">
<table name="#rate">20</table>
<table name="#magicLevel">1</table>
<set name="icon" val="icon.skill0134" />
<set name="magicLevel" val="#magicLevel" />
<set name="target" val="TARGET_SELF" />
<set name="skillType" val="BUFF" />
<set name="operateType" val="OP_PASSIVE" />
<enchant1 levels="30" name="Power">
<table name="#rate">21 21 21 22 22 22 23 23 23 24 24 24 24 25 25 25 26 26 26 27 27 27 27 28 28 28 29 29 29 30</table>
<table name="#magicLevel">76 76 76 77 77 77 78 78 78 79 79 79 80 80 80 81 81 81 82 82 82 83 83 83 84 84 84 85 85 85</table>
</enchant1>
<for>
<add order="0x40" stat="rootResist" val="#rate" />
<add order="0x40" stat="sleepResist" val="#rate" />
<add order="0x40" stat="poisonResist" val="#rate" />
<add order="0x40" stat="absorbDamMp" val="10">
<or>
<player classId="49" />
<player classId="50" />
<player classId="51" />
<player classId="52" />
<player classId="115" />
<player classId="116" />
</or>
</add>
</for>
</skill>[/SRC]
[SRC="xml"] <etcitem id="65" name="Red Potion">
<set name="class" value="CONSUMABLE"/>
<set name="crystal_type" value="NONE"/>
<set name="icon" value="icon.etc_potion_red_i00"/>
<set name="price" value="40"/>
<set name="stackable" value="true"/>
<set name="type" value="POTION"/>
<set name="weight" value="80"/>
<skills>
<skill id="2001" level="1"/>
</skills>
<cond msgId="1508">
<not>
<player olympiad="true"/>
</not>
</cond>
</etcitem>[/SRC]
[SRC="xml"] <skill id="986" levels="25" name="Deadly Strike">
<!-- Attacks an enemy with 833 Power added to P. Atk. Cannot be used when a bow/crossbow/hand-to-hand combat weapon is equipped. Over-hit. -->
<table name="#power">833 992 1171 1371 1592 1832 2091 2272 2460 2653 2850 3050 3252 3453 3653 3849 3945 4040 4133 4224 4312 4399 4482 4563 4640</table>
<table name="#magicLevel">40 43 46 49 52 55 58 60 62 64 66 68 70 72 74 76 77 78 79 80 81 82 83 84 85</table>
<table name="#mpConsume2">38 41 44 48 51 55 58 61 62 65 67 69 71 73 75 77 78 78 79 80 80 81 82 82 83</table>
<set name="icon" val="icon.skill0986" />
<set name="power" val="#power" />
<set name="magicLevel" val="#magicLevel" />
<set name="mpConsume2" val="#mpConsume2" />
<set name="target" val="TARGET_ONE" />
<set name="skillType" val="PDAM" />
<set name="operateType" val="OP_ACTIVE" />
<set name="overHit" val="true" />
<set name="hitTime" val="1500" />
<set name="reuseDelay" val="5000" />
<cond msgId="113" addName="1">
<not>
<using kind="Bow, Crossbow, Fist, Dual Fist," />
</not>
</cond>
</skill>[/SRC]
Все права за кодерами lostworld сохранены. :redlol:
Ответ
#3
finfan Написал:Для чего в .xml данные condition?
И хотелось бы посмотреть пример одного из скилов, который бы работал - с данными кондами.

Спасибо.

это условия и всеSmile
Ответ
#4
Благодарю - понял Smile
Ответ


Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)