• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Spell problem again! is it possible, ideas?

Status
Not open for further replies.
Level 6
Joined
Jun 23, 2005
Messages
195
Well im making spell that increases damage when spell is activated and then makes normal damage when its not activated. this spell drains mana/sec

EDIT*

Trigger1:
unit starts effect of ability

ability cast immo

set caster = triggering unit
set point = point
create unit to point
order last cre unit to inner fire
turn trigger 3 on

Trigger2:
unit issue order w/o target

Order equal to order(unimmo)

unit - remove buff

Trigger3:
every 2sec of game

if mana of caster less than 100

unit - remove buff
turn trigger3 off

this thing seems to work fine but only thing is it doesnt really allow multiple players use same skills which kinda sux, so any ideas to improve it so like 5 players could use it same time?
 
Last edited:
Level 10
Joined
Jan 21, 2007
Messages
576
  • Melee Initialization
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Integer((Mana of VariableUnit))) Equal to 0
        • Then - Actions
          • Unit - Remove Inner Fire buff from VariableUnit
        • Else - Actions
Or something to that effect, but that would work (Variableunit is, as its name suggests a variable of type unit).
EDIT: Btw have this trigger off at init but ehn have trigger 1 turn it on and trigger 2 turn it off
 
Level 6
Joined
Jun 23, 2005
Messages
195
UPTADE:

this thing seems to work fine but only thing is it doesnt really allow multiple players use same skills which kinda sux, so any ideas to improve it so like 5 players could use it same time?
 
Level 4
Joined
Apr 29, 2007
Messages
88
Shall the Trigger1 be like this:
unit starts effect of ability

Edited: don't use this one[owner of triggering unit equal to player x]
ability cast immo

and put this??
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(owner of triggering unit) Equal to player 1
set triggering unit=caster1

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(owner of triggering unit) Equal to player 2
set triggering unit=caster2

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(owner of triggering unit) Equal to player 3
set triggering unit=caster3
etc.

I can write it until trigger 3 but it will be really long....
 
Level 6
Joined
Jun 23, 2005
Messages
195
Shall the Trigger1 be like this:
unit starts effect of ability

Edited: don't use this one[owner of triggering unit equal to player x]
ability cast immo

and put this??
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(owner of triggering unit) Equal to player 1
set triggering unit=caster1

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(owner of triggering unit) Equal to player 2
set triggering unit=caster2

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(owner of triggering unit) Equal to player 3
set triggering unit=caster3
etc.

I can write it until trigger 3 but it will be really long....

i quess that would work...but as you say freaking long :<
 
First of all, please use trigger tags.
Making this MUI would be best in jass.
Though this maybe can work.
  • Events
  • Unit - Start the effect of an ability
  • Conditions
  • Ability being cast equal to blablabla
  • Actions
  • set TempPoint=GetUnitPosition(TriggeringUnit)
  • Unit - Create Unit blabla at TempPoint
  • Unit - order last created unit to blablabla
  • Custom script - call RemoveLocation(udg_TempPoint)
Second trigger:
  • Events
  • Time - Every 0.20 seconds
  • Conditions
  • Actions
  • Custom script - set bj_wantDestroyGroup=true
  • Unit Group - Pick Every Units in Units with buff <Your buff here> and do actions
  • loop
  • Unit - Set Mana of picked unit to mana of picked unit - 1
  • If mana of picked unit equal to 0
  • then
  • //remove the buff and turn off immolation here
  • else
Leak free and MUI.
 
Level 6
Joined
Jun 23, 2005
Messages
195
First of all, please use trigger tags.
Making this MUI would be best in jass.
Though this maybe can work.
  • Events
  • Unit - Start the effect of an ability
  • Conditions
  • Ability being cast equal to blablabla
  • Actions
  • set TempPoint=GetUnitPosition(TriggeringUnit)
  • Unit - Create Unit blabla at TempPoint
  • Unit - order last created unit to blablabla
  • Custom script - call RemoveLocation(udg_TempPoint)
Second trigger:
  • Events
  • Time - Every 0.20 seconds
  • Conditions
  • Actions
  • Custom script - set bj_wantDestroyGroup=true
  • Unit Group - Pick Every Units in Units with buff <Your buff here> and do actions
  • loop
  • Unit - Set Mana of picked unit to mana of picked unit - 1
  • If mana of picked unit equal to 0
  • then
  • //remove the buff and turn off immolation here
  • else
Leak free and MUI.

ye that sounds better alltought i dont get the custom script, it just removes leaks i quess...well i quess ill try this out thx for this
 
Status
Not open for further replies.
Top