New way of lumber production?
#1
Posted 31 May 2012 - 11:28 AM
I am sure there are WAY better ways to do this. I will take a look into it at some stage unless you have ideas.
But i'm pretty sure it does two things:
1. Lags, a level 4 lumber mill is producing a unit which requires a trigger to remove it and this is happening a LOT.
2. Map pings, it's really actually very annoying/distracting getting all these green circles appear on your minimap.
Not sure how it can be done, but i think it's worth a look.
#2 Zer0o
Posted 31 May 2012 - 12:48 PM
Its pretty simple... after 40, 20, 8, 4 seconds, the player gets 1 lumber for every lvl1, lvl2, lvl3 or lvl4 lumber mill he has.
PROS: - VERY simple trigger.
- No lag cuz no unit gets trained.
CONS: - Players get lumber even if the mill is still upgrading/getting built.
#3
Posted 31 May 2012 - 01:02 PM
a big one though, someone could get 30 "in building" lumber mills.
possibly variables for each player.
i was thinking along the lines:
event -> a building finishing upgrading/building.
condition -> building equal to lumber mill
action -> variable -> set variable x(player number) to variable x(player number) + 1
new trigger
trigger -> every 20 secs of game time
condition -> none
loop: for each variable y from 1-10 do:
action -> give x(y) wood to player(y)
the downside of this one is that it's no longer based on when a mill finishes and no lumber between these 20 second intervals. Also, new numbers would need to be given and it gets very complicated and ugly.
Edited by Bigheaded, 31 May 2012 - 01:02 PM.
#4 Zer0o
Posted 31 May 2012 - 01:31 PM
#5
Posted 31 May 2012 - 02:29 PM
I just accepted it since it worked and showed you the progress of it being produced.
I also made a map similar to FS a long time ago (never finished, never released).
Lumber system was like this:
Mill gives you x lumber per interval of x seconds.
Whenever it produced the lumber, a text would appear saying +x exactly like when you kill a hostile creep for gold in melee game, except it is colored green instead of yellow.
It was written in JASS script using periodic expiring timers (which is the most lag-free way that gives each lumber mill it's own periodic intervals of producing lumber depending on when the building was completed/upgraded).
Another system I can think of but never attempted is:
Lumber mill autocasts channeling and when it is complete you gain a lumber.
This way is somewhat similar to current one as it will also show the progress but does not train a unit.
#6
Posted 02 June 2012 - 06:20 PM
It may even solve a couple issues along with it, maybe unit stuck and desyncs
#7
Posted 23 May 2013 - 10:22 PM
Good idea . Which is already added in the latest versions . Weird language though xD
#8
Posted 23 May 2013 - 10:53 PM
triggers job
#9
Posted 24 May 2013 - 02:20 AM
I know. But can't understand the language . Oh well >.<
#10
Posted 24 May 2013 - 05:23 AM
Hahaha, I cannot understand that language.
#11
Posted 24 May 2013 - 05:26 AM
LOOL . Is that canadian language?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users