Hi. You can search in your server files for how a item effect is scripted.
Let's try to find Turtle General Card effect!
There's 3 files for items.
\db\re\item_db_usable.yml
\db\re\item_db_equip.yml
\db\re\item_db_etc.yml
I found Turtle General Card in \db\re\item_db_etc.yml
- Id: 4305
AegisName: Turtle_General_Card
Name: Turtle General Card
Type: Card
Buy: 20
Weight: 10
Locations:
Right_Hand: true
Flags:
BuyingStore: true
DropEffect: CLIENT
Script: |
bonus2 bAddClass,Class_All,20;
bonus3 bAutoSpell,"SM_MAGNUM",10,30;
The Script part is what we are looking for. This card has 2 effects. And the Script also has 2 lines.
# This item script is for the effect "ATK +20%":
bonus2 bAddClass,Class_All,20;
# This item script is for the effect "Add the chance of auto casting level 10 Magnum Break on enemy when doing Physical Attack.":
bonus3 bAutoSpell,"SM_MAGNUM",10,30;
After some search we discovered the item script for Turtle General effect card!
You can check for the player BaseJob to make a extra effect for specific jobs.
if (BaseJob == Job_Star_Gladiator) {
# Extra effect for star gladiator and star emperor
}
Example:
- Id: 2230000
AegisName: Turtle_General_Custom_Hat
Name: Turtle General Custom Hat
Type: Armor
Locations:
Head_Top: true
ArmorLevel: 1
Refineable: true
Script: |
bonus2 bAddClass,Class_All,20;
if (BaseJob == Job_Star_Gladiator) {
bonus3 bAutoSpell,"SM_MAGNUM",10,30;
}