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 )
Different abilities in day and night
Moderator: Cheaters
-
- Newcomer
- Posts: 18
- Joined: May 5th, 2008, 7:44 am
-
- Senior Member
- Posts: 112
- Joined: November 8th, 2008, 4:38 am
- Title: God
-
- Newcomer
- Posts: 18
- Joined: May 5th, 2008, 7:44 am
Re: Different abilities in day and night
Uhm... Sorry, but I don't even know what that is I'm kinda new to WC3 map modding
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Different abilities in day and night
I'd say use the
Game - The in-game time of day becomes Equal to 12.00
This uses the 24 hour clock, so configure it using that knowledge
Game - The in-game time of day becomes Equal to 12.00
This uses the 24 hour clock, so configure it using that knowledge
-
- Senior Member
- Posts: 112
- Joined: November 8th, 2008, 4:38 am
- Title: God
Re: Different abilities in day and night
Um... that doesn't solve anything.Arabidnun wrote:I'd say use the
Game - The in-game time of day becomes Equal to 12.00
This uses the 24 hour clock, so configure it using that knowledge
When it gives the ability, it gives it back as level 1.
Instead of using rawcodes, because you don't know how.
Make it based on levels, using If/then functions.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Different abilities in day and night
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
Do the same thing, but with night
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
Do the same thing, but with night
-
- Newcomer
- Posts: 18
- Joined: May 5th, 2008, 7:44 am
Re: Different abilities in day and night
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
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
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Different abilities in day and night
Did you do add Night Ability
Then Set Night ability to Day_Integer Level?
Then Set Night ability to Day_Integer Level?
-
- Newcomer
- Posts: 18
- Joined: May 5th, 2008, 7:44 am
Re: Different abilities in day and night
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:
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:
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 ^^
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:
Oh, and the set variable trigger looks like this:
Spoiler:
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 ^^
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Different abilities in day and night
Problem #1) The Blink Spell
Problem #2) I will edit with fix, currently busy atm
Spoiler: