| 10-01-2003, 08:58 PM | #1 |
have a few trigger questions 1. How can i make it that if a player presses the up arrow the unit will move in the direction he is faceing untill the player lets go of it 2. how can i make it so a unit will attack ground if the player click on a region(and that ground being that region) 3. can an ability like Cold Arrows be used when attacking ground? 4. ....everything good ends in four dosent it? |
| 10-01-2003, 09:16 PM | #2 |
I haven't done any of this stuff, but I have some ideas that might help get you started until someone who knows what they're doing can help. ;) #1: Trigger 1: Event - Player - Keyboard Event - Player presses up. Action - Turn on Trigger 2: -- Trigger 2: Event - Periodic Event - Every .03 seconds. Action - Instantly move unit to [code that transfers the angle the unit is facing to coordinates a short distance away from the unit.] --- Trigger 3: Event - Player - Keyboard Event - Player releases up Action - Turn off Trigger 2. ------ #2: Event - Generic Unit Event - Unit is issued an order targetting a point Action - Order unit attack ground at target point of issued order. ------ #3. Dunno...try it and find out. ;) ----- #4. Yes. |
| 10-01-2003, 09:18 PM | #3 |
aight thx ill try it |
| 10-01-2003, 09:35 PM | #4 |
1 more qusetion, how can i make it that if a unit has no mana,and aqires a target, it will not be able to attack Edit: Nvm i got it, but heres a problem, whenever a player presses Up arrow, or trys 2 attack, the game closes all the sudden...wats up with that! |
| 10-01-2003, 10:19 PM | #5 |
Use a condition on the attack trigger to verify the unitstate mana is greater than whatever you want. As for your crashing, I'm not really sure what's causing it. I just typed up a quick version of a "holding up = moving up", and while it only worked once (guess triggers can only be turned on/off once), it didn't crash anything. I don't have time to look at it for now, but if you post it maybe someone else can help you...in the mean time, sorry if it was something I said! ://// |
