So, say I want certain spells to be unlocked when the good guy kills certain things how would I go around doing that?
I thought.
When which death recieved
If
Key 3 pressed.
But then realized key pressing can not be added into a script <.< Anyone got a way to make it so if he kills something, he can then use a certain spell?
Offline
Yes, you actually can add a key press in to a script.
<key[ 3 ]pressed?> in the sensing category.
Or do you mean automatically pressing a key? That you can't do.
What you can do is add a variable, like "can use spell?" and set it to true if he can, and false if he can't.
Then change your script for using this spell to look like this:
When key [3] pressed
If <((can use spell))=(true)> {
--do whatever the spell is here
/*Here, if you want to you can add a [set "can use spell?"] to (false)] block to make him only able to use the spell once.*/
}
Offline