- Joined
- Aug 31, 2009
- Messages
- 776
Ok, let me introduce the problem first, as this isn't a straight forward quick-reply problem.
I'm making a map called Magi Deathmatch Arena - it's a projectile based free-for-all death match game where items are gathered from the floor to learn your spells and then you basically shoot other people and kill them. Simple.
Now, the thing I want to add to this map before I officially release it is an AI.
I've done the majority of the groundwork for the AI now: It can walk around the map, gather items, learn spells, use items and even change personality from a defensive gathering personality to an aggressive combat personality depending on the situation.
Now.. the problem is, it simply will not cast ANY spells at all. Even though all the spells are based on Channel and given different order strings (Stampede, Silence, Shockwave, Stasis Ward etc.) that are appropriate order strings for a point target, it still refuses to work.
What's more is, out of absolutely freaking nowhere my Firebolt projectiles just stopped working.
Prior to adding this AI system, every spell worked absolutely perfectly, now suddenly without even touching the projectile triggers, Firebolts don't work.
This is how they SHOULD work:
- You shoot a firebolt in a straight line. If it hits, the target is set on fire.
- If the target is already on fire then the damage is instant instead of over time.
What is now happening:
- The target gets the fire graphic, but is not added to the "Fire" unit group, and hence no damage is dealt by the fire.
- If the target is already on fire, it applies ANOTHER fire, but still doesn't add them to the unit group or deal any damage.
As these issues are complex, there's only one way to get some help. The map is attached, and my eternal gratitude and as much rep as I'm actually capable of applying will be given to whoever manages to solve both problems.
I've included trigger comments to point you out to the "broken" sections of code, as well as a test trigger that will periodically tell you with Game messages the current target of Player 2 Blue (if it's an AI that is) and its AI state (1: Gather, 2: Combat, 3: Search) to help with finding the problems.
Map is attached, and again, many many thanks to whoever can help in this. You can change as much as you like as long as it fixes the 2 problems described above.
PS: I know some triggers may be leaky in places, I'm still working on that.
EDIT: Attachment removed as problem is resolved.
I'm making a map called Magi Deathmatch Arena - it's a projectile based free-for-all death match game where items are gathered from the floor to learn your spells and then you basically shoot other people and kill them. Simple.
Now, the thing I want to add to this map before I officially release it is an AI.
I've done the majority of the groundwork for the AI now: It can walk around the map, gather items, learn spells, use items and even change personality from a defensive gathering personality to an aggressive combat personality depending on the situation.
Now.. the problem is, it simply will not cast ANY spells at all. Even though all the spells are based on Channel and given different order strings (Stampede, Silence, Shockwave, Stasis Ward etc.) that are appropriate order strings for a point target, it still refuses to work.
What's more is, out of absolutely freaking nowhere my Firebolt projectiles just stopped working.
Prior to adding this AI system, every spell worked absolutely perfectly, now suddenly without even touching the projectile triggers, Firebolts don't work.
This is how they SHOULD work:
- You shoot a firebolt in a straight line. If it hits, the target is set on fire.
- If the target is already on fire then the damage is instant instead of over time.
What is now happening:
- The target gets the fire graphic, but is not added to the "Fire" unit group, and hence no damage is dealt by the fire.
- If the target is already on fire, it applies ANOTHER fire, but still doesn't add them to the unit group or deal any damage.
As these issues are complex, there's only one way to get some help. The map is attached, and my eternal gratitude and as much rep as I'm actually capable of applying will be given to whoever manages to solve both problems.
I've included trigger comments to point you out to the "broken" sections of code, as well as a test trigger that will periodically tell you with Game messages the current target of Player 2 Blue (if it's an AI that is) and its AI state (1: Gather, 2: Combat, 3: Search) to help with finding the problems.
Map is attached, and again, many many thanks to whoever can help in this. You can change as much as you like as long as it fixes the 2 problems described above.
PS: I know some triggers may be leaky in places, I'm still working on that.
EDIT: Attachment removed as problem is resolved.
Last edited: