YEP.13 – Auto Passive States
Add passive states to your game! They can be innate to actors, classes, appear when a piece of equipment is worn, or after an actor learns a skill! Having a passive state increase gameplay depth by a lot!
為你的游戲添加被動(dòng)狀態(tài)。當(dāng)角色裝備武器或者學(xué)習(xí)技能時(shí)韭寸,可以獲得一個(gè)永久的狀態(tài)痒给。為你的游戲添加被動(dòng)狀態(tài)提高游戲可玩性吧!
Introduction
Passive states are states that are automatically active. You can think of them as an extension of traits but with more flexibility. They will always be there as long as the actor or enemy has auto passive state notetags.
被動(dòng)狀態(tài)是自動(dòng)添加的。你可以認(rèn)為他們是更加靈活的拓展特性张峰。只要角色有狀態(tài)標(biāo)簽弓柱,那么就會(huì)一直存在狀態(tài)。
NOTE: For those using Passive States with your skills, the passive states will only be applied from Learned Skills! They will not be applied from skills that are learned through traits. Why? Because without this restriction, a passive skill that applies a passive state that in turn provides a skill through its traits will cause an infinite loop in your game and cause it crash. So if you want your skills to provide a passive state, have your actors learn the skill instead of applying it through a trait.
注意:對(duì)于有被動(dòng)狀態(tài)的技能驻售,只有學(xué)習(xí)的時(shí)候會(huì)被應(yīng)用。通過特性獲得的技能不會(huì)造成被動(dòng)狀態(tài)更米。為什么呢欺栗?因?yàn)槿绻麤]有這個(gè)限制,被動(dòng)技能執(zhí)行被動(dòng)狀態(tài)將會(huì)讓你的游戲進(jìn)入一個(gè)無限循環(huán)而造成崩潰征峦。所以如果你希望你的技能提高被動(dòng)狀態(tài)迟几,讓你的角色去主動(dòng)學(xué)習(xí)這個(gè)技能而不是通過特性獲得。
Notetags
Actor, Class, Skills, Weapon, Armor, Enemy Notetags:
<Passive State: x>
<Passive State: x, x, x>
This will allow the actor or enemy to have state x as a passive state. If placed inside a weapon or armor notebox, the user will have that passive state.
允許你的角色獲得被動(dòng)狀態(tài)x栏笆。你可以放在角色类腮、敵方、武器蛉加、裝備等標(biāo)簽欄
<Passive State: x to y>
This will add the states x through y (in a sequence) for the actor or enemy to have as a passive state. If placed inside a weapon or armor notebox, the user will have that passive state.
讓你的角色獲得狀態(tài)x到y(tǒng)蚜枢。你可以放在角色缸逃、敵方、武器厂抽、裝備等標(biāo)簽欄
State Notetags:
<Passive Condition: HP Above x%>
<Passive Condition: HP Below x%>
<Passive Condition: MP Above x%>
<Passive Condition: MP Below x%>
If the user’s HP or MP is above/below x% of the MaxHP or MaxMP, this condition will be met for the passive state to appear.
當(dāng)血量或者魔法量低于或者高于最大值時(shí)需频,被動(dòng)狀態(tài)觸發(fā)。
<Passive Condition: Stat Above x>
<Passive Condition: Stat Below x>
Replace ‘stat’ with ‘HP’, ‘MP’, ‘TP’, ‘MAXHP’, ‘MAXMP’, ‘ATK’, ‘DEF’, ‘MAT’, ‘MDF’, ‘AGI’, ‘LUK’. If the above stat is above/below x, then the condition is met for the passive state to appear.
當(dāng)其他狀態(tài)低于或者高于x時(shí)筷凤,被動(dòng)狀態(tài)觸發(fā)
<Passive Condition: Switch x ON>
<Passive Condition: Switch x OFF>
If switch x is either ON/OFF, then the condition is met for the passive state to appear.
當(dāng)開關(guān)是開啟或者關(guān)閉時(shí)昭殉,被動(dòng)狀態(tài)觸發(fā)
<Passive Condition: Variable x Above y>
<Passive Condition: Variable x Below y>
Replace x with the variable you wish to check to see if it’s above/below y, then the condition is met for the passive state to appear.
當(dāng)變量x高于或者低于y時(shí),被動(dòng)狀態(tài)觸發(fā)
Lunatic Mode – Conditional Passives
For those who understand a bit of JavaScript and would like for their passive states to appear under specific conditions, you can use this notetag to accomplish conditional factors.
對(duì)于掌握J(rèn)S語言并且想把被動(dòng)狀態(tài)用于特殊情況時(shí)藐守,你可以使用下面的標(biāo)簽來完成挪丢。
State Notetags:
<Custom Passive Condition>
if (user.hp / user.mhp <= 0.25) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
This enables you to input conditions to be met in order for the passive state to appear. If the ‘condition’ variable returns true, the passive state will appear. If the ‘condition’ returns false, it won’t appear. If condition is not defined, it will return true and the passive state will appear on the battler.
這可以使你選擇特定情況來讓被動(dòng)狀態(tài)出現(xiàn)。如果condition返回為true卢厂,這個(gè)被動(dòng)狀態(tài)就會(huì)出現(xiàn)乾蓬。如果condition返回為false,這個(gè)被動(dòng)狀態(tài)就不會(huì)出現(xiàn)足淆。如果condition沒有定義巢块,這個(gè)被動(dòng)狀態(tài)會(huì)出現(xiàn)礁阁。
Note: All non-custom passive conditions must be met before this one can be fulfilled and allow the custom condition to appear.
注意:所有非自定義情況會(huì)在這個(gè)完成之前運(yùn)行巧号,并且允許自定義情況出現(xiàn)