| 05-23-2004, 11:15 AM | #1 | |
ok, in my map, i want it so u can like control a building. ever 10 sec, i get 1 lumber. how do i do that with out doing it like this. Quote:
and i dont want to do this for all the players (12) and for each tower! how? the tower or not theirs all the time. Plz help me! :\ |
| 05-23-2004, 11:57 AM | #2 |
Just make something like this. First you have to make a unit variable. Trigger 1 Code:
Events: Map initialisation Actions: Set unit_array[1]=tower 1 Set unit_array[2]=tower 2 Set unit_array[3]=tower 3 Set unit_array[4]=tower 4 Trigger 2 Code:
Events: Every 10 seconds of game time Actions: For A from 1 to 4 do actions Give 1 lumber to the owner of unit_array[for loop integer A] |
| 05-24-2004, 03:23 PM | #3 |
hmmm.... looks hard but ill try. wut u mean "For A from 1 to 4 do actions" im a noob at WE or at least triggering so i might need more help tho. im try now. .................... ................................. ... well, i think i did it.im trying it now. but i have to do that with all the towers and not for each player right. kool. if u could, can u make a map so i can see it. not to hard, just simple and wut u said so i can see. ill give u credit! :) Thanx |
| 05-24-2004, 04:02 PM | #4 |
Basicly you must store all your towers in an array and then you need to run a for loop to give 1 lumber to the owner of the tower. |
| 05-25-2004, 05:32 AM | #5 |
lol. nice try. Thats just like "aiofhweohaioghmawoit" to me. No diff. I young and inexpriance in the world of triggering. Thats stinks. hmm.... |
| 06-17-2004, 02:35 PM | #6 |
cant do it. I dont know wuts wrong! i look at yours like 10 times but i cant find wuts wrong... Now i get wut your trying to do but still... |
| 06-17-2004, 10:28 PM | #7 |
Go to the Variable editor, add a variable, name it whatever you want, and make it a Unit variable, then click the array check box. Now, go into the trigger editor, make a trigger, set the event to Map Initialization and do a Set Variable. Code:
Set *TowerVar*[1] = Watch tower 1(gen) Now, make a new trigger, and give it the event - Code:
Every 10 seconds of game time Click on that, and change the first number to 1, and the last number to however many towers there are. Click on the word Action in the window, and change it to - Code:
Player - Add 1 to Owner of *TowerVar*[Integer A] current lumber Hopefully you understood all that.. |
| 06-29-2004, 01:05 PM | #8 |
grrrr.... not working... here aew some screeen shot to see if i did anything wrong... and if anyone would be kind enough to make a 1 min map for me and let me look at it, that would be great! ![]() |
| 06-29-2004, 02:33 PM | #9 |
what is "theONE"? didnt you store your towers in the tower[array] variable. maybe use owner of toer[integer A] instead of theOne just an idea.... |
| 06-29-2004, 08:46 PM | #10 |
"theone" is the name i nameed it so i remember its THAT one! i have to name it "tower" ? thats stupid! plz help me! :( |
| 06-29-2004, 10:49 PM | #11 |
Just do this: Event- every 10 seconds on the game Action- Unit group- pick every units on playable map area matching unit-type of matching unit is (unit type of your tower) then do 1 lumber to owner of picked unit ![]() |
| 06-29-2004, 10:52 PM | #12 |
Elthanor, seriously, go take a basic programming course before you try this. |
| 06-29-2004, 11:13 PM | #13 |
I have no real programming knowledge whatsoever, besides "wc3 programming" and all of that i have learned by myself. He have no need of a programming course but and IQ over 90 is recommended. If he's from a country who haven't got English as a second or native language, like Sweden or USA, It's acceptable. |
| 06-30-2004, 06:11 AM | #14 |
wut? wut in the world did milkman say? and Srry th15, im a noob at this and i know your not! lol. plz be nice. :8 cant anyone plz just show me a screeen shot OR a map for pitsake! IF i were a "wc proggramer" and if this is easy for me, then ill try help them with a map. lol! no pressure. :> |
| 06-30-2004, 09:08 AM | #15 |
wut wut wut wut wut wut wut wut dont use that word couse it is no word, its idiotic |
