How do Keyboard Events Work?

jpres

New Member
Reaction score
15
Code:
Untitled Trigger 001
    Events
        Player - Player 1 (Red) Presses the Up Arrow key
    Conditions
    Actions
        Animation - Change Peasant 0000 <gen> flying height to ((Current flying height of Peasant 0000 <gen>) + 50.00) at 0.00

Code:
Untitled Trigger 001 Copy Copy
    Events
        Player - Player 1 (Red) Presses the Right Arrow key
    Conditions
    Actions
        Animation - Change Peasant 0000 <gen> flying height to 500.00 at 0.00

Neither of these did anything - Help?

I've never used this before.
 

Tom Jones

N/A
Reaction score
437
Did you perform the fly trick on said peasant, or did you change its movement type from foot to fly?
 

jpres

New Member
Reaction score
15
Did you perform the fly trick on said peasant, or did you change its movement type from foot to fly?


Lol what is the fly trick?

Edit: I'm aiming for getting the guy to jump onto higher elevations - the problem is well doing that. I don't want him to be able to just walk up, but he has to jump up. Any ideas?
 

Tom Jones

N/A
Reaction score
437
If you add/remove a morph ability with a flying unit as the alternate unit to a unit, that unit will now able to fly:
Trigger:
  • Actions
    • Unit - Create 1 Footman for *Someone* at *Somewhere* facing Default building facing degrees
    • Unit - Add Storm Crow Form to (Last created unit)
    • Unit - Remove Storm Crow Form from (Last created unit)
    • Animation - Change (Last created unit) flying height to 200.00 at 0.00
 

jpres

New Member
Reaction score
15
If you add/remove a morph ability with a flying unit as the alternate unit to a unit, that unit will now able to fly:
Trigger:
  • Actions
    • Unit - Create 1 Footman for *Someone* at *Somewhere* facing Default building facing degrees
    • Unit - Add Storm Crow Form to (Last created unit)
    • Unit - Remove Storm Crow Form from (Last created unit)
    • Animation - Change (Last created unit) flying height to 200.00 at 0.00


Is there any way to make it work so I can have it like a jump or no? I've seen 1 map where a guy did it, but it's protected.
 

Volkof

Well-Known Member
Reaction score
31
If you want to find out whether the trigger fires, add a Game Text Action
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top