Page 1 of 1

why wont spells work

Posted: December 25th, 2010, 2:50 pm
by ryancorp
I tried to use a spell off the net and can't get it to work in rpg.
put this into a .cfg file with the same name as the saved game in this case fog test.cfg and yes it's not fog test.cfg.tst

spawnplayer = [
r_additem flashlight
]

spawn_flashlight = [
r_type $ENT_ITEM
r_icon flashlight
r_description "A flashlight for searching with."
r_item_slots $SLOT_RHAND
r_addowneffect $STATUS_LIGHT 35 1000000000
r_interact [
r_select $rpginteract
r_pickup $rpgself
]
]

it got rid of the basic items but wont add the flashlight

Re: why wont spells work

Posted: December 26th, 2010, 7:39 pm
by chocolatepie33
What version do you have? (It helps to know 2.5 spells are different from 2.6 and on)

EDIT: actually, now that I realize it, that bit's supposed to go in data/game_rpg (or something like that, I don't have 2.6.1 yet), not in the map's .cfg file.

Re: why wont spells work

Posted: January 31st, 2011, 7:59 pm
by ryancorp
it's in 2.5

Re: why wont spells work

Posted: January 31st, 2011, 8:01 pm
by ryancorp
got it to work