| 02-20-2005, 01:29 AM | #1 |
Hey guys, I'm working on a shooter map right now. Basically its based on Battlefield 1942, so depending on your class you have different ammo amounts. I have triggers set up so that when your unit enters the map (and thus is created) his owner gets lumber (clips) based on the character type. I got this working, and I also set it up so that you couldn't attack unless you had gold (ammo). I also managed to make it so that when "smart"-ing a unit (not considered an "attack" therefore not prevented by lack of ammo) got turned to a move when you tried it w/out gold. I got a "Reload" ability working, and got grenades working (create a unit at the position, blah, 2 second experation timer, blah, AOE death, blah). I fixed the Heal and Repair, as well as the Bazooka. I had it so you could only throw 3 grenades, AND I got it so you could reload your lumber by standing next to a reload barrel. Suddenly, NONE of it works. The Bazooka works still, because that's just an ability. But you can't throw grenades, you don't have limited (5) bazooka shots, you can shoot without gold, the reload station doesn't reload, you don't start out with the normal amount of clips, NOTHING works. Is there some feature that could have disabled my triggers? Because everything non-trigger related seems to be working, while all of my triggers (none of them are disabled, or anything) are defunct. If you guys need any more data (I think I've given you a lot) let me know. I REALLY need help on this because I spent a good amount of time working on this and I so don't want to start over if something is unfixable. |
| 02-20-2005, 02:31 AM | #2 |
You will need to provide us with the map if we are going to be able to figure out your problem? |
| 02-20-2005, 02:32 AM | #3 |
If your triggers ceased to work, it is because of something you did. You will need to add debug statements for each thing that prints out the values of variables at different stages in your triggers and figure out where the problem is occuring. Once you do that, you must figure out what is at fault at that location. This may or may not take awhile, so get started. |
| 02-20-2005, 02:48 AM | #4 |
Yeah, thx guys so far (that little bit about checking everything helps). I *did* do that, because otherwise how would you know how many grenades you had left? So when I do "throw grenade" or "launch bazooka" nothing appears--even though it should say "x Grenades Left". That's how I first saw the problem...when I did the Bazooka, nothing appeared. I'll make sure that the Initialization trigger runs. Here's the link to my map: http://home.earthlink.net/~matthewmc.../bf1942map.w3x EDIT: Oh, and I tested the Initialization trigger and it didn't say "Initialized" to all players like it should. I also undid the triggers I had created since the Grenade one (specifically the Dynamite, Mine and Bazooka triggers, which I hadn't tested until I'd done them all). WHAT IS GOING ON HERE??? Is there a setting that disables all triggers, or prevents them from detecting events? |
| 02-20-2005, 11:34 PM | #5 |
Srry for the bump, but I really need help. What's going on? Anybody know? |
| 02-21-2005, 02:03 PM | #6 |
The triggers that have event 'Map Initialisation' shouldn't display any text as their actions are performed at map loading screen. Timers won't work if started at Map Init (Use Event - Time Elapsed = 0.00 sec) Also, you can set starting values for most variables in the variable list. And threads with a more exact name than w..t..f.. would attract more people eager to help you. |
| 02-22-2005, 02:38 AM | #7 |
Lol, well thx for that info. But basically, the problem was discovered by one of my clan members--my array sizes were way too big. Well, that's what he says--I'll check it out. Thx to anyone who helped. |
| 02-22-2005, 06:33 AM | #8 |
Pity that doesnt even make sense... unless you arent refrencing some of the values when you should be or something... I think its much more likely that D0nk1ckh0t is correct in this case. |
