Page 1 of 1
Spells keep changing?
Posted: April 29th, 2010, 12:38 am
by GR1M
OK, i made a spell i exited sandbox and selected the same spell and its completely different. Everything is the same i didn't change anything while i exited Sandbox.
Gr1m
Re: Spells keep changing?
Posted: April 29th, 2010, 3:04 am
by Hirato
the last 255 are completely random....
use /dumpprojeffects myeffects.cfg to dump them to file
Re: Spells keep changing?
Posted: April 29th, 2010, 11:30 am
by GR1M
Hirato, i did that. Its still random any more solutions?
Re: Spells keep changing?
Posted: April 30th, 2010, 4:17 pm
by GR1M
?.........
Re: Spells keep changing?
Posted: April 30th, 2010, 6:36 pm
by arcones
I'm working on it GR1M! Don't worry!
Re: Spells keep changing?
Posted: April 30th, 2010, 6:55 pm
by arcones
GR1M, I can think of one to two things.
And I believe it's the first of these.
Code: Select all
spawn_magic3 = [
r_type 2
r_icon Wonder
r_description "Purple Wonder!"
r_name "Magic Purpleness!"
r_spell_type $STYPE_CONE
r_spell_cost 5
r_spell_effect 5
r_spell_gravity 40
r_addeffect (| $ATTACK_EARTH)
r_interact [
]
]
Look at the (| $ATTACK_EARTH). You don't explain
how that attack is used. Thru water, air, magic, fire...
If you'll notice mine has a second attack after my primary:
Code: Select all
spawn_magic = [
r_type 2
r_icon magic
r_description "This magic is potent. Use it carefully."
r_name "Magic"
r_spell_type $STYPE_TARGET
r_spell_cost 125
r_spell_effect 50
r_spell_gravity 70
r_addeffect $STATUS_HEALTH -50 60000 $ATTACK_WATER
r_addeffect $STATUS_HEALTH -40 (| $ATTACK_AIR $ATTACK_MAGIC)
r_interact [
r_select $rpginteract
r_pickup $rpgself
]
]
The attack magic along with the $STATUS_HEALTH may be able to keep your spell from changing effects! I don't know if I can try it out tonight but I'll try!
Arc
One more thing, at the top of the game_rpg.cfg, there is something that explains why you need two $ATTACK_'s...

Re: Spells keep changing?
Posted: April 30th, 2010, 9:20 pm
by GR1M
Nice suggestion but still doesn't keep the spells from changing.
Re: Spells keep changing?
Posted: April 30th, 2010, 10:46 pm
by Hirato
/dumpeffects will dump the effect definitions to file, open it in a text editor and copy the desired definition over to game_rpg.cfg, and have your spells use it
the end

Re: Spells keep changing?
Posted: May 1st, 2010, 8:55 am
by arcones
OOOHHHH!
Wow Hirato, that actually makes sense! I was having a little trouble with it, but then I re-read it and it makes sense!
I'll try it out!
Thanks Hirato!
Re: Spells keep changing?
Posted: May 1st, 2010, 11:25 am
by GR1M
Hirato...Thank you lol How long have you been working with Cube 2?