make a mage spell code.
Im in need of a hint dont give me a code or anything just a hint on what I should use.
ID:163702
Aug 8 2007, 5:07 am
|
|
Aug 8 2007, 5:13 am
|
|
A verb for the spell, make any projectile movable (obviously) with a Bump() proc.
|
In response to GhostAnime
|
|
Ive never used Bump() before whats that?
|
In response to Merick12
|
|
Bump(atom/A) is a proc called by atom/movable objects (which includes the children /mob and /obj) when something can not move ahead due to a dense objects. One thing to note here is that Bump() is called on the object that bumped INTO something, not the other way around (that being it is not called on the bumped object).
make sure you never use usr in Bump() or any other movement procs. mob/Bump(atom/A) If the mob, named 'Flair', bumps into an object like 'Rock', it'll output "Ouch, Flair bumped into Rock". |
In response to GhostAnime
|
|
Well I have this code but I can't git the fire spell to show up when I cast it
obj |
In response to Merick12
|
|
you create a new object but you didn't locate it anywhere.
mob/verb/Fire(mob/M in oview(6)) // Ok this will make a verb, which you can call on a mob in oview(6) of the player Hope that helps. |
In response to Kakashi24142
|
|
what if i want it to look a certain way lets as going north
|
In response to Merick12
|
|
you would change it's direction(dir var) like this:
F.dir = usr.dir//same diretion as the usr(person casting)
|
In response to Kakashi24142
|
|
NOTHING IS WORKING!!!!!!!!!!!!
|
In response to Merick12
|
|
Sorry its just Ive been working on this game and it hard not to blow up becuase evertime I do something new I mess up big time
|
In response to Merick12
|
|
you seem to be new, read some articles on byondscape.com, the DM Guide, and the DM Reference.
|
In response to Kakashi24142
|
|
I have read them but it just so hard to understand all of it.
|
In response to Merick12
|
|
Just so you know, missle() is purely visual. It will go straight to the mob, and will be unrealistic. If you want it so that you shoot fire straight forward, and the fire can hit anyone then you are going to need to rethink your system. You could try using step(), while(), and bumped() (bumped() isn't a built in proc).
|
In response to Justin B
|
|
? how would that work?
|