User Tag List

Results 1 to 3 of 3

Thread: HowTo: get an alterable Value from Lua

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Location
    Uruguay
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HowTo: get an alterable Value from Lua

    Ok, here's the problem:
    I'm trying to create a set of Lua functions that will give me control over my actives in my game.
    Some will be basic, like setAlterableValue, getAlterableValue, others a little more complex, like moveTo, etc, etc..

    The problem I'm facing right now, is that I can't find a way to retrieve a specific alterable value from an object. The name / number of the alterable value is specified in one of the parameters of the function called from the Lua script.


    Basically, what I'm trying to do is this:

    DoCall("getAlterableValue", objectID, alterableValueName)

    Where:
    - objectID: is the value of the Alterable Value A of every object.
    - alterableValueName is the name of the alterable value (well, duh!). This can be replaced by the alterable value's number, instead of it's name.

    Anyone has any ideas?

    Thanks in advance!

    - Haora

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

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

    Re: HowTo: get an alterable Value from Lua

    My new Lua+ object can do it with:

    MF_GetObjectValue(ID,Value number)

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Location
    Uruguay
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HowTo: get an alterable Value from Lua

    How interesting... I will definitely give it a try... thanks!

Similar Threads

  1. HOWTO set MMF Object attributes from Lua
    By MOBii in forum Lua Scripting
    Replies: 0
    Last Post: 20th December 2013, 07:58 AM
  2. Howto a smooth Slider?!
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 16th January 2012, 10:10 AM
  3. [HowTo] Compare two images when loaded in Picture?
    By BackStaged in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 5th October 2010, 10:18 PM
  4. [HowTo] Find the Height of an active Object?
    By BackStaged in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 1st October 2010, 03:24 AM
  5. [Howto] Make String replace in a simple text?
    By BackStaged in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 5th September 2010, 04:41 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
  •