Setting up a Simple Conditional Event
First of all the conditional events are set from the window that opens when you click the button with the ? sign in Blackd Proxy.
The conditional event window looks like this:
A conditional event in Blackd is defined by two variables and, of course, a condition(operator). If the two variables meet the condition then the program will execute the action you tell it to.
Take for instance the following conditional, if my health is less than or equal to 70 then say ‘exura vita’. Let analyze it. In this case the first variable would be my health, the second variable would be 70, the operator (or condition) would be less than or equal to and the action would be exura vita.
In order to set a conditional event you must:
- Write your first variable on the space below where it says ‘thing1’. (In picture this space says ‘$myhppercent$’).
- Select the desired operator (explained below) from the drop down menu below where it says ‘operator’. (In picture this space says ‘#number<=#’).
- Write your second variable on the space below where it says ‘thing2’. (In picture this space says ’70’).
- Write the action on the space where it says ‘Action’. (In picture this space says ‘exura vita’).
- Click the bottom ‘Add as new conditional event’.
In Blackd Conditional Events there are 8 possible operators. The following is a list of this operators and an explanation of each.
- #number=#: Variable 1 is equal than Variable 2.
- #number>=#: Variable 1 is greater or equal to Variable 2.
- #number<=#: Variable 1 is smaller or equal to Variable 2.
- #number>#: Variable 1 is greater than Variable 2.
- #number<#: Variable 1 is smaller to Variable 2.
- #number<>#: Variable 1 is greater or smaller than Variable 2. (Not variable 2)
- #string=#: Variable 1 is equal to Variable 2 (In syntax. e.i. 01 #string=# 1 will not be true).
- #string<>#: Variable 1 is not equal to Variable 2. ( e.i. ‘Example’ #string=# ‘amp’ will be true).
Note: If the variables are number then choose one of the first six operators, if its a string (letters) use one of the last two.
Using ‘Delays’ and ‘Locks’
A delay is a the time it will delay the conditional from executing. For example if you want it to say ‘exura vita’ three seconds after your health is below 70 then you put 3000 in the box where it says ‘Delay action this time’. Remember that the time is in milliseconds, so one second is 1000.
A lock is a time frame in which the action cannot repeat itself. For example, if you are telling it to say ‘exana pox’ when poisoned but you want to give it time for the spell to have an effect in order to not call it again immediately after, you can set it to wait X seconds before allowing your character to say the spell again.
Remember to save your conditionals so you don’t have to make them each time you log or change character.
For a complete guide of all the variables, such as $myhppercent$, please go to this page. (Including Poisoned, Paralyzed, Drunk, etc).
Please note that the actions in conditional events are not limited to just saying messages as it can also execute exiva commands. For further information about exiva commands, please go to this page.
Hope it helped.