User Tag List

Results 1 to 3 of 3

Thread: Actions applying to entire group/none of group

  1. #1
    No Products Registered

    Join Date
    Jul 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Actions applying to entire group/none of group

    Hello, first post here.

    Basically I'm creating a turn-based Fire Emblem-esque game. The game has been going fine up until I try to add a second enemy at which point things get weird.

    (When I say "enemy", i'm referring to two separate objects with the group qualifier "enemy", not two instances of the same object. The "first" enemy is the enemy i created first, and the "second" enemy is a clone of the first, meaning all values, qualifiers, etc. are the same.)

    The game has a character called Gallius. The ability is supposed to apply a slow to all enemies around him in a 125-unit radius.

    Here's the code:
    +Sqr(((Y( "Gallius" )-Y( "Group.Enemies" )) pow 2)+((X( "Gallius" )-X( "Group.Enemies" )) pow 2)) <= 125
    +Alterable Value H of Group.Enemies < 0
    ->Set Alterable Value H of Group.Enemies = 2
    ->Set Internal Flag 0 of Group.Enemies = on

    The first line determines the Enemy's distance from Gallius. If you dont recognize it, it's the distance formula.
    The second line determines whether the enemy that was found to be in range by line 1 (not sure if that's how it works) is already slowed. The remaining slow duration is stored in Alterable value H, and this is in common for all enemies.

    The first action is to set the enemy's remaining slow duration, Alterable Value H, to 2.
    The second action is to turn on an internal flag for the enemy.

    At runtime, when the first enemy is in range, it does the action to BOTH enemies, regardless of the second enemy's location. When the second enemy is in range, it does not apply the action to EITHER enemy. This happens to other abilities with similar effects and coding.

    This is thoroughly perplexing. Any help?

  2. #2
    No Products Registered

    Join Date
    Jul 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump, please help

  3. #3
    No Products Registered

    Join Date
    Jul 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can nobody help? :l

Similar Threads

  1. ini files - edit entire group or insert raw text
    By blurymind in forum Fusion 2.5
    Replies: 0
    Last Post: 2nd August 2014, 02:43 PM
  2. "Always" (when inside a group) doesn't deactivate when Group is deactivated.
    By Aloan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd March 2014, 01:31 AM
  3. SQL Group Inside of a Group?
    By Ausomeman in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th January 2011, 04:18 PM
  4. Group bug?
    By Jarzka in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 7th July 2008, 06:37 PM

Tags for this Thread

Posting Permissions

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