You are not logged in.    Login    New User    Forum Home    Search

Location:
JBPLAY  \  Meteor 2  \  General  \  T3H SCR1PT1NG B4TTL3 =3

Back to Threads

Viewing Thread: T3H SCR1PT1NG B4TTL3 =3

 

ParaSait

Joined: 26 June 2007
Posts: 1478
24 August 2008 19:42 (UK time)

We just started a scripting battle in that "Oof! I finally did it!" thread. I suggest continuing it here! =D
I'll start off with:

SC_SetObjectIndestructible(IdMrazerty,1);
SC_GiveItem("Fusion Cannon",1);
SC_GiveItem("Plutonium Charge",1000);

XD


This link is dead. It's only still here because, err... yknow, it's some sort of... memorial.


Edited: 24 August 2008 19:44


You need to login to create posts in this thread.

40oz
 Official Sponsor

Joined: 03 January 2004
Posts: 1799
25 August 2008 03:03 (UK time)

http://www.jbgames.com/games/meteor2/docs/ScriptCommandsList.htm

This page should come in handy.

SC_GiveItem("Fusion Cannon",-1);
SC_BindObjectToWaypoint(Mrazerty,1);

void OnWaypointReached_1

(

SC_SetObjectHits( Mrazerty, 0);
SC_GameMessage("Mrazerty has tripped on a dime and died.";);

};

idk if the above script works

Haha it would be even funnier if we passed an HH map around and did no edits to it but add scripts.


*Papercut
Pro-Murder.
Legalize Crime.


Edited: 25 August 2008 03:08


You need to login to create posts in this thread.

arezey

Joined: 16 June 2005
Posts: 1599
25 August 2008 06:57 (UK time)

Papercut wrote:

idk if the above script works



It won't, ye forgot the (int ObjectId)! :p

It seems Mrazerty got out of prison... well..
SC_SetObjectIndestructible(idMrazerty, 0);
SC_SetObjectCoords(idMrazerty, coordAcidPoolX, coordAcidPoolY);

You need to login to create posts in this thread.

ParaSait

Joined: 26 June 2007
Posts: 1478
25 August 2008 14:10 (UK time)

Let's do something really nasty now...

StaticFlags[100] = "OWNED";
TimeLimit = -2;
GameType = "GT_NONE";
Mapwidth = -1;
MapHeight = -1;

I owned the whole game = Everyone XD

(Let's not do such things with Papercut's script map)


This link is dead. It's only still here because, err... yknow, it's some sort of... memorial.


You need to login to create posts in this thread.

mike323
Joined: 23 January 2005
Posts: 745
26 August 2008 06:19 (UK time)

Mrazerty wrote:
StaticFlags[100] = "OWNED";

Error 2295874673: Must be assigned to an array.
Script execution halted.
MRAZERTY FAILS!

:D

You need to login to create posts in this thread.

arezey

Joined: 16 June 2005
Posts: 1599
26 August 2008 11:11 (UK time)

Mrazerty wrote:
I owned the whole game = Everyone XD


You realize you owned yourself as well? :p



You need to login to create posts in this thread.

ParaSait

Joined: 26 June 2007
Posts: 1478
26 August 2008 15:18 (UK time)

aleksanteri wrote:

You realize you owned yourself as well? :p

Well yeah, It's the suicide bomber strategy =D

OK, now let's spawn some bodyguards for me...

int MyX;
int MyY;
SC_GetObjectCoords(MrazertyId,&MyX,&MyY);
int BodyGuardRadius = 50;
int NumberOfBodyGuards = 10;
float AngleInterVal = 360/NumberOfBodyGuards;

for(i=1;i<=NumberOfBodyGuards;i++)
{
float ThisAngle = NumberOfBodyGuards * AngleInterval;
float ThisX = Math.Sin(ThisAngle) * BodyGuardRadius;
float ThisY = Math.Cos(ThisAngle) * BodyGuardRadius;
SC_AddObject( "SargeMinigunTrooper.ob", ThisX, ThisY, ThisAngle, AI_GUARDING, SC_GetObjectSide(SC_GetPlayerObjectId()),"Bodyguard "+i, 0, 0, 1);
}


There. If that works correctly, I should now be surrounded by 10 Sarge Minigun Troopers =P =P

P.S. I dunno if M2 has Sin() and Cos() functions though.


This link is dead. It's only still here because, err... yknow, it's some sort of... memorial.


Edited: 26 August 2008 15:41


You need to login to create posts in this thread.

me_mantis

Joined: 26 September 2003
Posts: 1152
27 August 2008 22:25 (UK time)

cos and sin don't work I thinks.
I'll play your game and [allcaps]NOT PRESS SPACE!! HAHA WHAT NOW NOOBS? [/allcaps]

also


int x, y;
SC_GiveItem("God Mode",-100);
SC_GetObjectCoords( SC_GetPlayerObjectId(), &x, &y);
SC_AddExplosion( x - 64, y - 64, 128, 128, 10000, SC_GetPapercutObjectId());
SC_ConsoleMessage("You got own'd papercut hahahaha);


Edited: 27 August 2008 22:33


You need to login to create posts in this thread.

Dthdealer

Joined: 10 March 2007
Posts: 476
28 August 2008 09:49 (UK time)

void WhenIWantToPwn()
{
for (StaticFlags[0] = 0 to 999)
{
SC_SetObjectIndestructible(StaticFlags[0], 0); //Makes all objects/players destructible
next StaticFlags[0] Don't know if this line is needed or if it will fail to compile my script
}
SC_SetObjectIndestructible( myID, 1); //Makes me indestructible
SC_SetSectorDamage( 0, 99999); //Sets the base sector to maximum damage
}

I'll then chow on :choc while shining my with a cloth
Also known as Veyrdite
My website: http://halestrom.net/darksleep@Occasionally you may meet me when you sleep. In the darkest corners of your dreams, where your phone stops working and you don't know what to do. I'll be there; telling you that I don't support your device.

"Can't you just fix-"
NO! I told you when you bought this, when it goes wrong I can't fix it. It's filled with glue. The Greek goddess of glue Araldities herself would be impressed with this.

Please stop asking me for technical support during your dreams. Can't we just tour some surreal landscapes instead?

"How do I do that?"

Count your fingers. Keep trying. Make sure there's ten.

Then summon me. I am large and covered in wires. Clouds of baking soda pour into your world and a slightly weak yellowy glow appears from the LED strips behind me.

If you can see this message then you're already part of the way there. Keep all your styles disabled and you might see the dream within.

"But there's so much javascript everywhere! I can't see you. Help! I've forgotten to count my fingers! Where do I find them?"

The LED strip behind me pops and goes out. Dark spots appear in the centre of each light. I lift my finger to my lips. The smell of tantalum capacitors fills the air.

Ssh. Don't worry about that. Behind those frameworks there's another person sleeping.

Some day the javascript will sleep too.


Edited: 28 August 2008 09:52


You need to login to create posts in this thread.

ParaSait

Joined: 26 June 2007
Posts: 1478
28 August 2008 11:06 (UK time)

Beware using that function, DthDealer, because when you call it I will call THIS:

void SwitchTheRoles()
{

for(StaticFlags[0] = 0 to 999)
{
SC_SetSectorDamage( StaticFlags[0], -SC_GetSectorDamage(StaticFlags[0]));
SC_SetObjectHits( StaticFlags[0], 100-SC_GetObjectHits(StaticFlags[0]));
if(SC_GetObjectIndestructible( StaticFlags[0] == 0)
{
SC_SetObjectIndestructible( StaticFlags[0], 1));
}
else if(SC_GetObjectIndestructible( StaticFlags[0] == 1)
{
SC_SetObjectIndestructible( StaticFlags[0], 0));
}
}
}


With this function, every offensive code is turned into good code =)
And good code is turned into offensive code. Muhaha.

EXTRA RULE: You may only use your own functions! SwitchTheRoles() is patented!!!! =P


This link is dead. It's only still here because, err... yknow, it's some sort of... memorial.


Edited: 28 August 2008 12:05


You need to login to create posts in this thread.

Dthdealer

Joined: 10 March 2007
Posts: 476
28 August 2008 11:09 (UK time)

@Mrazerty

Use the (code)(/code) tags for your script to show the tabs.
Your script has a similar basis of my script
Also known as Veyrdite
My website: http://halestrom.net/darksleep@Occasionally you may meet me when you sleep. In the darkest corners of your dreams, where your phone stops working and you don't know what to do. I'll be there; telling you that I don't support your device.

"Can't you just fix-"
NO! I told you when you bought this, when it goes wrong I can't fix it. It's filled with glue. The Greek goddess of glue Araldities herself would be impressed with this.

Please stop asking me for technical support during your dreams. Can't we just tour some surreal landscapes instead?

"How do I do that?"

Count your fingers. Keep trying. Make sure there's ten.

Then summon me. I am large and covered in wires. Clouds of baking soda pour into your world and a slightly weak yellowy glow appears from the LED strips behind me.

If you can see this message then you're already part of the way there. Keep all your styles disabled and you might see the dream within.

"But there's so much javascript everywhere! I can't see you. Help! I've forgotten to count my fingers! Where do I find them?"

The LED strip behind me pops and goes out. Dark spots appear in the centre of each light. I lift my finger to my lips. The smell of tantalum capacitors fills the air.

Ssh. Don't worry about that. Behind those frameworks there's another person sleeping.

Some day the javascript will sleep too.


You need to login to create posts in this thread.



Forums system (C) 1999-2023 by James Bunting.

Terms of Use