View Single Post
Old July 11, 2016, 23:10   #28
Elfin Jedi
Adept
 
Join Date: Mar 2013
Posts: 102
Elfin Jedi is on a distinguished road
I think it probably would be helpful if I list changes I have already made when I ask a question, so...

I am trying to make it so monsters can cast a spell to become invisible temporarily. So far I have added this:

"name:INVIS
hit:100
effect:MON_TIMED_INC:INVISIBLE
dice:50
power:40
lore:make self invisible
message-vis:{name} disappears."

to monster_spell.txt, and this:

"RSF(INVISIBLE, RST_TACTIC)"

to list-mon-spells.h.

What else do I need to do? (It is crashing when it tries to initialize monster spells after I launch.)

Right now I am studying lines 391-403 of effects.c, in an attempt to understand what it does. (I am really new to programming, have mostly worked with edit files.)

Also is there a message somewhere for when the spell effect ends?

Last edited by Elfin Jedi; July 11, 2016 at 23:48.
Elfin Jedi is offline   Reply With Quote