Author Topic: Danieluyoshikoto?s Scripts and Stuff  (Read 6402 times)

Danieluyoshikoto?s Scripts and Stuff
« on: January 01, 2010, 02:31:30 AM »
In this topic i will post various Danmakufu related stuff i made (darou ne T_T).

Single scripts:
Happy New Year! (1.1.2010) [Eyecandy]
Excitement - Hearts from all sides (dec. 2009) [Survival]

Plural Scripts (Bosses):
-none, yet-

Stages:
-none, either-

Other useless stuff:
Brofist in all colors (random pic, inspired by Blargle and Suikama)
Brofist in different colors and sizes (Because Suikama-sama said so.)
Please tell me what you think about my work...
« Last Edit: February 02, 2010, 02:51:15 PM by Danielu Yoshikoto »

Iryan

  • Ph?nglui mglw?nafh
  • Cat R?lyeh wgah?nagl fhtagn.
Re: Danieluyoshikoto?s Scripts
« Reply #1 on: January 01, 2010, 11:26:33 AM »
Well well, Happy New Year!  ;D

So, this script, while not being that interesting in terms of dodging, does look nice and reminds one of fire works. Some additional graphical effects like fading sparkles would've been nice, but that would've required some more advanced knowledge to implement and thus shouldn't be expected from one's earlier scripts, anyways.  ;)


One tip on your general coding: To highly reduce the amount of code you need to type out and to make your code more clear, you can use the loop function even inside a loop. For example, take this code from your script:

Code: [Select]
        if(Frame==Interval){

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 0, 0, 0, 0, 234);
        SetShotDataA(1, 30, 0, 0, 0, 0, 0, 234);
        SetShotDataA(1, 60, 2, 0, 0, 0, 0, 151);
        SetShotDataA(1, 90, 0, 0, 0, 0, 0, 151);
        SetShotDataA(1, 120, 1, ANGB, 2, 0, 0, 27);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 27);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 57);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 0, 0, 0, 0, 234);
        SetShotDataA(1, 30, 0, 0, 0, 0, 0, 234);
        SetShotDataA(1, 60, 2, 45, 0, 0, 0, 151);
        SetShotDataA(1, 90, 0, 45, 0, 0, 0, 151);
        SetShotDataA(1, 120, 1, ANGB, 2, 0, 0, 27);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 27);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 57);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 0, 0, 0, 0, 234);
        SetShotDataA(1, 30, 0, 0, 0, 0, 0, 234);
        SetShotDataA(1, 60, 2, 90, 0, 0, 0, 151);
        SetShotDataA(1, 90, 0, 90, 0, 0, 0, 151);
        SetShotDataA(1, 120, 1, ANGB, 2, 0, 0, 27);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 27);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 57);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 0, 0, 0, 0, 234);
        SetShotDataA(1, 30, 0, 0, 0, 0, 0, 234);
        SetShotDataA(1, 60, 2, 135, 0, 0, 0, 151);
        SetShotDataA(1, 90, 0, 135, 0, 0, 0, 151);
        SetShotDataA(1, 120, 1, ANGB, 2, 0, 0, 27);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 27);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 57);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 0, 0, 0, 0, 234);
        SetShotDataA(1, 30, 0, 0, 0, 0, 0, 234);
        SetShotDataA(1, 60, 2, 180, 0, 0, 0, 151);
        SetShotDataA(1, 90, 0, 180, 0, 0, 0, 151);
        SetShotDataA(1, 120, 1, ANGB, 2, 0, 0, 27);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 27);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 57);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 0, 0, 0, 0, 234);
        SetShotDataA(1, 30, 0, 0, 0, 0, 0, 234);
        SetShotDataA(1, 60, 2, 225, 0, 0, 0, 151);
        SetShotDataA(1, 90, 0, 225, 0, 0, 0, 151);
        SetShotDataA(1, 120, 1, ANGB, 2, 0, 0, 27);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 27);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 57);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 0, 0, 0, 0, 234);
        SetShotDataA(1, 30, 0, 0, 0, 0, 0, 234);
        SetShotDataA(1, 60, 2, 270, 0, 0, 0, 151);
        SetShotDataA(1, 90, 0, 270, 0, 0, 0, 151);
        SetShotDataA(1, 120, 1, ANGB, 2, 0, 0, 27);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 27);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 57);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 0, 0, 0, 0, 234);
        SetShotDataA(1, 30, 0, 0, 0, 0, 0, 234);
        SetShotDataA(1, 60, 2, 315, 0, 0, 0, 151);
        SetShotDataA(1, 90, 0, 315, 0, 0, 0, 151);
        SetShotDataA(1, 120, 1, ANGB, 2, 0, 0, 27);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 27);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 57);
FireShot(1);

ANGB=ANGB+30;
}


Frame=0;
}


        if(Frame==Interval2){

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 180, 0, 0, 0, 233);
        SetShotDataA(1, 30, 0, 180, 0, 0, 0, 233);
        SetShotDataA(1, 60, 2, 0, 0, 0, 0, 153);
        SetShotDataA(1, 90, 0, 0, 0, 0, 0, 153);
        SetShotDataA(1, 120, 1, ANGB, -2, 0, 0, 32);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 32);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 62);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 180, 0, 0, 0, 233);
        SetShotDataA(1, 30, 0, 180, 0, 0, 0, 233);
        SetShotDataA(1, 60, 2, 45, 0, 0, 0, 153);
        SetShotDataA(1, 90, 0, 45, 0, 0, 0, 153);
        SetShotDataA(1, 120, 1, ANGB, -2, 0, 0, 32);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 32);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 62);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 180, 0, 0, 0, 233);
        SetShotDataA(1, 30, 0, 180, 0, 0, 0, 233);
        SetShotDataA(1, 60, 2, 90, 0, 0, 0, 153);
        SetShotDataA(1, 90, 0, 90, 0, 0, 0, 153);
        SetShotDataA(1, 120, 1, ANGB, -2, 0, 0, 32);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 32);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 62);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 180, 0, 0, 0, 233);
        SetShotDataA(1, 30, 0, 180, 0, 0, 0, 233);
        SetShotDataA(1, 60, 2, 135, 0, 0, 0, 153);
        SetShotDataA(1, 90, 0, 135, 0, 0, 0, 153);
        SetShotDataA(1, 120, 1, ANGB, -2, 0, 0, 32);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 32);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 62);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 180, 0, 0, 0, 233);
        SetShotDataA(1, 30, 0, 180, 0, 0, 0, 233);
        SetShotDataA(1, 60, 2, 180, 0, 0, 0, 153);
        SetShotDataA(1, 90, 0, 180, 0, 0, 0, 153);
        SetShotDataA(1, 120, 1, ANGB, -2, 0, 0, 32);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 32);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 62);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 180, 0, 0, 0, 233);
        SetShotDataA(1, 30, 0, 180, 0, 0, 0, 233);
        SetShotDataA(1, 60, 2, 225, 0, 0, 0, 153);
        SetShotDataA(1, 90, 0, 225, 0, 0, 0, 153);
        SetShotDataA(1, 120, 1, ANGB, -2, 0, 0, 32);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 32);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 62);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 180, 0, 0, 0, 233);
        SetShotDataA(1, 30, 0, 180, 0, 0, 0, 233);
        SetShotDataA(1, 60, 2, 270, 0, 0, 0, 153);
        SetShotDataA(1, 90, 0, 270, 0, 0, 0, 153);
        SetShotDataA(1, 120, 1, ANGB, -2, 0, 0, 32);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 32);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 62);
FireShot(1);

ANGB=ANGB+30;
}

loop(12){
        CreateShotA(1, GetX, GetY, 0);
        SetShotDataA(1, 0, 3, 180, 0, 0, 0, 233);
        SetShotDataA(1, 30, 0, 180, 0, 0, 0, 233);
        SetShotDataA(1, 60, 2, 315, 0, 0, 0, 153);
        SetShotDataA(1, 90, 0, 315, 0, 0, 0, 153);
        SetShotDataA(1, 120, 1, ANGB, -2, 0, 0, 32);
        SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 32);
        SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 62);
FireShot(1);

ANGB=ANGB+30
}
}

You used a loop during which a variable is increased to make bullets that are the same except for one parameter. Why not do the same thing to another parameter? Just define another variable (in this case, I called it ANGC to stay close to your form) and you reduce the amount of code you have to write to 1/8 of the actual amount!  ;D

Code: [Select]
if(Frame==Interval){

loop(8){
loop(12){
CreateShotA(1, GetX, GetY, 0);
SetShotDataA(1, 0, 3, 0, 0, 0, 0, 234);
SetShotDataA(1, 30, 0, 0, 0, 0, 0, 234);
SetShotDataA(1, 60, 2, ANGC, 0, 0, 0, 151);
SetShotDataA(1, 90, 0, ANGC, 0, 0, 0, 151);
SetShotDataA(1, 120, 1, ANGB, 2, 0, 0, 27);
SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 27);
SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 57);
FireShot(1);

ANGB=ANGB+30;
}
ANGC=ANGC+45;
}

Frame=0;
}


if(Frame==Interval2){

loop(8){
loop(12){
CreateShotA(1, GetX, GetY, 0);
SetShotDataA(1, 0, 3, 180, 0, 0, 0, 233);
SetShotDataA(1, 30, 0, 180, 0, 0, 0, 233);
SetShotDataA(1, 60, 2, ANGC, 0, 0, 0, 153);
SetShotDataA(1, 90, 0, ANGC, 0, 0, 0, 153);
SetShotDataA(1, 120, 1, ANGB, -2, 0, 0, 32);
SetShotDataA(1, 180, 0, ANGB, 0, 0, 0, 32);
SetShotDataA(1, 240, 3, rand_int(0,360), 0, 0, 0, 62);
FireShot(1);

ANGB=ANGB+30;
}
ANGC=ANGC+45;
}
}

Oh yeah, indenting your text properly may seem like unneccessary work at first, but it will make it much easier for you (and other people who want to help) to spot where eventual flaws in your scripts lie.   ;)


All in all, not too bad a work, and I am eager to see some more of your scripts in the future.

/wall of code  :V
« Last Edit: January 01, 2010, 11:29:55 AM by Iryan »
Old Danmakufu stuff can be found here!

"As the size of an explosion increases, the numbers of social situations it is incapable of solving approaches zero."

Re: Danieluyoshikoto?s Scripts
« Reply #2 on: January 01, 2010, 12:50:03 PM »
You used a loop during which a variable is increased to make bullets that are the same except for one parameter. Why not do the same thing to another parameter?

I actually tried that - the unused Variable ANGA is what i used for it - , but for some stupid reason it wouldn?t work, only one of the orbs would fly to the right, while the rest would stay in the middle(not move/move only a little bit, but impossible to see directly).
Appearently Danmakufu hates me :V
« Last Edit: January 01, 2010, 02:43:59 PM by Danielu Yoshikoto »

Re: Danieluyoshikoto?s Scripts and Stuff
« Reply #3 on: January 30, 2010, 10:16:08 PM »
Sorry for bumping this, and also double posting... but i decided to update my thread with a bunch of stuff.

Update 30.1.2010:

-First post will now include everything.
-Single Scripts:
--Excitement - Hearts from all sides (Survival)
-Other useless stuff:
--Brofist in all colors and shapes

Repost of "Happy New Year" description (this was in the first post, but was moved to this, as i had to rearrange everything.):
Here is one i just made a few minutes ago... It was suposed to be done in the time i had left in 2009 but it took to much time, so it ended up being my first script of 2010.
I got the idea when i was outside for about an hour. it?s not hard enough i think... but still, it was only a test.

"Excitement - Hearts from all sides":
A script i made in dec. 2009. This is actually a part of a stage script i wanted to do, but ended up having not enough time for.
Also difficulty is survival, because it is a survival card.

"Brofist in all colors and shapes":
Something random that came to my mind. i don?t know if it is possible to have the "fist" only.
Maybe if i figure out how, i might make a script with more fists, and sizes. (also Imageshack is a good BRO as it added another s to the actual name of the file instead of other random letters.)

That,s it for now... and again... sorry for bumping and double-posting.
« Last Edit: January 30, 2010, 10:19:23 PM by Danielu Yoshikoto »


Re: Danieluyoshikoto?s Scripts and Stuff
« Reply #5 on: January 30, 2010, 11:17:42 PM »
:o :o :o

That was the power of Photoshop PhotoImpact 6.
Never expected to surprise you with this.
Found a way to make the fists appear on it?s own, without that other thing on the back.
I will try to arrange a sheet for abuse with danmakufu, later this day.
« Last Edit: January 30, 2010, 11:20:09 PM by Danielu Yoshikoto »

Re: Danieluyoshikoto?s Scripts and Stuff
« Reply #6 on: January 30, 2010, 11:25:14 PM »
That was the power of Photoshop PhotoImpact 6.
Never expected to surprise you with this.
Found a way to make the fists appear on it?s own, without that other thing on the back.
I will try to arrange a sheet for abuse with danmakufu, later this day.
If you do, then I'd totally integrate it into the brofist shot replace script 8)

Re: Danieluyoshikoto?s Scripts and Stuff
« Reply #7 on: January 31, 2010, 09:03:38 AM »
Now i present you:

Update 31.1.2010:

-Other Useless Stuff
--Brofist in (some) different colors and (now in) sizes

:V

"Brofist in different colors and sizes":

AKA. Brofist in all colors Version 1.337.
5 200x200 fists
8 150x150 fists
10 100x100 fists
12 50x50 fists
total amount of fists: 35
total amount of broness: infinitiv
« Last Edit: January 31, 2010, 09:28:38 AM by Danielu Yoshikoto »

puremrz

  • Can't stop playing Minecraft!
Re: Danieluyoshikoto?s Scripts and Stuff
« Reply #8 on: January 31, 2010, 09:28:52 AM »
Make a black backgrounded version too, we need Brofist lasers. :V
Full Danmakufu game "Juuni Jumon - Summer Interlude" is done!
By the same person who made Koishi Hell 1,2 (except this game is serious)
Topic: http://www.shrinemaiden.org/forum/index.php/topic,9647.0.html

Kylesky

  • *The Unknown*
  • Local Unbalanced Danmakufu Idiot Scripter
    • My useless youtube account... (will be useful in the future *I promise*)
Re: Danieluyoshikoto?s Scripts and Stuff
« Reply #9 on: January 31, 2010, 09:34:23 AM »
Make a black backgrounded version too, we need Brofist lasers. :V

lol... it's just so awesome that I decided to make a black backgrounded one immediately...
Danmakufu Script Thread :V Latest Script: Intertwining Mechanical Intervention (temp name)

Yooooouuutuuuubeeee Channel Latest Video: Contest #8 Entry