| 01-31-2004, 06:53 AM | #1 |
Im working on a spell called "Turn Back Time", which actually does exactly that. It saves all unit data in variables when you cast a "time beacon", and when you cast the turn back time spell it sets all units data (position, mana, hp) to the variables saved. It also removes any new units and revives units who died since you used time beacon. Now when i first tried this, the game didnt even work. None of the triggers started, so i exited and tried to figure out wats wrong. After a few minuts, i found out that its bcuz my integers are highest value. So i changed them to 50 (wont have more units) and tried again. The game starts, spawns player 1's units, and.... nothing more. It starts triggers that shud start after 5 sec and such, but it doesnt spawn other units / react to message commands etc. I though i might have done something with variables, so i wonder : is there any way to check for "broken actions"? When you move a trigger from one map to another, you dont notice that they dont have variables you need. So i though this might be the same..... Plz help, i can pay points if you figure out b4 (if i ever will :() me.... |
| 01-31-2004, 07:16 AM | #2 |
If your trigger stops abruptly midway through it, adding debug texts like "Display text for (All Players) with text (blah1)" in lots of places throughout your trigger will give you a good indication as to when it stops functioning, since the display text actions won't fire after your trigger breaks. 'If' functions are often a good place to start, if you have any. Hope that helps some. |
| 01-31-2004, 08:20 AM | #3 |
It would; if i didnt allready have that all over the script. For example, when you type "map" and your name is tester you will get full vision. I added a text message when you type it, and inside it. But when i type it, i only get the FIRST text message who shows before showing map. So i dont get a ****, why does it show text messages and the trigger doesnt work?? It worked perrectly fine before i started making spell.... Cant understand why its crapped now=( Gonna start a new map now anyways (cuz this one was alittle.... crappy), thx for helpin |
