why wont spells work

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
User avatar
ryancorp
Member
Member
Posts: 15
Joined: December 25th, 2010, 2:31 pm
Name: ryan

why wont spells work

Postby ryancorp » December 25th, 2010, 2:50 pm

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

chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: why wont spells work

Postby chocolatepie33 » December 26th, 2010, 7:39 pm

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.
Julius wrote:Contribute to http://www.opengameart.org NOW!

Save the wiki!

User avatar
ryancorp
Member
Member
Posts: 15
Joined: December 25th, 2010, 2:31 pm
Name: ryan

Re: why wont spells work

Postby ryancorp » January 31st, 2011, 7:59 pm

it's in 2.5
The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at and repair.
Douglas Adams

User avatar
ryancorp
Member
Member
Posts: 15
Joined: December 25th, 2010, 2:31 pm
Name: ryan

Re: why wont spells work

Postby ryancorp » January 31st, 2011, 8:01 pm

got it to work
The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at and repair.
Douglas Adams


Return to “Sandbox General Support”

Who is online

Users browsing this forum: No registered users and 3 guests