Penultimate
New Member
- Reaction score
- 2
While I was playing around with the different Real's I discovered the GUI finction "math-tangent". I was intrigued. I used that function, used the world editor to create a simple trigger to display something interesting. If you use this simple trigger, you might see what I saw.
To note, the variables Tangent are Real's.
Another thing I played aorund with was the use of a function of Arithmetic. I made a simple GUI trigger to display division by zero. Here is the trigger.
To note, I found the Editor wont let the user do a Negative Square root, probably protecting the game from freezing since it is impossible to make a square root of a negative.
Anyway, if you find this little thread interesting, do comment. Maybe you could give an example as to what I posted was incorrect, or you could give another example of the World Editor's mathematical restrictions.
Trigger:
- create tangent
- Events
- Player - Player 1 (Red) types a chat message containing /tan(90) as An exact match
- Conditions
- Actions
- Set tangent = (Tan(90.00))
- Game - Display to (All players) the text: (String(tangent))
- Events
To note, the variables Tangent are Real's.
Another thing I played aorund with was the use of a function of Arithmetic. I made a simple GUI trigger to display division by zero. Here is the trigger.
Trigger:
- dividing by zero
- Events
- Player - Player 1 (Red) types a chat message containing /divZero as An exact match
- Conditions
- Actions
- Set dividing = (1.00 / 0.00)
- Game - Display to (All players) the text: (String(dividing))
- Events
To note, I found the Editor wont let the user do a Negative Square root, probably protecting the game from freezing since it is impossible to make a square root of a negative.
Anyway, if you find this little thread interesting, do comment. Maybe you could give an example as to what I posted was incorrect, or you could give another example of the World Editor's mathematical restrictions.