The Daily Click ::. Forums ::. Klik Coding Help ::. Expressions help
 

Post Reply  Post Oekaki 
 

Posted By Message

Blue66



Registered
  24/05/2008
Points
  1186

GOTW JUNE 2010 WINNER!Hero of TimeVIP Member
18th April, 2009 at 10:25:57 -

Hi guys!

Since a lot of my crappy MMF2 skills come from not knowing how to handle expressions well, I've come to ask you if there are some good tutorials or examples out there of what is possible with advanced usage of the expression editor.

Like right now. I need about 10 events, just because I don't know how to insert a value of another object into that place where the red 1 is.

Image

Thanks for your help!

Edited by Blue66

 
www.paulinthenet.de
www.gungirl2.com

nim



Registered
  17/05/2002
Points
  7234
18th April, 2009 at 11:25:12 -

You mean like, Value("Counter") ?

 
//

Blue66



Registered
  24/05/2008
Points
  1186

GOTW JUNE 2010 WINNER!Hero of TimeVIP Member
18th April, 2009 at 13:28:08 -

I'm sorry, but when I say I'm an idiot, I MEAN IT!

Image

Please be more precice next time.

 
www.paulinthenet.de
www.gungirl2.com

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
18th April, 2009 at 13:50:18 -

I'm not sure if this is what you want but to retrieve an Alterable String from an object by "index" then you can do it like this:

AltStrN$( "Story Man", Value(Conversation E( "Player")))

Tell me if that works. You may have to change it to this:

AltStrN$( "Story Man", Value(Conversation E( "Player"))-1)

because I'm not sure if the first string starts at index 0 or 1.

If one doesn't work, try the other; and if both don't work then I'm on the wrong track.

 
n/a ...

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
18th April, 2009 at 13:56:14 -

Ohh.. you can't if I get what you mean. You can try to change numbers in other strings, but you can't do it outside the bracket thingies.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
18th April, 2009 at 15:37:40 -

I think what you're basically asking is: How can I retrieve strings based on a value? In which case, Muz is right, you can't do what you are trying to do in MMF. However there are options which work equally as well and achieve the same thing. One way is to use the index of an alterable value as Muz suggested. Another way would be to use an extension such as an array object or similiar which you can store strings in numbered cells.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click