The Daily Click ::. Forums ::. Klik Coding Help ::. Alterable Values
 

Post Reply  Post Oekaki 
 

Posted By Message

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
26th December, 2005 at 07:05:37 -

May seem like a stupid question but its been bugging me for ages and I need it sorting.
Basically I have 3 active system boxes which are all the same, and the user can add a system box by clicking a button. I also have a counter, and 1 is added to it every time a box is created. When a box is created, the alterable value A of the box just created needs to be set to the value of the counter (so each box has its own unique ID). I know I can use "Spread value" but I don't want to as the counter can be used for something else later.

So far I have this event -

+ Button is clicked
- Create object "box"
- Set value A to "counter"

However, this sets value A to the counter value for ALL of the boxes in the player. I have tried everything to fix this - I even made it like this:

+ Button is clicked
+ Value B = 0
- Create object "box"
- Set value A to "counter"
- Set value B to 1

Yet it still sets all the boxes value's A to the counter. How can I make it so that it only sets the value of the box that has just been created? Any help would be appreciated as it has me baffled.



 
This is a signature. Have this one on me.

Deleted User
26th December, 2005 at 07:16:27 -

+click button
-create box

+value b == 0
-value a = counter
-value b = 1

Image Edited by the Author.

 

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
26th December, 2005 at 07:21:11 -

Yeh I've tried that - still sets all the boxes values to the counter.

 
This is a signature. Have this one on me.

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
26th December, 2005 at 07:24:27 -

Just re-installed MMF and it seems to be working now.. Must be because I transferred some folders over from my old PC. Thanks anyway

 
This is a signature. Have this one on me.
   

Post Reply



 



Advertisement

Worth A Click