Skip to content

Commit c9b4c4d

Browse files
Add trow conditions
1 parent f6a1a31 commit c9b4c4d

File tree

1 file changed

+97
-1
lines changed

1 file changed

+97
-1
lines changed

data/mods/Xedra_Evolved/eocs/playable_changeling_advancement_eocs.json

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@
440440
"required_event": "gains_skill_level",
441441
"condition": {
442442
"and": [
443-
{ "u_has_trait": "UNKNOWING_CHANGELING_NOBLE" },
443+
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_SELKIE" },
444444
{ "compare_string": [ { "context_val": "skill" }, "swimming" ] },
445445
{ "math": [ "_new_level >= 7" ] },
446446
{ "math": [ "u_changeling_advancement_selkie_condition_reach_level_seven_athletics != 1" ] }
@@ -557,5 +557,101 @@
557557
{ "math": [ "u_changeling_advancement_dreams_counter += 2" ] },
558558
{ "math": [ "u_changeling_advancement_selkie_condition_go_near_ocean = 1" ] }
559559
]
560+
},
561+
{
562+
"type": "effect_on_condition",
563+
"id": "EOC_PLAYABLE_CHANGELING_ADVANCEMENT_SELKIE_SWIM_IN_WATER",
564+
"eoc_type": "EVENT",
565+
"required_event": "avatar_moves",
566+
"condition": {
567+
"and": [
568+
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_SELKIE" },
569+
{
570+
"and": [ { "u_is_on_terrain_with_flag": "DEEP_WATER" }, { "not": { "u_is_on_terrain_with_flag": "INDOORS" } } ]
571+
},
572+
{ "math": [ "u_changeling_advancement_selkie_condition_swim_in_water != 1" ] }
573+
]
574+
},
575+
"effect": [
576+
{ "math": [ "u_changeling_advancement_dreams_counter++" ] },
577+
{ "math": [ "u_changeling_advancement_selkie_condition_swim_in_water = 1" ] }
578+
]
579+
},
580+
{
581+
"type": "effect_on_condition",
582+
"id": "EOC_PLAYABLE_CHANGELING_ADVANCEMENT_SELKIE_REACH_LEVEL_SEVEN_ATHLETICS",
583+
"eoc_type": "EVENT",
584+
"required_event": "gains_skill_level",
585+
"condition": {
586+
"and": [
587+
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_TROW" },
588+
{ "compare_string": [ { "context_val": "skill" }, "fabrication" ] },
589+
{ "math": [ "_new_level >= 7" ] },
590+
{ "math": [ "u_changeling_advancement_trow_condition_reach_level_seven_fabrication != 1" ] }
591+
]
592+
},
593+
"effect": [
594+
{ "math": [ "u_changeling_advancement_dreams_counter++" ] },
595+
{ "math": [ "u_changeling_advancement_trow_condition_reach_level_seven_fabrication = 1" ] }
596+
]
597+
},
598+
{
599+
"type": "effect_on_condition",
600+
"id": "EOC_PLAYABLE_CHANGELING_ADVANCEMENT_TROW_MINE",
601+
"eoc_type": "EVENT",
602+
"required_event": "character_starts_activity",
603+
"condition": {
604+
"and": [
605+
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_TROW" },
606+
{ "compare_string": [ "ACT_MULTIPLE_MINE", { "context_val": "activity" } ] },
607+
{ "math": [ "u_changeling_advancement_trow_condition_mine != 1" ] }
608+
]
609+
},
610+
"effect": [
611+
{ "math": [ "u_changeling_advancement_dreams_counter++" ] },
612+
{ "math": [ "u_changeling_advancement_trow_condition_mine = 1" ] }
613+
]
614+
},
615+
{
616+
"type": "effect_on_condition",
617+
"id": "EOC_PLAYABLE_CHANGELING_ADVANCEMENT_TROW_DESCEND_TO_NEGATIVE_TWO_Z",
618+
"eoc_type": "EVENT",
619+
"required_event": "avatar_enters_omt",
620+
"condition": {
621+
"and": [
622+
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_TROW" },
623+
{ "math": [ "u_val('pos_z') == -2" ] },
624+
{ "math": [ "u_changeling_advancement_trow_condition_descend_to_negative_z_2 != 1" ] }
625+
]
626+
},
627+
"effect": [
628+
{ "math": [ "u_changeling_advancement_dreams_counter++" ] },
629+
{ "math": [ "u_changeling_advancement_trow_condition_descend_to_negative_z_2 = 1" ] }
630+
]
631+
},
632+
{
633+
"type": "effect_on_condition",
634+
"id": "EOC_PLAYABLE_CHANGELING_ADVANCEMENT_TROW_WIELD_MOON_TEARS_WEAPON",
635+
"eoc_type": "EVENT",
636+
"required_event": "character_wields_item",
637+
"condition": {
638+
"and": [
639+
{ "u_has_trait": "UNKNOWING_CHANGELING_COMMONER_TROW" },
640+
{ "math": [ "u_changeling_advancement_trow_condition_wield_moons_tears_weapon != 1" ] }
641+
]
642+
},
643+
"effect": {
644+
"u_run_inv_eocs": "all",
645+
"search_data": [ { "material": "moon_tears", "wielded_only": true } ],
646+
"true_eocs": [
647+
{
648+
"id": "EOC_PLAYABLE_CHANGELING_ADVANCEMENT_TROW_WIELD_MOON_TEARS_WEAPON_SUCCESS",
649+
"effect": [
650+
{ "math": [ "u_changeling_advancement_dreams_counter++" ] },
651+
{ "math": [ "u_changeling_advancement_trow_condition_wield_moons_tears_weapon = 1" ] }
652+
]
653+
}
654+
]
655+
}
560656
}
561657
]

0 commit comments

Comments
 (0)