Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Spell in RPG mode Problems

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.
owenisred
Member
Member
Posts: 452
Joined: August 9th, 2010, 9:33 am
Name: Owen

Spell in RPG mode Problems

Post by owenisred »

spawn_airpulse = [
r_type 2
r_icon arrow
r_description "Pulse of Air"
r_name "Air Pulse"
r_spell_effect 2
r_spell_cost 1
r_spell_range 0.1
r_spell_gravity 0
r_addeffect $STATUS_HEALTH -10 $ATTACK_MAGIC
r_proj_trail 1
r_proj_trailpart 3
r_proj_trailcol 0xFFBF00
r_proj_trailsize i
r_proj_trailfade 500

r_interact [
r_select $rpg interact
r_pickup $rpgself
]
]
Anyone tell me why I can't get the air pulse spell to have a trail...

It says something is wrong with the r_proj_trail command, but its in the list...

Thanks,
Owen.

EDIT: for some reason, the forum removes the indents I have made, but believe me theyre there :)
I'm taking modelling requests again - any models you want created,skinned or animated (or all 3) leave a post here:

viewtopic.php?f=9&t=2704&start=0

My tutorial site - still under construction, but lots of good stuff there:

http://pasandbox.webs.com/
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Spell in RPG mode Problems

Post by chocolatepie33 »

For r_proj_trailpart, you need something like $PART_LIGHTNING
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
owenisred
Member
Member
Posts: 452
Joined: August 9th, 2010, 9:33 am
Name: Owen

Re: Spell in RPG mode Problems

Post by owenisred »

fair enough, ill try that, however I tought the 3 should refer to a particle type anyway.

On the other hand the game DOES say that theres something with r_proj_trail ...

Ill see about it tomorrow, im tired atm
I'm taking modelling requests again - any models you want created,skinned or animated (or all 3) leave a post here:

viewtopic.php?f=9&t=2704&start=0

My tutorial site - still under construction, but lots of good stuff there:

http://pasandbox.webs.com/
owenisred
Member
Member
Posts: 452
Joined: August 9th, 2010, 9:33 am
Name: Owen

Re: Spell in RPG mode Problems

Post by owenisred »

yea it still says
unknown command r_proj_trail
:S
I'm taking modelling requests again - any models you want created,skinned or animated (or all 3) leave a post here:

viewtopic.php?f=9&t=2704&start=0

My tutorial site - still under construction, but lots of good stuff there:

http://pasandbox.webs.com/
owenisred
Member
Member
Posts: 452
Joined: August 9th, 2010, 9:33 am
Name: Owen

Re: Spell in RPG mode Problems

Post by owenisred »

Also when I loooked into the game_rpg.cfg file, the fireball spell doesnt have any particles attached to it, yet in game particles come off it all the time!

spawn_spell = [
r_type 2
r_icon fire
r_description "FIRE!!!"
r_name "fireball"
r_spell_type $STYPE_TARGET
r_spell_gravity 20
r_spell_cost 20
r_spell_range 64
r_addeffect $STATUS_HEALTH -40 1 $ATTACK_MAGIC
r_addeffect $STATUS_HEALTH -30 5000 (| $ATTACK_FIRE $ATTACK_MAGIC)

r_interact [
r_select $rpginteract
r_pickup $rpgself
]
]
I'm taking modelling requests again - any models you want created,skinned or animated (or all 3) leave a post here:

viewtopic.php?f=9&t=2704&start=0

My tutorial site - still under construction, but lots of good stuff there:

http://pasandbox.webs.com/
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Spell in RPG mode Problems

Post by arcones »

That's because you don't need the particles. Check out my tutorial: Creating easy spells

You don't need the projectile stuff, it's in the addeffects ;)
Image
Want a user bar like this one? PM Leo!
owenisred
Member
Member
Posts: 452
Joined: August 9th, 2010, 9:33 am
Name: Owen

Re: Spell in RPG mode Problems

Post by owenisred »

Ok, I see a particles part at the bottom of the .cfg file now. I still dont understand how they relate to the spells above.

for example
r_proj_new //effect 1
r_proj_projcol 0x3F8FFF
r_proj_projpart $PART_FIREBALL2
r_proj_projsize 2.5
r_proj_gravity 200
r_proj_lightradius 32
r_proj_lightcolour 0x3F8FFF
r_proj_deathpartcol 0x3F8FFF
r_proj_deathlightinitcol 0x3F8FFF
r_proj_deathlightfade 500
r_proj_deathdecal -1
Obviously this has something to do with the fireball spell, I just dont see anywhere in the script anything that connects the two files.

Also I want to say. I see a lot of people saying in response to questions (particularly about scripting) look at the wiki, look at the FAQ. I promise you I have. I have printouts of

http://sandboxgamemaker.com/wiki/index. ... Cubescript
viewtopic.php?f=24&t=1317
http://sandboxgamemaker.com/platinumart ... itref.html

among many others stuck on my wall, to help me. Everytime I understand something, I realise how simple it was, but when faced with something new, it takes me a long time to understand it. Please don't think as soon as I come up against the first problem I post here :)

Thanks guys, your help is much appreciated,
Owen.
I'm taking modelling requests again - any models you want created,skinned or animated (or all 3) leave a post here:

viewtopic.php?f=9&t=2704&start=0

My tutorial site - still under construction, but lots of good stuff there:

http://pasandbox.webs.com/
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Spell in RPG mode Problems

Post by chocolatepie33 »

Those particles affect how the spell looks, so when it hits/kills something, it changes color to whatever color the hexadecimal is.
If you changed r_proj_projcol to a different hexadecimal color, it would change the fireball to a different color.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
owenisred
Member
Member
Posts: 452
Joined: August 9th, 2010, 9:33 am
Name: Owen

Re: Spell in RPG mode Problems

Post by owenisred »

Thanks for the reply, my problem is that I dont understand how the spells relate to the particles in a script.
spawn_spell = [
r_type 2
r_icon fire
r_description "FIRE!!!"
r_name "fireball"
r_spell_type $STYPE_TARGET
r_spell_gravity 20
r_spell_cost 20
r_spell_range 64
r_addeffect $STATUS_HEALTH -40 1 $ATTACK_MAGIC
r_addeffect $STATUS_HEALTH -30 5000 (| $ATTACK_FIRE $ATTACK_MAGIC)

r_interact [
r_select $rpginteract
r_pickup $rpgself
]
]
Is the fireball spell.


Where is there a mention of particles? Why does the fireball spell take the fireball particles, and not the frost particles, or indeed any particles at all?
I'm taking modelling requests again - any models you want created,skinned or animated (or all 3) leave a post here:

viewtopic.php?f=9&t=2704&start=0

My tutorial site - still under construction, but lots of good stuff there:

http://pasandbox.webs.com/
User avatar
Runescapedj
Member
Member
Posts: 1706
Joined: January 9th, 2010, 9:06 am
Name: Michiel
IRC Username: Sandboxdj
Location: Deventer, the Netherlands

Re: Spell in RPG mode Problems

Post by Runescapedj »

Maybe it's the (| $ATTACK_FIRE $ATTACK_MAGIC) part?
Locked