User Tag List

Results 1 to 5 of 5

Thread: How to pick 1 object (from 4 object) to do action?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Pyrasia's Avatar
    Join Date
    Sep 2008
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to pick 1 object (from 4 object) to do action?

    Okay, if you have ever played Ogre Battle series, we're on the same track.
    [img:right]http://www.4colorrebellion.com/media/pics/08/02/ogrebattle64.jpg[/img]


    I have all enemy objects set as Enemy Qualifier.
    Now I want the player Character (non-controllable) to randomly choose 1 of all Enemy and attack it.

    The Bold part is where I'm still figuring how to do that <_<'

    Any thought plz?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Pyrasia's Avatar
    Join Date
    Sep 2008
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to pick 1 object (from 4 object) to do action?

    Oh, *note*

    The "choose 1 object at random" is not the 'Condition' part, it's the 'Then' part (if 'Condition' is IF, this part is THEN.)

    ---

    Added:

    Actually, it doesn't have to be exactly like that...
    If I figure out how to 'pick 1 object' from multiple object as a THEN part of the condition, I can use it for many many purpose.


    Example:

    If mouseover Skeleton, create Counter next to it.
    Now I want that counter to show Skeleton's Value A (HP).
    So I want that Counter to Set to the nearest Skeleton's A Value. But I can't find how, or alternatives.

  3. #3
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to pick 1 object (from 4 object) to do action?

    You could always give each occurence a different alterable value (in sequence) then draw a standard random number, and use it to pick one.

    Perhaps spreading values might help here - although I've never used it myself, so am not up to speed.

  4. #4
    No Products Registered

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

    Re: How to pick 1 object (from 4 object) to do action?

    there a many ways you can do this.

    The easiest is to probably pick a Group.Enemy at random and set its flag 0 to ON. Then you can continue with the rest of your events and attack only the enemy with flag 0 ON.
    Remember to turn the flag back OFF when u finish.

    You can also use an alterable value and give each enemy a unique ID (1,2,3,4 etc) and then pick a value at random and store it in on of the players alterable values at the target (Alterable Value 0 is renamed to 'target' for example)

    Remember that when u pick a random number it starts from 0, so if your enemies ID's start at 1, you need to add 1 to the result otherwise if it picks the nubmer 0 it wont work

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Pyrasia's Avatar
    Join Date
    Sep 2008
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to pick 1 object (from 4 object) to do action?

    Those are rly good ideas

    I got it to work now, thx!

Similar Threads

  1. Pick up object with text
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th September 2009, 10:51 AM
  2. Pick up object and shooting
    By Mycale in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th August 2009, 12:04 PM
  3. Pick an object ...?
    By MattEsch in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 24th August 2008, 05:04 PM
  4. Pick object by...
    By haora in forum File Archive
    Replies: 0
    Last Post: 18th August 2007, 06:59 PM

Posting Permissions

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