User Tag List

Results 1 to 2 of 2

Thread: Random non-sequential numbers within a range of cells

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Sep 2010
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random non-sequential numbers within a range of cells

    I'm creating a battle engine that uses ATB gauges. These gauges populate based on an enemies' and characters' speeds. I had considered using an IP gauge that would visually represent an order of attack, but I don't want to flood the viewable frame with too much information.

    I want to create an attack order based on which enemies'/characters' ATB gauge fills up first. Essentially there will be up to 12 different attacks that will be present. So, I want to sort the highest speed to lowest, each turn, and adjust accordingly each turn in case speeds change (haste, slow, stop, speed up, speed down, etc.) Should I use sort x object to populate an attack order or is there another way?

    This question is for use of skills. I am placing all game data in a string array....In one of table I have the army / mob setup, which will determine which enemies are populated in the frame. This refers to another table which contains the complete bestiary. Within this table I have a list of skills, using numbers (4 different numbers per enemy), which refer to another table for the skill data....all of this is just technicality, and not necessarily the point to the question....

    Let's say I have a range of cells that contain non-sequential values (not within a range). Let's assume these numbers are 1, 5, 8, 21 within cells x2-x5. I learned that the Randomizer Object does not like "out-of-range" or negative integers, so how could I choose one of these numbers at random? Or put more simply, how can I choose a number from a range of cells in an array?

  2. #2
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Sep 2010
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [Update] I think I may have found a workaround.

    Create a string object containing 4 paragraphs. Then a counter (for visual representation....I plan on using alterable values instead).

    Then:

    -Upon pressing spacebar
    --set [counter] to Val(paragraph$( "String", Random(3 ) + 1 ) )

    Translation:
    Set the counter to the string conversion of the value within one of the four paragraphs at random.

    This actually worked well for me so I will use this method instead of another extension

Similar Threads

  1. Range of Random Numbers
    By Jaklar in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th November 2014, 05:20 PM
  2. comparing to range of numbers
    By DemonD in forum Fusion 2.5
    Replies: 5
    Last Post: 20th October 2014, 07:21 PM
  3. Random Numbers and expiring the result numbers.
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th April 2013, 04:11 PM
  4. using a range of numbers in expression editor
    By takki in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th May 2011, 11:10 PM
  5. Select a range numbers from an alterable value?
    By Mantoid in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 14th March 2009, 09:49 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
  •