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

Location:
JBPLAY  \  Meteor 2  \  Help and Guidance  \  Static flag math

Back to Threads

Viewing Thread: Static flag math

 

Dthdealer

Joined: 10 March 2007
Posts: 476
01 December 2007 06:50 (UK time)

I wish to add a number to a static flag, how would this be achieved?

StaticFlags[2] = (StaticFlags[2] + 1);
..was my guess. But it doesn't work. In fact it doesn't even cause an error when i play the map.
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.

nyasudah
 Official Sponsor

Joined: 06 February 2005
Posts: 832
01 December 2007 07:51 (UK time)

using a variable maybe help
for example:

x=1;
staticflags[2]=x; //staticflags[2] is now 1
x=x+1;
staticflags[2]=x; //staticflags[2] is now 2
nyasudah / masuda / mp / PetiX / PtX


Edited: 01 December 2007 07:52


You need to login to create posts in this thread.

mike323
Joined: 23 January 2005
Posts: 745
01 December 2007 18:28 (UK time)

StaticFlags[2]++;

++ increments a variable by 1. To increment things by more, use:

StaticFlags[2] += 2;

^^ Increments by 2.

You need to login to create posts in this thread.

Dthdealer

Joined: 10 March 2007
Posts: 476
02 December 2007 02:33 (UK time)

Sorry, it does work. I had the wrong script that requests its value.
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