JellyFishInLoop Posted April 3 Share Posted April 3 How can I make it so that when “activating” an enemy in battle, instead of dialogue, a spell is cast on him (without additional windows)? I want this to work only if the enemy has a certain magical effect at the moment of “activation”, but how to create the condition is already more or less clear to me. Link to comment Share on other sites More sharing options...
xkkmEl Posted April 4 Share Posted April 4 You can't "activate" someone in battle. Instead, you might use keyboard events (OnKeyDown) and find the target using the GetCurrentCrosshairRef. There are a number of details to get right, including refreshing your keyboard event onPlayerLoadGame, testing your additional conditions (like the presence of your spell/magic effect, and not triggering in the wrong circumstances (the keyboard event is not very discriminate; it will fire every time you hit the "E" key!) Link to comment Share on other sites More sharing options...
JellyFishInLoop Posted April 4 Author Share Posted April 4 8 hours ago, xkkmEl said: You can't "activate" someone in battle. Instead, you might use keyboard events (OnKeyDown) and find the target using the GetCurrentCrosshairRef. There are a number of details to get right, including refreshing your keyboard event onPlayerLoadGame, testing your additional conditions (like the presence of your spell/magic effect, and not triggering in the wrong circumstances (the keyboard event is not very discriminate; it will fire every time you hit the "E" key!) Thanks, I'll try to get into it! Link to comment Share on other sites More sharing options...
Recommended Posts