Jump to content

I need help with a ?script? again...


Recommended Posts

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

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...