sentrywiz
New Member
- Reaction score
- 25
I have made a spell that I fear won't work in multiplayer circumstances. In other words, I'm not sure its gonna be MUI. I am in the process of learning JASS but I still can't make spells like these yet.
So these are the triggs, take a look and tell me if this will work MUI, aka with multiple players activating the same thing, and if its not tell me a way to fix it (GUI preferably for now)
Spell has 20% chance to heal 6% of the caster's max health on spell cast. Also, spell has 3 second cooldown. This is where the cheese gets sticky and if one timer turns the trigger off, will it apply just for the player who activated it or all players?
So these are the triggs, take a look and tell me if this will work MUI, aka with multiple players activating the same thing, and if its not tell me a way to fix it (GUI preferably for now)
Trigger:
- Life Sphere
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- ((Triggering unit) has an item of type Life Sphere) Equal to True
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random real number between 1.00 and 100.00) Less than or equal to 20.00
- Then - Actions
- Countdown Timer - Start LifeCountdown as a One-shot timer that will expire in 3.00 seconds
- Set LifeCountdown = (Last started timer)
- Trigger - Turn off (This trigger)
- Game - Display to (All players) for 1.00 seconds the text: Healing for 6%
- Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((Max life of (Triggering unit)) x 0.06))
- Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Floating Text - Create floating text that reads (String(((Max life of (Triggering unit)) x 0.06))) above (Triggering unit) with Z offset 0.00, using font size 13.00, color (33.00%, 99.00%, 22.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Life Sphere Timer
- Events
- Time - LifeCountdown expires
- Conditions
- Actions
- Trigger - Turn on Life Sphere <gen>
- Events
Spell has 20% chance to heal 6% of the caster's max health on spell cast. Also, spell has 3 second cooldown. This is where the cheese gets sticky and if one timer turns the trigger off, will it apply just for the player who activated it or all players?