| 06-16-2005, 02:26 AM | #1 |
I can't seem to get this trigger to work. Anyone have any ideas? Code:
Environment - Create a 0.50 second Temporary crater deformation at (Center of (Playable map area)) with radius 512.00 and depth 64.00 Code:
For each (Integer A) from 1 to 1000, do (Actions)
Loop - Actions
Environment - Create a 0.01 second Permanent crater deformation at (Point((Load (String((Integer A))) of DeformationX from GameCache[1]), (Load (String((Integer A))) of DeformationY from GameCache[1]))) with radius (Load (String((Integer A))) of DeformationSize from GameCache[1]) and depth (Load (String((Integer A))) of DeformationHeight from GameCache[1])
Wait 0.01 game-time seconds |
| 06-16-2005, 08:24 AM | #2 |
From what I gather, you have an interesting map concept. But, rest aside, you probably have your game caches set up wrong, as a lot of people have loads of trouble with them.. and I don't know terribly much myself. Research it a bit. |
| 06-16-2005, 10:44 PM | #3 | |
Quote:
Ok. I'll check them when i have the time. |
| 06-17-2005, 02:34 AM | #4 |
Ok. I went though it and cleaned it up a bit but it's still not working. Anyone have any ideas what I'm doing wrong? Code:
Set Temp_Integer2 = 0
For each (Integer B) from 1 to 100, do (Actions)
Loop - Actions
Wait 0.01 game-time seconds
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Set Temp_Integer2 = (Temp_Integer2 + 1)
Game Cache - Store (X of (Random point in (Entire map))) as (String(Temp_Integer2)) of DeformationX in GameCache[1]
Game Cache - Store (Y of (Random point in (Entire map))) as (String(Temp_Integer2)) of DeformationY in GameCache[1]
Game Cache - Store (Random real number between 100.00 and 2000.00) as (String(Temp_Integer2)) of DeformationSize in GameCache[1]
Game Cache - Store (Random real number between -200.00 and 200.00) as (String(Temp_Integer2)) of DeformationHeight in GameCache[1]Code:
Set Temp_Integer = 0
For each (Integer B) from 1 to 10, do (Actions)
Loop - Actions
Wait 0.01 game-time seconds
For each (Integer A) from 1 to 100, do (Actions)
Loop - Actions
Set Temp_Integer = (Temp_Integer + 1)
Set Temp_Real2[1] = (Load (String(Temp_Integer)) of DeformationX from GameCache[1])
Set Temp_Real2[2] = (Load (String(Temp_Integer)) of DeformationY from GameCache[1])
Set Temp_Real2[3] = (Load (String(Temp_Integer)) of DeformationSize from GameCache[1])
Set Temp_Real2[4] = (Load (String(Temp_Integer)) of DeformationHeight from GameCache[1])
Environment - Create a 0.01 second Permanent crater deformation at (Point(Temp_Real2[1], Temp_Real2[2])) with radius Temp_Real2[3] and depth Temp_Real2[4]
Wait 0.01 game-time seconds |
| 06-17-2005, 05:29 AM | #5 |
I think there's a trigger called "Environment - Activate Last created weather effect" or something like that... Try finding something like that and put it after your deformation trigger. |
| 06-17-2005, 07:34 AM | #6 | |
Quote:
|
| 06-17-2005, 12:03 PM | #7 |
you realize this would take ages to complete right? a 0.01 game time wait lasts about 0.25 seconds. 0.25 x 1000 =... 250 seconds. |
| 06-17-2005, 09:37 PM | #8 | |
Quote:
This is just for testing. I'll going to be using a lot less. |
| 06-18-2005, 04:09 AM | #9 |
Guest | I've had troubles with putting wait functions inside for loops. Maybe it could have something to do with this... |
| 06-18-2005, 11:07 AM | #10 |
Wait function can be used without problems in for loops. Unit and Player group loops however, tend to f up. |
| 06-18-2005, 11:09 AM | #11 | |
Quote:
|
| 06-18-2005, 02:17 PM | #12 | |
Quote:
I'll change them to variable loops then. Just to be on the safe side. |
