User Tag List

Results 1 to 3 of 3

Thread: Subtracting a counter between 2 global values

  1. #1
    No Products Registered

    Join Date
    Apr 2014
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking Subtracting a counter between 2 global values

    In my game theres 2 Global Values - "Min Attack Damage" and "Max Attack Damage" - they can be changed by changing the weapons i have in my game how can i make so every 5 seconds the counter in the monster battle frame subtracts between "Min Attack Damage" and "Max Attack Damage"

    So The Monster Health Counter is 5000
    My min attack is 0 and max attack is 500 originally how can i make it so the counter loses between 0 and 500 every 5 seconds not just write "Random(500)" since the "Min Attack Damage" and "Max Attack Damage are always changing?


    Help would be much appreciated

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)
    In MMF2 it should be something like: <Every 5 seconds> [Subtract from counter:] MinAtkDmg + Random(1 + MaxAtkDmg - MinAtkDmg )

    So if the lower was 10 and the upper was 50 this would equate to 10+Random(41), which is a random number between 10 and 50 (inclusive). This is equivalent to the Fusion 2.5 function RRandom(MinAtkDmg,MaxAtkDmg)

    This would make it an equal chance between the min and the max. If you wanted it to be weighted so there was an uneven distribution you'd need a different expression.
    .:::.Joshtek.:::.

  3. #3
    No Products Registered

    Join Date
    Apr 2014
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Makes sense

Similar Threads

  1. Global Values & Alterable Values with same names
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th November 2012, 06:15 PM
  2. Why won't backdrops work for my subtracting layer?
    By Yikes in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 1st April 2012, 04:43 PM
  3. Counter Values
    By Stephen38 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th February 2008, 09:51 PM
  4. Negative values in a List, and Global Values
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th January 2007, 06:08 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
  •