Yanfly - Attach Augment Script help - Hestia Knife Gem

DuncanKlysh

Warper
Member
Joined
Apr 10, 2019
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
I want to make a Attachment for a weapon that replicates this script from the Hestia Knife video

<Custom Parameters>
atk=user.paramBase(2)*0.10 + user.level;
</Custom Parameters>

The issue I have is the Attach Augment Eval doesn't seem to have a way to fetch the weapon's user data

<Augment Attach Eval: Glyph>
item.params[2] += item.parent().paramBase(2)*0.10+parent.level;
</Augment Attach Eval: Glyph>
<Augment Detach Eval: Glyph>
item.params[2] -= item.parent().paramBase(2)*0.10+parent.level;
</Augment Detach Eval: Glyph>

please help T.T
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
797
Reaction score
350
First Language
English
Primarily Uses
N/A
Firstly, you need YFs Equip Core for this.
The Augments are not designed to pull the user's params so you'll need a workaround.
The easiest way I can see is to give weapons some extra data that the Equip Core tags can then look for.

So something like:

<Augment Attach Eval: Glyph>
item.hestia = true;
</Augment Attach Eval: Glyph>

Then in the custom tag:

<Custom Parameters>
If (item.hestia && item.hestia == true) atk=user.paramBase(2)*0.10 + user.level;
</Custom Parameters>

Something like that!
Give that a try and ser if it points you in the right direction.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,015
Members
137,563
Latest member
MinyakaAeon
Top