- Joined
- Dec 5, 2009
- Messages
- 846
Hello, Im doing a spell system. But i have 1 problem with it. I thought of using Q,W,E,A,S,D as hotkeys in this spell system. So 1/6 of the spells will held hotkey Q 1/6 W and so on...
When the hero learns the spell they will be put in a spellbook. When he clicks on the spell in the spellbook it will be added to where usually spells appear when they're learned. And you have to do a choice between Q,W,E,A,S,D.
If you choose like Q the spell will be added in a variable (Q) And we say the real hotkey is W of the selected spell, and this is detected by conditions. And now here comes the problem.. When you click Q it should first be a stop trigger to prevent the other spells that got Q as a real hotkey of running. And now the Q variable spell should cast. But the problem is that when you click Q there's maybe no other spell that got Q as a real hotkey out where you usually have your spells. So you can't always detect that Q click... Someone got any ideas?
When the hero learns the spell they will be put in a spellbook. When he clicks on the spell in the spellbook it will be added to where usually spells appear when they're learned. And you have to do a choice between Q,W,E,A,S,D.
If you choose like Q the spell will be added in a variable (Q) And we say the real hotkey is W of the selected spell, and this is detected by conditions. And now here comes the problem.. When you click Q it should first be a stop trigger to prevent the other spells that got Q as a real hotkey of running. And now the Q variable spell should cast. But the problem is that when you click Q there's maybe no other spell that got Q as a real hotkey out where you usually have your spells. So you can't always detect that Q click... Someone got any ideas?