Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to mod magic interactions into the game?  (Read 173 times)

Korgoth

  • Bay Watcher
    • View Profile
How to mod magic interactions into the game?
« on: August 11, 2019, 05:39:50 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

Gigabytebob

  • Bay Watcher
  • Thief! Protect the hoard from skulking filth!
    • View Profile
    • Dwarf Fortress Discord server
Re: How to mod magic interactions into the game?
« Reply #1 on: August 15, 2019, 01:19:31 am »

this post should be in "DF Modding". Mod Releases is for posting mods you've made.
Logged
adamantine, the only material that can be honed to an edge so fine it can cut light, cleave steel like butter, and sever heads with the enthusiasm of a deranged bloodthirsty child.

Turn those goblinoid uglybolds into adorable cutebolds