• 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.

[AI] Daytime importance

Status
Not open for further replies.
Level 2
Joined
Sep 4, 2004
Messages
30
I have here (common.ai) something like:
Code:
set can_siege = has_siege and (air_units or (daytime>=4 and daytime<=12))
Why is daytime important when attacking? I never tought about daytime when I played. Is there anyone who can give a reason why blizz considers this?
And if yes why from 4 to 12, I dont get it.
 
Level 2
Joined
Oct 29, 2004
Messages
12
Because some Races have Advantages, and some don't.

example. Night Elves Moon wells only regain Mana at night, and Night Elf units can only regain health and mana at night.

and the 4 to 12 this is when you want it to attack, if you want it to only attack during day it would be from 1 to 12, and for night 12 to 24 <military Time)

I hope i was of help to you.
 
Level 2
Joined
Sep 4, 2004
Messages
30
I know what the code does, I dont know the reason why this was set. And this code applies to all races! So if the AI reaches an enemy base within 2 minutes, that means it will only attack during the day - even Nigh Elves! So there must be some race independent reason for this.

ps: I still dont know why the undead have no advantages during the night, they are not very sun-loving guys :)
 
Level 2
Joined
Oct 29, 2004
Messages
12
lol
ps: I still dont know why the undead have no advantages during the night, they are not very sun-loving guys

i sooo agree. they seem like the anti-sun ppl. not the night elves...

well i cant help much.
 
Status
Not open for further replies.
Top