The Daily Click ::. Forums ::. Klik Coding Help ::. Counters set as global values?
 

Post Reply  Post Oekaki 
 

Posted By Message

Rory Griffin



Registered
  8/14/2003
Points
  239
19th March, 2007 at 7:04:41 AM -

Is it possible to have a counter set to a global value if that value is a number?

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  1/18/2007
Points
  2762

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
19th March, 2007 at 7:13:57 AM -

Yeah, just use "Set counter to Global Value something". Just like everything else.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Rory Griffin



Registered
  8/14/2003
Points
  239
19th March, 2007 at 7:33:56 AM -

Except that isn't an option...

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  1/18/2007
Points
  2762

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
19th March, 2007 at 7:53:22 AM -

Except it is...
-Set counter -> [Click cute computer icon] Retrieve a global value -> Pick cute global value.

That's in MMF 1.2 but I'm quite sure they haven't removed such a crucial option in MMF 2. What app are you using anyway? Whatever it is the option is hiding there, in the cute computer...

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Tim

I'm on here way too much

Registered
  8/25/2006
Points
  157

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
19th March, 2007 at 9:15:00 AM -

You can just enter the counter's value as (instead of a number, type)

"Global Value A"

Or whatever global value it is

 
http://www.SilverNova.co.uk


Rory Griffin



Registered
  8/14/2003
Points
  239
19th March, 2007 at 3:06:23 PM -

Syntax Error

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  1/18/2007
Points
  2762

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
19th March, 2007 at 3:27:31 PM -

Are you doing this:
[Whatever event]
Right-click the counter, choose "Set counter", click "Retrieve data from an object", right-click the icon "Special" (which looks like a computer), click the option named "Retrieve a global value", highlight the global value which you want to retrieve and click "Ok". Now the expression editor should say "Global Value X" where X is the letter or number for your global value. Now click "Ok" and voilá! You retrieved the global value!

That's the long way, instead you should just do as Tim said, type "Global Value X" in the expression editor where X again is a variable.

Sorry for being over-obvious, but it really shouldn't pose a problem.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Tim

I'm on here way too much

Registered
  8/25/2006
Points
  157

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
19th March, 2007 at 3:33:11 PM -

Are you including the quotations? """"?

 
http://www.SilverNova.co.uk


Rory Griffin



Registered
  8/14/2003
Points
  239
19th March, 2007 at 3:47:32 PM -

Yes, I've done all that. I'm using MMF2, and for some reason it's not working. Try it yourself if you don't believe me... Latest build also. All extension packs, a few extension's I've put in myself, etc.

Image Edited by the Author.

 
n/a

Matt Boothman

The Nissan Micra of forum members

Registered
  9/20/2002
Points
  33

Game of the Week Winner
19th March, 2007 at 3:50:00 PM -

Interesting signature you got there.

Have you checked the actual counter's limits? They might be wrong.

 
http://soundcloud.com/normbo - Listen to my music.

axel

Crazy?

Registered
  2/5/2005
Points
  4770

Game of the Week WinnerYou've Been Circy'd!
19th March, 2007 at 3:51:16 PM -

If you get a syntax error, then just use the 'retrieve data from object' button, and get the expression manually.

And concerning your signature: If you can't even get that right, then you are pretty noob. Sorry, heh

Image Edited by the Author.

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  1/18/2007
Points
  2762

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
19th March, 2007 at 3:56:25 PM -

Sorry Ror(r)y! It does work in MMF2 (The demo anyways, but as I said earlier I'm quite sure they haven't removed such a crucial option in the fullversion), just tried it and it works just fine.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Hernan



Registered
  3/4/2003
Points
  707

VIP Member
19th March, 2007 at 3:59:23 PM -

Make a screenshot of the error. I don't believe you, how can something simple as that not work? :s

 
This space is for rent

Eternal Man [EE]

Pitied the FOO

Registered
  1/18/2007
Points
  2762

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
19th March, 2007 at 4:39:17 PM -

Hernan! You piece o' crap!
(Sorry couldn't help myself)

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Tim

I'm on here way too much

Registered
  8/25/2006
Points
  157

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
19th March, 2007 at 4:55:33 PM -

ERM! That's MR piece o' crap to you, Eternal

 
http://www.SilverNova.co.uk


Hernan



Registered
  3/4/2003
Points
  707

VIP Member
19th March, 2007 at 7:03:44 PM -

Smiling!! A smiling pieco o' crap. Don't you people understand anything??!! *runs away crying*

Image Edited by the Author.

 
This space is for rent

Eternal Man [EE]

Pitied the FOO

Registered
  1/18/2007
Points
  2762

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
19th March, 2007 at 7:13:34 PM -

Ok ok, sorry... HERNAN! You smiling mr piece o' crap!

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Tim

I'm on here way too much

Registered
  8/25/2006
Points
  157

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
19th March, 2007 at 7:17:36 PM -

Yeah ok, you're forgiven

 
http://www.SilverNova.co.uk


Eternal Man [EE]

Pitied the FOO

Registered
  1/18/2007
Points
  2762

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
19th March, 2007 at 7:24:27 PM -

Anyway, RORY BORY! COME IN RORY BORY!

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

AndyUK

Mascot Maniac

Registered
  8/1/2002
Points
  14173

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
19th March, 2007 at 8:16:12 PM -

I blame Eternal Entertainment for the sudden surge of off topic posts.

Shame on you.

 
.

Eternal Man [EE]

Pitied the FOO

Registered
  1/18/2007
Points
  2762

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
19th March, 2007 at 11:10:55 PM -

What? Why on earth would you say that? And btw, your post is waaaaay of topic... hihi!
I'm just trying to get to the bottom of this global value issue, it's important business you know?

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Rory Griffin



Registered
  8/14/2003
Points
  239
20th March, 2007 at 7:28:46 AM -

I have labeled the Global Value as "EXP" because that is going to keep track of my character's experience. When I "Retrieve Data From An Object"->"Special"->"Retrieve A Global Value"->select "EXP"->it types in the box "EXP" without the quotes. I click "Check Current Expression" and the box directly below says "Syntax error." If I click "OK" it says "Cannot understand your expression. Please correct it or choose CANCEL."

Here is a screen shot of the error:
Image

 
n/a

axel

Crazy?

Registered
  2/5/2005
Points
  4770

Game of the Week WinnerYou've Been Circy'd!
20th March, 2007 at 7:59:51 AM -

I think EXP is a reserved value or function. Just change the name and you should be fine.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  9/4/2004
Points
  8001

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
20th March, 2007 at 8:01:25 AM -

Well yeah, because exp() is a reserved function to get an exponent. Use a different name.

 
http://davince.tengudev.com/
Still a member of Ectoprods! If it still exists, that is.

Don't take me for a FOOL!

"you purple nurple " - Del Duio

Hernan



Registered
  3/4/2003
Points
  707

VIP Member
20th March, 2007 at 8:01:39 AM -

'Exp' is reserved for the exponential function. Don't use names that are already in use, such as: sin, cos, log, abs, X, Y, timer etc etc. Of course you get an error, noob

Edit: woops, looks you like you guys were faster in responding

Image Edited by the Author.

 
This space is for rent

DaVince

This fool just HAD to have a custom rating

Registered
  9/4/2004
Points
  8001

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
20th March, 2007 at 8:04:34 AM -

lolol I beat yous

 
http://davince.tengudev.com/
Still a member of Ectoprods! If it still exists, that is.

Don't take me for a FOOL!

"you purple nurple " - Del Duio

Hernan



Registered
  3/4/2003
Points
  707

VIP Member
20th March, 2007 at 8:08:16 AM -

orz

 
This space is for rent
   

Post Reply



 



Advertisement

Worth A Click