• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Mana Currency v0.01

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
My spell is all about giving Mana while the enemy/ally unit gives you gold.

* When the enemy/ally's unit Mana points is full then the skill stops.
* If the enemy/ally's unit Gold is equal to 0 then the skill stops.
* Within 3 seconds the skill stops.

Very simple and it doesn't leak that much.
I Haven't figure how would it work in multiple players yet.

Keywords:
Fuel, Mana Currency, Hacking, Greed.
Contents

Elrax Corporations (Map)

Reviews
12th Dec 2015 IcemanBo: Too long as NeedsFix. Rejected. 15:34, 5th Nov 2013 Maker: The spell must be MUI. And only upload versions that are close to 1.0. We are not interested in v0.01, that indicates it will go through heavy modifications

Moderator

M

Moderator

12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.

15:34, 5th Nov 2013
Maker: The spell must be MUI. And only upload versions that
are close to 1.0. We are not interested in v0.01, that indicates
it will go through heavy modifications
 
Level 19
Joined
Mar 18, 2012
Messages
1,716
Very simple and it doesn't leak that much.
I shouldn't leak at all!
I Haven't figure how would it work in multiple players yet.
It has to be MUI (at least MPI depending on the resource)
If the enemy/ally's unit Gold is equal to 0 then the skill stops.
You have a logic error here, your system drains 10 gold from user A and gives 10 gold to User B. But if user a has only 3 gold it still adds 10 to user B.
Plus right now the spell cannot be stopped, user A has to give user B all his gold, if the mana pool is big enough.
Maybe it could depend on IsUnitInRange or not beeing attacked.

What you need to do:
  • Get rid of the location leaks
  • Make it MUI and MPI
  • A configuration trigger
  • Improve the whole code, to get rid of bugs for example the gold issue.
  • Its far too simple, though the idea is somehow original.
How to easily post triggers
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
He must have been really excited to show the world his first spell. Don't worry man, we understand, but next time please make sure that your submission complies with the site standards. Thanks.
 
Level 2
Joined
Nov 5, 2013
Messages
3
I Don't Know if I could ask questions but does this help ?

  • Events
    • Time - Every 0.10 seconds of game time
  • Conditions
  • Actions
    • For each (Integer MUI_index[2]) from 1 to MUI_index[1], do (Actions)
      • Loop - Actions
        • Set MUI_time[MUI_index[2]] = (MUI_time[MUI_index[2]] + 0.10)
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Percentage mana of XManaCurrencyTarget) Equal to 100.00
                • (XManaCurrencyTarget is dead) Equal to True
                • (XCasterGreedyMercenary is dead) Equal to True
                • MUI_time[MUI_index[2]] Greater than or equal to MUI_duration[MUI_index[2]]
                • ((Owner of XManaCurrencyTarget) Current gold) Equal to 0
          • Then - Actions
            • Set MUI_index[0] = (MUI_index[0] - 1)
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • MUI_index[0] Equal to 0
              • Then - Actions
                • Set MUI_index[0] = 0
                • Set MUI_index[1] = 0
                • Lightning - Destroy XManaCurrencyLightning
                • Custom script: call RemoveLocation (udg_YCasterGreedyMercenary)
                • Custom script: call RemoveLocation (udg_YManaCurrencyTarget)
                • Trigger - Turn off (This trigger)
              • Else - Actions
          • Else - Actions
            • Set YCasterGreedyMercenary = (Position of XCasterGreedyMercenary)
            • Set YManaCurrencyTarget = (Position of XManaCurrencyTarget)
            • Unit - Set mana of XManaCurrencyTarget to ((Mana of XManaCurrencyTarget) + 10.00)
            • Player - Add 10 to (Owner of XCasterGreedyMercenary) Current gold
            • Player - Add -10 to (Owner of XManaCurrencyTarget) Current gold
            • Lightning - Move XManaCurrencyLightning to source YCasterGreedyMercenary and target YManaCurrencyTarget
            • Custom script: call RemoveLocation (udg_YCasterGreedyMercenary)
            • Custom script: call RemoveLocation (udg_YManaCurrencyTarget)
 
Level 2
Joined
Nov 5, 2013
Messages
3
The First Part

  • Mana Currency
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Mana Currency
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • MUI_index[0] Equal to 0
        • Then - Actions
          • Trigger - Turn on Mana Currency Trigger <gen>
        • Else - Actions
      • Set MUI_index[0] = (MUI_index[0] + 1)
      • Set MUI_index[1] = (MUI_index[1] + 1)
      • Set MUI_time[MUI_index[1]] = 0.00
      • Set MUI_duration[MUI_index[1]] = 3.00
      • Set XCasterGreedyMercenary = (Casting unit)
      • Set XManaCurrencyTarget = (Target unit of ability being cast)
      • Set YCasterGreedyMercenary = (Position of XCasterGreedyMercenary)
      • Set YManaCurrencyTarget = (Position of XManaCurrencyTarget)
      • Lightning - Create a Mana Flare lightning effect from source YCasterGreedyMercenary to target YManaCurrencyTarget
      • Set XManaCurrencyLightning = (Last created lightning effect)
 
Top