Quick question about custom actions
SharkAttack
05 Jun 2006, 01:21I'm brand new to QDK and I'm still learning a lot, but I'm trying to create a custom action.
Basically when the player kicks the object, they win the game.
I added an action called "kick" and under Script, I have it set to make the player win, but when I run it and type "Kick [insert object here]" it acts like i typed an unrecognizable action.
What am I doing wrong?
Basically when the player kicks the object, they win the game.
I added an action called "kick" and under Script, I have it set to make the player win, but when I run it and type "Kick [insert object here]" it acts like i typed an unrecognizable action.
What am I doing wrong?
Arbutus
05 Jun 2006, 02:11Actions are script commands that you associate with an object, room or object type. For example, action Eat for objects of type Edible.
I think what you want to do is add a custom command. Game: Properties: Global Settings: Edit Custom Player Commands. Add "kick doodad" (if this is the exact winning phrase) or "kick #@object#" if the player will be kicking different objects. Then add your script there.
I think what you want to do is add a custom command. Game: Properties: Global Settings: Edit Custom Player Commands. Add "kick doodad" (if this is the exact winning phrase) or "kick #@object#" if the player will be kicking different objects. Then add your script there.