Hi! I have a question that might be a little difficult... I'm using Yanfly's Attachable Augments script and I got inspired by his duplicity augments tips and tricks. I'm wondering if I can do this idea with states and elements.
Here's what would happen:
attach Fire Orb on a weapon: add Fire as an attack element
attach Fire Orb on an armor: Become immune to Fire damage
Or:
attach Poison Orb on a weapon: add Poison as an attack state (50% chance or something)
attach Poison Orb on an armor: Become immune to Poison state
I know I can use Yanfly's note tags to do these things but not with the duplicity augments way. I really like the offense or defense choice it makes the player make. This is what I've tried so far and of course, it failed:
Element:
<Augment Attach Eval: Orb>
if (DataManager.isWeapon(item)) {
item.attackElements(2);
} else {
item.ElementRate(2) -= 1;
}
</Augment Attach Eval: Orb>
<Augment Detach Eval: Rune>
if (DataManager.isWeapon(item)) {
item.attackElements(2).remove;
} else {
item.ElementRate(2) += 1;
}
</Augment Detach Eval: Rune>
State:
<Augment Attach Eval: Orb>
if (DataManager.isWeapon(item)) {
item.attackStatesRate(4) += 0.5;
} else {
item.stateRate(4) -= 1;
}
</Augment Attach Eval: Rune>
<Augment Detach Eval: Orb>
if (DataManager.isWeapon(item)) {
item.attackStatesRate(4) -= 0.5;
} else {
item.stateRate(4) += 1;
}
</Augment Detach Eval: Rune>
Is my idea even possible? Anyone know how to do this? Thanks for any help!!!
Here's what would happen:
attach Fire Orb on a weapon: add Fire as an attack element
attach Fire Orb on an armor: Become immune to Fire damage
Or:
attach Poison Orb on a weapon: add Poison as an attack state (50% chance or something)
attach Poison Orb on an armor: Become immune to Poison state
I know I can use Yanfly's note tags to do these things but not with the duplicity augments way. I really like the offense or defense choice it makes the player make. This is what I've tried so far and of course, it failed:
Element:
<Augment Attach Eval: Orb>
if (DataManager.isWeapon(item)) {
item.attackElements(2);
} else {
item.ElementRate(2) -= 1;
}
</Augment Attach Eval: Orb>
<Augment Detach Eval: Rune>
if (DataManager.isWeapon(item)) {
item.attackElements(2).remove;
} else {
item.ElementRate(2) += 1;
}
</Augment Detach Eval: Rune>
State:
<Augment Attach Eval: Orb>
if (DataManager.isWeapon(item)) {
item.attackStatesRate(4) += 0.5;
} else {
item.stateRate(4) -= 1;
}
</Augment Attach Eval: Rune>
<Augment Detach Eval: Orb>
if (DataManager.isWeapon(item)) {
item.attackStatesRate(4) -= 0.5;
} else {
item.stateRate(4) += 1;
}
</Augment Detach Eval: Rune>
Is my idea even possible? Anyone know how to do this? Thanks for any help!!!