Post subject: Different abilities in day and night
Posted: November 16th, 2008, 6:47 pm
Newcomer
Joined: May 5th, 2008, 7:44 am Posts: 16
Well, just as the title states.
I need help triggering a unit to get different abilities on different times of the day. Now, that wouldn't normally be a problem, but my problem is that when night falls, it gets the rank 1 of the ability, regardless of the fact that it was level 5 before nightfall!
So, could anyone help me out here?
(Yes, it's kinda a rip-off of the Night Stalker's ability in DotA )
Blah blah blah, set Day_Integer = Level of X ability
Set the Integer(Day or Night) If/then/else Condition: -Unit alive blah blah -Unit not illusion blah blah Then: -Remove Day Ability -Add Night ability -Set night ability = Day Integer
Post subject: Re: Different abilities in day and night
Posted: November 17th, 2008, 5:47 am
Newcomer
Joined: May 5th, 2008, 7:44 am Posts: 16
Thank you, Arabidnun, it works now Well... sortof... When it turns night, it says that I can train the day version of the ability again, from lvl 1... Any ideas as to how to fix that? Well, thanks alot for the help anyway
Post subject: Re: Different abilities in day and night
Posted: November 17th, 2008, 2:10 pm
Newcomer
Joined: May 5th, 2008, 7:44 am Posts: 16
Yeah, I did, but it still shows up as learnable skills at night :/ Oh well, it doesn't really matter
But now, I have a problem with another triggered spell I made. The spell itself is just blink, the hero teleports to a point specified, and the trigger should make the hero invulnerable, then do (Skill level · 200) damage in a 200 radius. The trigger is currently sometimes working on ONE unit, and looks like this:
Spoiler:
Code:
Blinding Speed Events - Unit - A unit Begins casting an ability Conditions - (Ability being cast) Equal to Blinding Speed Actions - Unit - Make (Casting unit) Invulnerable - Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 200.00 at (Position of (Casting unit)), dealing (Blinding_Speed_Real x 200.00) damage of attack type Spells and damage type Normal - Wait 1.00 seconds - Unit - Make (Casting unit) Vulnerable
Now, I can't find any error in that trigger... Am I just stupid for not seeing it?
Oh, and the set variable trigger looks like this:
Spoiler:
Code:
Blinding Speed Var Events - Unit - A unit Learns a skill Conditions - (Learned Hero Skill) Equal to Blinding Speed Actions - Set Blinding_Speed = (Learned skill level) - Set Blinding_Speed_Real = (Real(Blinding_Speed))
Please help me
EDIT: Actually, it looks like I just need to increase the time between spellcast and doing damage, since it seems to be doing damage at the point I blinked from, not the point I targeted... I'll try this, and tell you if it worked
EDIT2: Nope, that didn't help... I'm really confused, it should work, shouldn't it...?
EDIT3: Oh! I fixed it! I changed the - Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 200.00 at (Position of (Casting unit)), dealing (Blinding_Speed_Real x 200.00) damage of attack type Spells and damage type Normal into - Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 200.00 at (Target point of ability being cast), dealing (Blinding_Speed_Real x 200.00) damage of attack type Spells and damage type Normal That seems to have fixed it Well, I'll probably be asking more questions here, since I just started my map ^^
Spell Blink Events Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to Blink (Neutral) Actions Wait 0.50 seconds Unit - Make (Casting unit) Invulnerable Unit - Pause (Casting unit) Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 500.00 at (Position of (Casting unit)), dealing ((Real((Level of Blink (Neutral) for (Casting unit)))) x 200.00) damage of attack type Spells and damage type Normal Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl Wait 1.00 seconds Special Effect - Destroy (Last created special effect) Unit - Make (Casting unit) Vulnerable Unit - Unpause (Casting unit)
Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 500.00 at (Position of (Casting unit)), dealing ((Real((Level of Blink (Neutral) for (Casting unit)))) x 200.00) damage of attack type Spells and damage type Normal Special Effect - Create a special
Highlighted in red is where you problem lies, This trigger will work, because it multiplies the level of ability being cast(Blink in this case) times a constant value which gives it more damage, the more expereinced the hero, the more damage will accure.
Problem #2) I will edit with fix, currently busy atm
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum