interactive buddy scripts

78 posts

Flag Post

post ur scripts here and share em for everyone

 
Flag Post

The Baseball Gun:

velx=getBuddyX() – getXMouse();
vely=getBuddyY() – getYMouse();
if(getMouseDown(),if(t%8==0,assign(t,t+1)create(“baseball”,getXMouse(),getYMouse(),velx,vely),assign(t,t1)),assign(t,0));

because there is no for and you cant define your own functions I couldn’t think of anyway to normalize velocity.

 
Flag Post

Ultra Mega Power Fire Thunder:

(Ultimate Thunder Strike- shocks, explodes, burns!)if(getMouseDown() && bnot(oMouse), playSound(“shock”,100)+ assign(rr,random()100)+ assign(n,0)+ assign(t,25)+ explode(getXMouse(),floor(400),.3) loop(t,shock(getXMouse()+sin(n/t10+rr)10,n/t400)assign(n,n1) ,0)+ create(“molotov”,getXMouse(),floor(410),0,0));

 
Flag Post

I don’t trust these because a made a script that froze my computer.

 
Flag Post

I don’t trust these because a made a script that froze my computer.

lrn 2 engrish more good

 
Flag Post

u aint too good either…
but these scripts are cool i have no idea how to make them but i think i could adjust em…

 
Flag Post

@OneOneOne4
That’s because your computer is SLOW. It says it can cause slowdown AND glitches.

 
Flag Post

unlimited mouse click boom
(fiiiuahsfiaifjsaifjaisjfuioanshovnhsdovnaejnfjoasnfjkoaskkkaskdkulitmeken127319918381918239180-axcasc0sa-j23i99csvdZIK99sad9ju-semi(bomersssstiems)nmdnanamms(code-work-script-29349012husitneWORK)

 
Flag Post

and how do u use the scirpts?

 
Flag Post

Buy the script engine from the mode shop. Then access that mode.

 
Flag Post

I hadn’t realized that there were trig functions available.

The Baseball Gun 1.1:

firerate=8;
velocity=100;
projectile="baseball";
angle=atan((getBuddyX() - getXMouse())/(getBuddyY() - getYMouse()));
velx=velocity*sin(angle);
vely=velocity*cos(angle);
if(getMouseDown(),if(equal(t%(firerate-1),0),
assign(t,t+1)+create(projectile,getXMouse(),getYMouse(),velx,vely),
assign(t,t+1)),
assign(t,0));
 
Flag Post

how do you use the scripts? im having trouble

 
Flag Post

try this one lol

t=t+1;
if(t%2,shock(20,80,0,0,140,100),0)
t=t+1;
if(t%2,water(60,80,0,0,140,100),0)
t=t+1;
if(t%2,shock(150,80,0,0,140,100),0)
t=t+1;
if(t%2,water(200,80,0,0,140,100),0)
t=t+1;
if(t%2,shock(250,80,0,0,140,100),0)
t=t+1;
if(t%2,water(300,80,0,0,140,100),0)
t=t+1;
if(t%2,shock(350,80,0,0,140,100),0)
t=t+1;
if(t%2,water(400,80,0,0,140,100),0)
t=t+1;
if(t%2,shock(450,80,0,0,140,100),0)
t=t+1;
if(t%2,water(500,80,0,0,140,100),0)
t=t+1;

 
Flag Post

for $$$:

the following scripts should be used by setting them to run every frame and then clicking and holding the mouse anywhere on the screen for a second or two.

if(getMouseDown() && bnot(oMouse), explode(getXMouse(),getYMouse(),100.0) ,0);

if(getMouseDown() && bnot(oMouse), loop(10,explode(getXMouse(),getYMouse(),100.0)) ,0);

if(getMouseDown() && bnot(oMouse), loop(50,explode(getXMouse(),getYMouse(),100.0)) ,0);

if(getMouseDown() && bnot(oMouse), explode(getXMouse(),getYMouse(),20000.0) ,0);

the following scripts should be used by clicking “run once”. they cause a lot of slowdown, you may get a warning sayingthat flash player is running slowly and asking if you want to abort the script. Click “no” each time it comes up and they should work.

if(firstRun(), loop(10,explode(getXMouse(),getYMouse(),20000.0)) ,0);

if(firstRun(), loop(51,explode(getXMouse(),getYMouse(),20000.0)) ,0);

if(firstRun(), loop(501,explode(getXMouse(),getYMouse(),20000.0)) ,0);

(edit: fixed blockquotes)

 
Flag Post

This is only a test. This is my first script, so dont tell me it’s lame.

Explosions:
~~~~

Dirn=0.5;
explode(230, 230, Dirn);
explode(450, 450, Dirn);
explode(300, 300, Dirn);

~~~~~~~~~~~~~
Change the power of the explosions by changing 0.5 with another number.

 
Flag Post

This one makes the walls burn. Make sure u click Run Once a few times, not Run Every Frame, or else EXTREME lag.

Firewalls:
~~~~

create(“molotov”, 0, 0, 0, 0);
create(“molotov”, 0, 50, 0, 0);
create(“molotov”, 0, 100, 0, 0);
create(“molotov”, 0, 150, 0, 0);
create(“molotov”, 0, 200, 0, 0);
create(“molotov”, 1000, 0, 0, 0);
create(“molotov”, 1000, 50, 0, 0);
create(“molotov”, 1000, 100, 0, 0);
create(“molotov”, 1000, 150, 0, 0);
create(“molotov”, 1000, 200, 0, 0);
~~~~~~~~~~~~~~~~~~~~

DONT USE RUN EVERY FRAME

 
Flag Post

5 grenades fall from the sky. Run Once.

Air Strike:
~~~~

create(“grenade”, 100, 0, 0, 0);
create(“grenade”, 200, 0, 0, 0);
create(“grenade”, 300, 0, 0, 0);
create(“grenade”, 400, 0, 0, 0);
create(“grenade”, 500, 0, 0, 0);
~~~~~~~~~~~~~~~~~

if u run every frame the grenades wont fall.

 
Flag Post

Just in case you accidentally burn ur buddy and dont want to buy a hose.

WaterPower:
~~~~~~
if(getMouseDown(), water(getXMouse(), getYMouse(), 0, 0, 10, false)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Run every frame.

 
Flag Post

my sirst script:a shocking touch
~~~~~~~~~~~~~~~~~~~~~~~~~~
shock (getXMouse(),getYMouse())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 
Flag Post

use this to bop the crap outta buddy
addSpring(create(“bowlball”,getBuddyX()-10,getBuddyY(),0,0),getBuddyX()-50,getBuddyY(),4)

 
Flag Post

fire walls variation of the explode walls examples
gx = getBuddyX();
test = gx>510||gx<40;
if(test,create(“fireball”,gx+random()-.5,getBuddyY(),0,0),0)

 
Flag Post

How do I run these scripts? I save them, but when I try and use them nothing happens. :|

 
Flag Post

this one is usefull for torturing him hold it over him and sometimes move closer …
“burning waterboarding with shock”
if(getMouseDown(), shock(getXMouse(), getYMouse(), 0, 0, 1000, false)
if(getMouseDown(), fire(getXMouse(), getYMouse(), 0, 0, 1000, false)
if(getMouseDown(), water(getXMouse(), getYMouse(), 0, 0, 1000, false)

without water
if(getMouseDown(), shock(getXMouse(), getYMouse(), 0, 0, 1000, false)
if(getMouseDown(), fire(getXMouse(), getYMouse(), 0, 0, 1000, false)

 
Flag Post

sheck my facebook page(Arronn) for full script list
on notes (click double arrows)

 
Flag Post

Im gonna post a few elements. First i made water, now fire.

Fire
~
if(getMouseDown(), fire(getXMouse(), getYMouse(), 0, 0, 1000, false);