Why isn't this working?

twisterghost

New Member
Reaction score
3
Alright, memory leaks aside, this should be okay, but it doesn't work.
It's supposed to remember the last unit you used a skill on and deal bonus damage if you use it on the same unit again.

Code:
Memory Cast
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        MemoryCast Equal to (Target unit of ability being cast)
        (Unit-type of (Triggering unit)) Equal to Castmaster
        (Ability being cast) Equal to Lightning Strike 
    Actions
        Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Orc\Voodoo\VoodooAuraTarget.mdl
        Special Effect - Destroy (Last created special effect)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Memory Cast  for (Triggering unit)) Equal to 1
            Then - Actions
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 10.00 damage of attack type Spells and damage type Normal
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Memory Cast  for (Triggering unit)) Equal to 2
            Then - Actions
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 15.00 damage of attack type Spells and damage type Normal
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Memory Cast  for (Triggering unit)) Equal to 3
            Then - Actions
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 20.00 damage of attack type Spells and damage type Normal
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Memory Cast  for (Triggering unit)) Equal to 4
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Random integer number between 1 and 10) Equal to 3
                    Then - Actions
                        Unit - Pause (Target unit of ability being cast)
                        Special Effect - Create a special effect attached to the overhead of (Target unit of ability being cast) using Abilities\Spells\Human\Thunderclap\ThunderclapTarget.mdl
                        Wait 1.00 seconds
                        Unit - Unpause (Target unit of ability being cast)
                        Special Effect - Destroy (Last created special effect)
                    Else - Actions
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 15.00 damage of attack type Spells and damage type Normal
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Memory Cast  for (Triggering unit)) Equal to 5
            Then - Actions
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 30.00 damage of attack type Spells and damage type Normal
            Else - Actions
        Set MemoryCast = (Target unit of ability being cast)
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
CHANGE THE EVENT TO- a unit cast an ability

because you specify a target of ability
 

twisterghost

New Member
Reaction score
3
Yeah but I was told that with "a unit casts an ability" that people can abuse it
But I guess it wouldn't matter with this skill, since it's a passive skill anyway. I'll try and edit with results.


EDIT:
Still didnt work
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
use the channel(skill) and follow thru time to 1


that will make the unit pause for 1 second while casting
 

twisterghost

New Member
Reaction score
3
But the actual skill "Memory Cast" doesn't do anything. It just sits there and allows the user to add points to it. The trigger checks to see if the user has points in in and activates when Lightning Strike is used.
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
follow thru time does nothing also, it just remove the abuse of begins casting an ability.. channel does completely nothing..
 

twisterghost

New Member
Reaction score
3
Is there anything else anyone can see? Because I took out the variables part and it still doesnt work.
 

vypur85

Hibernate
Reaction score
803
> wouldn't matter with this skill, since it's a passive skill anyway

This seems very misleading. What do you mean? Is the spell really passive or were you describing the other ability? Try posting the most current trigger after modification.
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
please change to make it shorter

Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 10.00 damage of attack type Spells and damage type Normal

change dealing 10+5(level of ability being cast) I am a little dizzy..
 

twisterghost

New Member
Reaction score
3
Sorry, but its not just 5xlevel...

Basically, how it works is that the character has a skill called Lightning Strike which is his main attack thing, and this skill is supposed to pump that up. Memory Cast is the passive skill that works whenever Lightning Strike is used.

Code:
Memory Cast
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Unit-type of (Triggering unit)) Equal to Castmaster
        (Ability being cast) Equal to Lightning Strike 
    Actions
        Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Orc\Voodoo\VoodooAuraTarget.mdl
        Special Effect - Destroy (Last created special effect)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Memory Cast  for (Triggering unit)) Equal to 1
            Then - Actions
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 10.00 damage of attack type Spells and damage type Normal
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Memory Cast  for (Triggering unit)) Equal to 2
            Then - Actions
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 15.00 damage of attack type Spells and damage type Normal
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Memory Cast  for (Triggering unit)) Equal to 3
            Then - Actions
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 20.00 damage of attack type Spells and damage type Normal
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Memory Cast  for (Triggering unit)) Equal to 4
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Random integer number between 1 and 10) Equal to 3
                    Then - Actions
                        Unit - Pause (Target unit of ability being cast)
                        Special Effect - Create a special effect attached to the overhead of (Target unit of ability being cast) using Abilities\Spells\Human\Thunderclap\ThunderclapTarget.mdl
                        Wait 1.00 seconds
                        Unit - Unpause (Target unit of ability being cast)
                        Special Effect - Destroy (Last created special effect)
                    Else - Actions
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 15.00 damage of attack type Spells and damage type Normal
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Memory Cast  for (Triggering unit)) Equal to 5
            Then - Actions
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 30.00 damage of attack type Spells and damage type Normal
            Else - Actions
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
write an IF condition
if level of ability being cast is less than or equal to 3.
then

Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 10.00 damage of attack type Spells and damage type Normal

change dealing 10+5(level of ability being cast)
 

vypur85

Hibernate
Reaction score
803
So, from your current trigger, what's the problem? It seems workable except at level 4. What is lacking? What is not suppose to happen but happened?

'A unit starts the effect of an ability' is always better than 'Begins casting an ability' in your case. :)
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
So, from your current trigger, what's the problem? It seems workable except at level 4. What is lacking? What is not suppose to happen but happened?

'A unit starts the effect of an ability' is always better than 'Begins casting an ability'. :)

does it also specify the target, i wanna know too. ^^
 

PooBucket

New Member
Reaction score
12
They're basically the same thing begins and starts. But begins can be abused by using hte abil;ity and stopping it immediately. The trigger will still fire, but starts makes sure of that, mana paid, cooldown reset again. But demotry does has a bit of a point, just go cause unit to damage unit 10+5x(Real level of ability for unit))
 

twisterghost

New Member
Reaction score
3
Thats not the problem. The problem is that the trigger doesnt even work. I can fix that part when the trigger starts working...
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
let me understand this skill...

now.. this skill is some sort of passive


a unit cast a spell(lightning strike) not a dummy but a real skill

A lighting falls down to enemy dealing huge damage..


now this trigger is some sort of passive.. like zeus's has

if level of ability is equal to 1-3 , it deals additional 10+5(level of ability)

now. is this correct?
 

twisterghost

New Member
Reaction score
3
For the most part. This skill is supposed to buff up the normal lightning strike (just chain lightning with one target) if the caster hits the same unit more than once in a row. I will implement the more than once in a row part after I get it to actually work. Currently, the trigger wont even go.
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
Heres the Trigger I created.. it is the same except the damage..(and the chance of the purge/ pause unit)

Just Modify at will
Code:
Untitled Trigger 001
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Chain Lightning
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Memory Cast  for (Casting unit)) Less than or equal to 3
            Then - Actions
                Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (200.00 + (100.00 x (Real((Level of Memory Cast  for (Casting unit)))))) damage of attack type Spells and damage type Normal
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Level of Memory Cast  for (Casting unit)) Equal to 4
                    Then - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Random integer number between 1 and 100) Less than or equal to 60
                            Then - Actions
                                Unit - Create 1 Dummy Unit for Player 1 (Red) at (Position of (Casting unit)) facing Default building facing degrees
                                Unit - Order (Last created unit) to Orc Shaman - Purge (Target unit of ability being cast)
                                Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
                            Else - Actions
                                Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (200.00 + (100.00 x (Real((Level of Memory Cast  for (Casting unit)))))) damage of attack type Spells and damage type Normal
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Level of Memory Cast  for (Casting unit)) Equal to 5
                            Then - Actions
                                Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (200.00 + (100.00 x (Real((Level of Memory Cast  for (Casting unit)))))) damage of attack type Spells and damage type Normal
                                Set Memory_Cast = (Target unit of ability being cast)
                            Else - Actions
                                Do nothing
(umm i see i have an error...Unit - Create 1 Dummy Unit for Player 1 (Red) at (Position of (Casting unit)) facing Default building facing degrees

change Player 1 (red) to owner of the casting unit)

Heres the Test Map too ~!! It works i created a test map also.
http://boxstr.com/files/2589968_as9c9/LOLOL.w3x
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top