Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [MODDING] How to mod magic interactions into the game?  (Read 1497 times)

Korgoth

  • Bay Watcher
    • View Profile
[MODDING] How to mod magic interactions into the game?
« on: August 11, 2019, 11:30:31 pm »

Hello! I've bein triyng do mod Old Genesis mod made by Deon and continued by TomiTapio! my problem is that I've bein triyng to put some magic into the game by messing with the interaction raws but i can't see to make them work properly.
 I've created two separeted interation files for this, one being "interaction_new_secret" for the secrets and how to get them like major curses and the other one "interaction_new_spell" for the spells. For what I can see on the legends mod people are being tranformeted in plague mages like the one I design on the interaction_new_secret text raw, but what I'm failling to make it work is the spells, like the effects of the speel is not working.
For example the charm spell
first how the speel is on the interaction_new_secret:
Code: [Select]
                        [CE_CAN_DO_INTERACTION:START:0]
                [CDI:ADV_NAME:Charm]
                [CDI:USAGE_HINT:ATTACK]
                [CDI:INTERACTION:CHARM]
                [CDI:TARGET:A:LINE_OF_SIGHT]
                [CDI:TARGET_RANGE:A:7]
                [CDI:VERB:charm beings around you:charms beings:NA]
                [CDI:TARGET_VERB:feel sluggish:looks sluggish]
                [CDI:MAX_TARGET_NUMBER:A:5]
                [CDI:WAIT_PERIOD:100]
and how the spell is on "interaction_new_spell":
Code: [Select]
[INTERACTION:CHARM]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
[IT_AFFECTED_CLASS:GENERAL_POISON]
[IT_MANUAL_INPUT:creature]
[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[SYN_NAME:charming]
[CE_NUMBNESS:SEV:20:PROB:100:START:0:END:150:BP:BY_CATEGORY:ALL:MUSCULAR_ONLY]
[CE_DIZZINESS:SEV:1000:PROB:100:START:0:PEAK:30:END:480]
[CE_UNCONSCIOUSNESS:SEV:1000:PROB:100:START:0:PEAK:30:END:480]
                        [CE_PARALYSIS:SEV:10000:PROB:100:RESISTABLE:MUSCULAR_ONLY:START:0:END:60]
But the spell is not making any effect on any creature.Can anyone help me? do you guys know what i'm doing wrong?
Logged

Eric Blank

  • Bay Watcher
  • *Remain calm*
    • View Profile
Re: [MODDING] How to mod magic interactions into the game?
« Reply #1 on: August 12, 2019, 12:12:34 am »

The syndrome in the charm interaction might also need affected class/creature tokens to work, even thought the interaction already has it.
Logged
I make Spellcrafts!
I have no idea where anything is. I have no idea what anything does. This is not merely a madhouse designed by a madman, but a madhouse designed by many madmen, each with an intense hatred for the previous madman's unique flavour of madness.

Korgoth

  • Bay Watcher
    • View Profile
Re: [MODDING] How to mod magic interactions into the game?
« Reply #2 on: August 12, 2019, 11:29:25 am »

Thank you for your reply! it worked! thank you so much my friend!!!
Logged

Korgoth

  • Bay Watcher
    • View Profile
Re: [MODDING] How to mod magic interactions into the game?
« Reply #3 on: August 13, 2019, 10:39:45 pm »

actually it worked until a did another world in world gen, now everytime that the game load the history of any new world it crashes, and the problem is in the raws with the interactions with secrets, how to get them like major curses and such, because i did some tests and the game worked perfectly when i deleted the raw with the secret interactions. Do you know what can be causing this?
« Last Edit: August 13, 2019, 11:04:11 pm by Korgoth »
Logged

Eric Blank

  • Bay Watcher
  • *Remain calm*
    • View Profile
Re: [MODDING] How to mod magic interactions into the game?
« Reply #4 on: August 14, 2019, 12:19:35 am »

Not specifically. Make sure there are no duplicate ID names, and check your spelling where one entry references another etc. Make sure your secret spheres and book names are properly spelled and exist.
Logged
I make Spellcrafts!
I have no idea where anything is. I have no idea what anything does. This is not merely a madhouse designed by a madman, but a madhouse designed by many madmen, each with an intense hatred for the previous madman's unique flavour of madness.