ID:269744
 
i have a new rpg and i don't have a clue how to make spells
Check this out.
In response to Mecha Destroyer JD
Mecha Destroyer JD wrote:
Check this out.

No, don't check that out. If you are going to refer people to demoes or libraries, refer them to published ones or from people who know the subject well enough. That specific skill demo has many abuses and non-failsafe programming. In the eyes of a newbie, it would be hard to understand from it, too.

For the original question, you need to be more specific on "spells". What type of spells? Projectiles? Healing spells? If you have a basic understanding of DM, it will be easier to help.

~~> Dragon Lord
Here's how:

Forum Search ==> "Make Spells"
In response to PirateHead
<font color=red>I could give you a code though you should make it yourself. Though ill help you out a bit. Do something like this:</font>

mob
var/health = 10//setting health
density = 1
verb
Spell(var/mob/M as mob in oview(3))/choose a mob close to you to attack
var/F = new /obj/Spell(usr.loc)//create a spell
walk_to(F,M.loc)//get it to go to the mob you choose

obj
Spell//this is your spell
density = 1
Bump(mob/M)//when it bumps into something
if(ismob(M))//and if its a mob
M.health -= 5//take away health
del(src)//and delete the spell

<font color=red>Thats very basic though you should learn from it.You may have to add more bump commands for when it bumps into walls and stuff.</font>

ADT_CLONE
In response to Unknown Person
i want to know how to make missile spells so that when i choose it it hits the guy and makes him lose health