| 03-21-2005, 09:13 AM | #1 |
I have two things which bothers me, which prevents my map to be awesome. I want that the multiboard will show elapsed game time and i have no idea how to make it show it. Another thing, is that i have hills on each base, and i want to spawn units in the base and make them go on the hills. the problem is that when they are ordered to move there, they dont, they just go to some weird places. how can this be fixed? thanks |
| 03-21-2005, 11:31 AM | #2 |
For the elapsed time Code:
Time
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Seconds = (Seconds + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Seconds Greater than or equal to 60
Then - Actions
Set Seconds = 0
Set Minutes = (Minutes + 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Minutes Greater than or equal to 60
Then - Actions
Set Minutes = 0
Set Hours = (Hours + 1)
Else - Actions
Set TheTime = (((String(Hours)) + (: + (String(Minutes)))) + (: + (String(Seconds))))All of those variables are integers except TheTime which is a string. As for the other thing... That looks like an AI problem. The question has been asked before but I cant remember the answer :P, so try and find it yourself (because I gotta go soon) |
| 03-21-2005, 12:47 PM | #3 |
Use AI - disable unit guard posistions despite what it says, it seems to affect units created after the start. |
| 03-21-2005, 07:25 PM | #4 | |
Guest | Quote:
I had a similar problem and the unit always seemed to run to the "start location" (EX. Player 12 spawns unit it's ordered to go somewhere but it goes to start location) Listen to elven ronin and johnfn they seem to know more than I do about this kind of stuff! |
| 03-22-2005, 02:46 PM | #5 |
wow johnfn that is some impressive trigger, gotta have brains to do that. thanks alot, you saved me alot of hours of work :) about the AI.. ill try it out. thanks alot for all the help guys, you're doing an amazing job helping ppl out. without this forum, my map would never have been perfected. |
| 03-22-2005, 02:50 PM | #6 |
btw john, wouldnt that make the seconds show as "1" instead of "01" ? it'll show 1:1 which is confusing instead of 00:01:01 for example, no? |
| 03-22-2005, 04:02 PM | #7 |
Correct me if I'm wrong, but I don't think it can count it with the two digits when the first one is 0 without a . in the beginning. (i.e it can count .01 + .01 = .02, but not 01 + 01 = 02) |
