ID:160320
 
i cant find 1 in the DM guide 4 wat im looking 4 i need it 2 create the object "fireball" then the user clicks where they want the projectile 2 b thrown
hay i tink ur great and all(not lol) but u shud try serching da librares and demoes?
In response to Glarfugus
im searching now but i cant find anything that does something i want it 2 do or something related 2 wat i need
In response to Mel23jones
thers plenty of wat uneed in da resources. if u cant find dem, then u obviously need 2 read da dm guide.
In response to Glarfugus
i don't understand is that if u cant help y r u replying?
In response to Mel23jones
Oh my God, Can you guys talk like you went to 2nd grade? I'd be glad to help but you seem un-intelligent enough to read big words.
In response to World Build
your post has nothing 2 do with this topic so y did u even bother reply? u wanted sum attention but anyways i got a projectile code but when it hit it doesn't do any damage and the projectile doesn't delete
In response to Mel23jones
Here, I'll be nice this time and give you to code, but don't run before you can walk, obviously this is simple coding you're trying to do, which proves you need to learn how to code.

/obj/gun/verb
shoot()
var/obj/bullet/BB = new /obj/bullet( usr.loc )
walk_towards(BB,usr.dir)

/obj/bullet/Bump(var/hitted as turf|obj|mob)
if(istype(hitted,/turf/))
var/turf/T = hitted
if(T.density == 1)
del(src)
else
return

if(istype(hitted,/obj/))
var/obj/T = hitted
if(T.density == 1)
del(src)
else
return

if(istype(hitted,/mob/))
var/mob/M = hitted
var/viewers = view(6)
M.health -= src.dam
viewers << "[M] has been hit by the bullet and did [dam] damage!"
del(src)



/obj/bullet
var/dam = 5//damage it does to mob's health
density = 1
icon = 'youicon.dmi'
icon_state = "yourstate"

/mob/
var
health = 100


It complies, and It's simple enough that their shouldn't be any bugs
This code also assumes you have an inventory set up, if you don't then sucks to be you, because I ain't wasting my time to make a simple 4 line code.
In response to World Build
this is very nice but this code isn't doing what I need it to the code i have is creating the projectile and shooting it until it hits something but it does no damage and doesn't delete itself here is the code

Code:
mob/powers
verb
Energyball()
set category ="Skills"
set name = "Energyball"
var
S=new/obj/energyball(src.loc)
walk(S,src.dir)
view() << 'Energyball.wav'
In response to Mel23jones
Look up the Bump() proc.

Also, World Build, that code doesn't look too hot! Keep working on your DM, and when you know what Boolean logic is, you can help :P
In response to Mel23jones
If you look at Weird Builds code and compare it to yours you should see what you're doing wrong. If you don't, you may as well give up on your game and learn more about programming.
In response to Mel23jones
Mel23jones wrote:
this is very nice but this code isn't doing what I need it to the code i have is creating the projectile and shooting it until it hits something but it does no damage and doesn't delete itself here is the code

Code:
> mob/powers
> verb
> Energyball()
> set category ="Skills"
> set name = "Energyball"
> var
> S=new/obj/energyball(src.loc)
> walk(S,src.dir)
> view() << 'Energyball.wav'
>


When you copy/paste things they tend not to work so keep it up you will have a game in not time! </sarcasm> ...