Skip to content

Commit

Permalink
Merge pull request #78472 from Standing-Storm/animals-cant-do-that
Browse files Browse the repository at this point in the history
[Magiclysm/Xedra Evolved] Animals can't do that
  • Loading branch information
Night-Pryanik authored Dec 11, 2024
2 parents c80d84e + d1ee9f4 commit 5fcf89d
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
[
{
"type": "effect_on_condition",
"id": "EOC_MAGICLYSM_SHAPESHIFTED_ANIMALS_CANT_DO_THAT",
"eoc_type": "EVENT",
"required_event": "character_starts_activity",
"condition": {
"and": [
{
"u_has_any_trait": [
"DRUID_SHIFTER_BEAR_FORM_TRAITS",
"DRUID_SHIFTER_COUGAR_FORM_TRAITS",
"DRUID_SHIFTER_DEER_FORM_TRAITS",
"DRUID_SHIFTER_RAVEN_FORM_TRAITS"
]
},
{
"or": [
{ "compare_string": [ "ACT_LOCKPICK", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_REPAIR_ITEM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MEND_ITEM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_VEHICLE_REPAIR", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_RELOAD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FIRSTAID", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MILK", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_HACKSAW", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_BOLTCUTTING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_HAIRCUT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_SHAVE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_CRACKING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_READ", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_EBOOKSAVE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_TIDY_UP", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MOP", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_VEHICLE_DECONSTRUCTION", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_VEHICLE_FOLD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_VEHICLE_UNFOLD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_BIKERACK_UNRACKING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_BIKERACK_RACKING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_DIS", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_FISH", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_CRAFT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_CHOP_PLANKS", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_CHOP_TREES", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_MINE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_CONSTRUCTION", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_MOP", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_READ", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FISH", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_GENERIC_GAME", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_GAME", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_DISASSEMBLE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_FARM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_HARVEST", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FIELD_DRESS", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_SKIN", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_QUARTER", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_DISSECT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_LONGSALVAGE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_BUILD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_PICKAXE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_HAND_CRANK", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_PICKUP", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_AUTODRIVE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FERTILIZE_PLOT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MOVE_LOOT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_UNLOAD_LOOT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_INSERT_ITEM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_START_FIRE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_OPEN_GATE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FILL_LIQUID", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_SHEARING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_HOTWIRE_CAR", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_AIM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_ATM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_START_ENGINES", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_OXYTORCH", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_TOOLMOD_ADD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_CLEAR_RUBBLE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_WASH", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_PRYING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_CHOP_LOGS", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_CHOP_PLANKS", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_JACKHAMMER", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_CHURN", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_PLANT_SEED", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_WEAR", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_PICKUP", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_WIELD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_BINDER_COPY_RECIPE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_DATA_HANDLING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FURNITURE_MOVE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_TENT_PLACE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_TENT_DECONSTRUCT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_REEL_CABLE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_SALINE_INFUSE", { "context_val": "activity" } ] }
]
}
]
},
"effect": [
"u_cancel_activity",
{ "u_message": "You can't perform that activity while in the form of an animal.", "type": "bad" }
]
}
]
106 changes: 106 additions & 0 deletions data/mods/Xedra_Evolved/eocs/shapeshifter_eocs.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,110 @@
[
{
"type": "effect_on_condition",
"id": "EOC_XE_SHAPESHIFTED_ANIMALS_CANT_DO_THAT",
"eoc_type": "EVENT",
"required_event": "character_starts_activity",
"condition": {
"and": [
{
"u_has_any_trait": [
"VAMPIRE_WOLF_FORM_TRAITS",
"TURN_INTO_BEAR_TRAITS",
"TURN_INTO_DEER_TRAITS",
"TURN_INTO_COUGAR_TRAITS",
"TURN_INTO_OWL_TRAITS",
"TURN_INTO_RAVEN_TRAITS"
]
},
{
"or": [
{ "compare_string": [ "ACT_LOCKPICK", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_REPAIR_ITEM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MEND_ITEM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_VEHICLE_REPAIR", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_RELOAD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FIRSTAID", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MILK", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_HACKSAW", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_BOLTCUTTING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_HAIRCUT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_SHAVE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_CRACKING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_READ", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_EBOOKSAVE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_TIDY_UP", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MOP", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_VEHICLE_DECONSTRUCTION", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_VEHICLE_FOLD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_VEHICLE_UNFOLD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_BIKERACK_UNRACKING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_BIKERACK_RACKING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_DIS", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_FISH", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_CRAFT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_CHOP_PLANKS", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_CHOP_TREES", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_MINE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_CONSTRUCTION", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_MOP", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_READ", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FISH", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_GENERIC_GAME", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_GAME", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_DISASSEMBLE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MULTIPLE_FARM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_HARVEST", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FIELD_DRESS", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_SKIN", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_QUARTER", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_DISSECT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_LONGSALVAGE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_BUILD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_PICKAXE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_HAND_CRANK", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_PICKUP", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_AUTODRIVE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FERTILIZE_PLOT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_MOVE_LOOT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_UNLOAD_LOOT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_INSERT_ITEM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_START_FIRE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_OPEN_GATE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FILL_LIQUID", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_SHEARING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_HOTWIRE_CAR", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_AIM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_ATM", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_START_ENGINES", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_OXYTORCH", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_TOOLMOD_ADD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_CLEAR_RUBBLE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_WASH", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_PRYING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_CHOP_LOGS", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_CHOP_PLANKS", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_JACKHAMMER", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_CHURN", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_PLANT_SEED", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_WEAR", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_PICKUP", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_WIELD", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_BINDER_COPY_RECIPE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_DATA_HANDLING", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_FURNITURE_MOVE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_TENT_PLACE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_TENT_DECONSTRUCT", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_REEL_CABLE", { "context_val": "activity" } ] },
{ "compare_string": [ "ACT_SALINE_INFUSE", { "context_val": "activity" } ] }
]
}
]
},
"effect": [
"u_cancel_activity",
{ "u_message": "You can't perform that activity while in the form of an animal.", "type": "bad" }
]
},
{
"type": "effect_on_condition",
"id": "EOC_WEREWOLF_WOLF_FORM_activated",
Expand Down

0 comments on commit 5fcf89d

Please sign in to comment.