Thursday, April 19, 2012

my functions wont work every time they're ordered to happen

Hi. The following functions are getting Run by another trigger every 10 seconds or so:


Code:
For each (Integer A) from 1 to 4, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player(playercount)) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 Blood Mage for (Player(playercount)) at (Center of regions[playercount]) facing Default building facing degrees
Hero - Set (Last created unit) Hero-level to round, Show level-up graphics
Selection - Select (Last created unit) for (Player(playercount))
Game - Force (Player(playercount)) to press the key o
Set playercount = (playercount + 1)
Set units = (units + 1)
Else - Actions
Destructible - Create a Summer Tree Wall at (Center of regions[playercount]) facing (Random angle) with scale 1.00 and variation 1
Set playercount = (playercount + 1)

"round" and "playercount" are both integer variables.

Now, the problem lies in the
Code:
Game - Force (Player(playercount)) to press the key o

part. it works fine until the hero is lvl 4, then it stops working. Any ideas?



edit: it seems that the more spells I add to the hero, the longer the trigger works. for example, i had a spell with 4 levels which he could learn, then I added shockwave and bash (3 levels each) and the trigger worked uptil lvl 7 instead of 4. weird|||"Game - Force (Player(playercount)) to press the key o"

UI keys instructions?

that does not work with letters.. or already is working in the last patch?

what happens when the key "o" is pressed?

No comments:

Post a Comment