User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20

Thread: Expression editor question

  1. #11
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression editor question

    I have no idea what you're doing - adding "WalkTo" to a string and then converting it to a value is going to result in 0. Str$(Val() is the same as X.

  2. #12
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression editor question

    the result is 0 indeed

    basically I'm trying to force some alterable values to be set to the numeric conversion of strings (= value("String name") ), and that's pretty usual, I suppose, and naturally it works, but I have lots of those: so the problem is that I'd like to get that string name composed by the content of an alterable string + a fixed portion of text. I hope it's clear enough... and I hope it's possible, or I'll have to create a quite big number of actions :cry:

  3. #13
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression editor question

    Why do you need to do that?

  4. #14
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression editor question

    because I'm setting up a sort of editor inside the game itself.
    The numeric conversion of a string value() wants a name, the name of an existing string object:

    value("Hotspot1 WalkTo")

    and if I try to compose that name with two strings it fails to be recognized:

    value("Hotspot1" + " WalkTo")

    so the problem is not the alterable string in the first half of the expression,

    value(Alterable String J( "Group.Indicator" ) + " WalkTo")

    but the fact that I don't give to value() a plain object name.

  5. #15
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression editor question

    Ah, you definitely can't dynamically reference objects by name. You could set an alterable string to a "name" instead, and dynamically reference them by that.

  6. #16
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression editor question

    Quote Originally Posted by Jamie
    Really? I didn't know the names were even stored at runtime.
    Nope, as my post goes: You can in the latest HWA build, but only by index. AltStrN$( "Active", > Enter value here <) for strings and AltValN( "Active", > Enter value here <) for values.

  7. #17
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression editor question

    Quote Originally Posted by Jamie
    Ah, you definitely can't dynamically reference objects by name. You could set an alterable string to a "name" instead, and dynamically reference them by that.
    but when I must set the alt value to the numeric conversion of a string object it asks for the object name: how can I give it that object name if -as you suggest- I have a string containing the name instead? MMF will check for the existence of a string object with that name, and it won't find it, because it's an expression and not an actual name. Right? I hope I'm wrong!

  8. #18
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression editor question

    No. You can compare objects strings/values from within the expression editor.
    You just need to make sure you select the right object first in your conditions so that it returns the name from he right object.

  9. #19
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression editor question

    but is it possible in any way to compose an object's name with an expression?
    let's say, I set a series of alt values to a corresponding series of strings (numeric conversion) whose names are composed by the alt values' names + another text string.

  10. #20
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression editor question

    You can use ValueAdd to set and retrieve "extended alterable values" by name. That help?

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Val vs. Value (expression editor)
    By Pineapple in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 28th December 2013, 06:19 PM
  2. Expression Editor Syntax - Newbie question
    By JoergB in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 18th November 2011, 06:06 AM
  3. Expression Editor and Icon Editor
    By OldGuy in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th September 2008, 01:21 AM
  4. Simple expression editor question
    By pinacoladaxb in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th July 2006, 02:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •