In response to Evil_SSJ4Vegeta
Well, then Lummox JR's version is prob the best if you want multiple icons in the beam. Try looking over his example again and again, and try it one step at a time, at some point your bound to understand some of it. In any case look up the procs he mentions (get_step, etc).

Im sorry I cant simplify his example I've got to leave very soon for some things IRL

Alathon
In response to Alathon
Alathon wrote:
Well, then Lummox JR's version is prob the best if you want multiple icons in the beam. Try looking over his example again and again, and try it one step at a time, at some point your bound to understand some of it. In any case look up the procs he mentions (get_step, etc).

Im sorry I cant simplify his example I've got to leave very soon for some things IRL

Alathon


"get_step" and its other assosiates are in the Blue Book so I will check in there when I get home from college...

Thanks Alathon,

Bye
In response to Evil_SSJ4Vegeta
Evil_SSJ4Vegeta wrote:
I should have posted this in the "Newbie Central", at least I would have gotten a better answer, and an easier explanation from you lot, and it seems to me you dont want to help me anyway because it is a DBZ game, so as far as this goes, your only doing this because you either hate "me" or my "game" simple enough eh?

Well, I might aswell ask somewhere else then...coz you lot ait helping much :(

I think you'll find my suggestion helpful if you use it as a guideline when writing your own code. I just didn't write out complete code for you because in this case it seemed like just too much work. I noticed you said you wanted a whole beam, not 3 beams, in another post. The question remains, though, whether you want the beam to stop when the center part hits an obstacle, or when the edges do too.

Here's a simple place to get started on your code:
var/obj/beam/b=new(get_step(src,dir))
var/obj/beam/bl=new(get_step(src,turn(dir,45)))
var/obj/beam/br=new(get_step(src,turn(dir,-45)))
b.icon_state="start"
bl.icon_state="start_left"
br.icon_state="start_right"
var/r=maxrange
while((--r)>0 && b.loc.Enter(src))
b=new(get_step(b,dir))
bl=new(get_step(bl,dir))
right=new(get_step(br,dir))
bl.icon_state="left"
br.icon_state="right"
b.icon_state="end"
bl.icon_state="end_left"
br.icon_state="end_right"

There may be some problems with that code (I'm particularly suspicious about the b.loc.Enter(src) call not working right), but it's a good place to start. You'll notice I didn't include any damage or anything for the beam; this code will just draw it. Now I believe b.dir, bl.dir, and br.dir will all be set to src.dir when created, but if not then you should set them accordingly. This way you can create each beam icon as a movie, with all 8 directions.

Lummox JR
In response to Lummox JR
Thank you Lummox JR, and the answer is "Yes", I would like beam to stop when either the center or the edge hits its target.
In response to Evil_SSJ4Vegeta
This is what i get:
--------------------
loading The Quest for Power.dme
Ki Attacks.dm:4:error:src:bad var
Ki Attacks.dm:4:error:dir:bad var
Ki Attacks.dm:4:error:b :unknown variable type
Ki Attacks.dm:5:error:src:bad var
Ki Attacks.dm:5:error:dir:bad var
Ki Attacks.dm:5:error:bl :unknown variable type
Ki Attacks.dm:6:error:src:bad var
Ki Attacks.dm:6:error:dir:bad var
Ki Attacks.dm:6:error:br :unknown variable type
Ki Attacks.dm:10:error:maxrange:bad var
Ki Attacks.dm:7:error:b.icon_state:duplicate definition
Ki Attacks.dm:7:error:"start":duplicate definition
Ki Attacks.dm:7:error:= :duplicate definition
Ki Attacks.dm:8:error:bl.icon_state:duplicate definition
Ki Attacks.dm:8:error:"start_left":duplicate definition
Ki Attacks.dm:8:error:= :duplicate definition
Ki Attacks.dm:9:error:br.icon_state:duplicate definition
Ki Attacks.dm:9:error:"start_right":duplicate definition
Ki Attacks.dm:9:error:= :duplicate definition
Ki Attacks.dm:11:error:r:value not allowed here
Ki Attacks.dm:11:error::duplicate definition
Ki Attacks.dm:11:error:0:duplicate definition
Ki Attacks.dm:11:error:> :instruction not allowed here
Ki Attacks.dm:11:error::duplicate definition
Ki Attacks.dm:11:error:src:value not allowed here
Ki Attacks.dm:11:error:b.loc.Enter:instruction not allowed here
Ki Attacks.dm:11:error::duplicate definition
Ki Attacks.dm:11:error:&& :instruction not allowed here
Ki Attacks.dm:12:error:b:bad var
Ki Attacks.dm:12:error:b:bad var
Ki Attacks.dm:12:error:dir:bad var
Ki Attacks.dm:13:error:bl:bad var
Ki Attacks.dm:13:error:bl:bad var
Ki Attacks.dm:13:error:dir:bad var
Ki Attacks.dm:14:error:right:bad var
Ki Attacks.dm:14:error:br:bad var
Ki Attacks.dm:14:error:dir:bad var
Ki Attacks.dm:15:error:bl.icon_state:bad var
Ki Attacks.dm:16:error:br.icon_state:bad var
Ki Attacks.dm:17:error:b.icon_state:duplicate definition
Ki Attacks.dm:17:error:"end":duplicate definition
Ki Attacks.dm:17:error:= :duplicate definition
Ki Attacks.dm:18:error:bl.icon_state:duplicate definition
Ki Attacks.dm:18:error:"end_left":duplicate definition
Ki Attacks.dm:18:error:= :duplicate definition
Ki Attacks.dm:19:error:br.icon_state:duplicate definition
The Quest for Power.dme:23:error:"end_right":duplicate definition
Ki Attacks.dm:19:error:= :duplicate definition

The Quest for Power.dmb - 48 errors, 0 warnings

------------------------
Man that is bad
In response to Evil_SSJ4Vegeta
From the looks of those errors, it seems you did some bad copying and pasting. The code I provided was intended to be a starting point, not something that's guaranteed to work in your particular game. You're going to have to play with it a little bit to get it right.

Lummox JR
In response to Lummox JR
Ok, erm, have you got AIM/MSN Lummox, as it would be easier if I had someone teaching me asto what to do, because I can learn faster by being taught, I'm not asking you to tell me all tecode needed, I'm just asking if you will teach e using an IM, so will this be possible?
In response to Evil_SSJ4Vegeta
Evil_SSJ4Vegeta wrote:
Ok, erm, have you got AIM/MSN Lummox, as it would be easier if I had someone teaching me asto what to do, because I can learn faster by being taught, I'm not asking you to tell me all tecode needed, I'm just asking if you will teach e using an IM, so will this be possible?

I'm an AOL user, but unfortunately I find IMs are a lousy form of communication. Anything I can't get across in these posts, I won't be able to explain in IM.

Lummox JR
In response to Lummox JR
Lummox, please, could you possibly getAIM so you could tell teach me Instantly as it would be easier than keep doing this as my computer nrmally freezes with havingtoo many windows open :(, so could you please?
In response to Evil_SSJ4Vegeta
Look, person. After you learn a bit more code and coding techniques, you can do all of this stuff. How about forgetting Beam() for awhile, and make somthing else? I could easily write myself a beam() proc, and I am not a 'good coder'. In fact, I'm 12. Why can I write it any you can't? I've done some work for myself. If I can do it, I promise that you can!
In response to Lord of Water
Lord of Water wrote:
Look, person. After you learn a bit more code and coding techniques, you can do all of this stuff. How about forgetting Beam() for awhile, and make somthing else? I could easily write myself a beam() proc, and I am not a 'good coder'. In fact, I'm 12. Why can I write it any you can't? I've done some work for myself. If I can do it, I promise that you can!


I'm sorry but thats not entirely true, I have been trying to get this for awhile now and I still dont know how to create this, so if you can do this...please could you help me?
In response to Lord of Water
Lord of Water wrote:
In fact, I'm 12.

Just because I hate seeing this il respond to it. Why do you feel that being 12 has anything to do with your coding ability?

Alathon
In response to Alathon
He made a comment about "coming home from college". I would assume that a college student would have at least my ability to learn. You don't find your average village idiot in college.

Lord of Water
In response to Lord of Water
Who says he doesnt? No one. Just because he doesnt understand BYOND's syntax that well doesnt mean that all of a sudden he's incapable of learning it.


Neway, off to bed.
Alathon
In response to Alathon
Alathon wrote:
Who says he doesnt? No one. Just because he doesnt understand BYOND's syntax that well doesnt mean that all of a sudden he's incapable of learning it.


Neway, off to bed.
Alathon

Thanks Alathon, and for your knowledge "Lord of Water", I go to collage to learn, the difference being I am not going to collage to study on how to code for games on BYOND's Dream Maker, I have gone to collage to study and learn how to "programme computers" which in term is totally the opposite from coding a game.

Also just because I'm older doesnt mean I personally have to know more about the BYOND syntax than you, as age does not matter, age does not give you more and more knowledge every year around, we "Learn it" or get "Taught", I personally find being "Taught" easier, as I can understand it better that way, whereas when I start from scratch knowing nothing at all, isnt very easy, and hence the point, you had problems and gave Questions and expected answers which you inturn got, thats exactly what I am doing, but I am asking if someone would either "Help" me to code this in, or "Teach" me how to do it, I am thankful to all who has posted here and tried to show me the right direxction, the only thing is I am not too well with the language of Dream Maker, so could you at least try to understand where I'm coming from?
Im not sure if this was answered or not cuz i didnt wish to read all the posts, but this is a base idea as to how i did it.

1) Define a new obj to input as the wave.. Example

obj/blast
icon = 'blast.dmi'
Enter()
usr.HP -= 10
usr.DeathCheck()

2) After you define input it, like this.

mob/verb/blast()
switch(src.dir)
if(NORTH)
new /obj/blast(locate(usr.x, usr.y+1, usr.z)
new /obj/blast(locate(usr.x+1, usr.y+1, usr.z)
new /obj/blast(locate(usr.x-1, usr.y+1, usr.z)
spawn(10)
for(var/obj/blast/O in oview(10))
del(O)

// Do this for every direction and junk. modify if you wish this is just an example as to how to make and destroy it //


and so on, then to make it cover a larger area add more of them and add newer objects. etc.


If this doesnt help i am thinking of creating a snippet, once i make it work the way i wish.

Glad to help
In response to SonVegitto
Knowing some people i wish to remind.

If you decide to copy and paste this derectly into the code, re-indent it with tabs, because i couldnt tab it in the example..

Please do this to avoid such simple errors.
In response to SonVegitto
SonVegitto wrote:
Im not sure if this was answered or not cuz i didnt wish to read all the posts, but this is a base idea as to how i did it.

1) Define a new obj to input as the wave.. Example

obj/blast
icon = 'blast.dmi'
Enter()
usr.HP -= 10
usr.DeathCheck()

2) After you define input it, like this.

mob/verb/blast()
switch(src.dir)
if(NORTH)
new /obj/blast(locate(usr.x, usr.y+1, usr.z)
new /obj/blast(locate(usr.x+1, usr.y+1, usr.z)
new /obj/blast(locate(usr.x-1, usr.y+1, usr.z)
spawn(10)
for(var/obj/blast/O in oview(10))
del(O)

// Do this for every direction and junk. modify if you wish this is just an example as to how to make and destroy it //


and so on, then to make it cover a larger area add more of them and add newer objects. etc.


If this doesnt help i am thinking of creating a snippet, once i make it work the way i wish.

Glad to help

Your the greatest helper ever, this is how I really needed it people, if all help was like this, life would be eaier and people would learn a hell of alot more things, but Ken your a really big help...THANK YOU

Evil_SSJ4Vegeta
In response to Evil_SSJ4Vegeta
No problem,, But I dont think im the greatest, just sensable.

Alott of people i see asking for help, tend to go off on a tangent of babbling bout something not in the topic, or even coming close to helping.. But im glad i could elp, and if you need any more just ask and i will try my best **This goes for everyone**
In response to SonVegitto
SonVegitto wrote:
No problem,, But I dont think im the greatest, just sensable.

Alott of people i see asking for help, tend to go off on a tangent of babbling bout something not in the topic, or even coming close to helping.. But im glad i could elp, and if you need any more just ask and i will try my best **This goes for everyone**


Thank you, you really are understanding and very helpful :)
Page: 1 2 3