| 01-13-2003, 02:12 AM | #1 |
Guest | what topic says, people keep saying stuff like use real and stuff for triggers what is 'Real' and what does it do?emote_sweat |
| 01-13-2003, 02:16 AM | #2 |
Ok, I think they are talking about numbers. There are integers, which are any number positive or negative that is a whole number. (no decimal or fractions) Then there are real numbers which are numbers that aren't negative. (these numbers can have decimals) |
| 01-13-2003, 02:19 AM | #3 |
It's a number, such as for countdown timers. They can't go negative obviously. Some functions require any number (integer) or a real number. That way, Blizz MAKES you use a real number for it. |
| 01-13-2003, 05:10 AM | #4 |
is this guy ok?emote_sweat btw real numbers CAN b fractions n/or negative. They'r aka floating- point numbers... don't u guys remember da mathematic classes?,....:gsmile: |
| 01-13-2003, 05:54 AM | #5 |
Guest | i posted this in Triggers and Utility Respository or whatever its called o well... move it...:ggani: |
| 01-13-2003, 08:41 AM | #6 |
in math its a number that can be expressed in a fraction 4/3, 4/7, .988989585, 5, 0, .111112222221111 are all real numbers. but Pi isnt since u cannot express it as a fraction |
| 01-13-2003, 11:34 AM | #7 |
no dude, that's the racional numbers. Pi is also a real number, the real number are the racional numbers (such as fractions) and the irrational numbers (such as Pi, or square root of 2) togheter, so they are pretty much all numbers we know about (save the square roots of negative numbers, these are the complex number guys). But in Warcraft, that doesn't make any difference at all, bc we can't place a 'Pi' as a number, we need to place 3.14, with is an aprocimation or the number, and this aprocimation is a racional number, so it really doesn't matter (but I had nothing to do with my life, so I decided to correct math mistakes on the internet forums where they don't make any difference at all, but I hope that sometime, some day, someone will be doing a math test, and they will remember "Hey, is Pi a real number?? That guy said it is, but the other said it isn't, so WTF??"). |
| 01-13-2003, 08:21 PM | #8 |
Guest | A real number is any rational or irrational number. a rational number can be expreassed as a fraction, p/q where p and q are intergers (whole numbers) and q is not equal to zero an irrational cannot be expressed as a fraction, for example the square-root of 2, or pi or any not repeating none terminating decimal. essentially this leaves out imaginary numbers. the only ones anyone with out a degree in mathematics will be familiar with is i, or the square-root on negative one, and infinity you can add a real number to an imaginary number to get vector quantities for theoretical math such as Quantum Physics, but I doubt anyone wants me to go any further. To answer the question in the post header, you can use reals to create more complex equations in your triggers. You can also use them the same as intergers for a lot of things if you feel especially saucy. To use a real variable to its fullest extent, you would have to be able to set up algebraic equations and use triggers with events or conditions that happen after the real number reaches a certain values. I would imagine that someone with a good math background, say a Junior at a university studying math could have some serious fun with the WE, I know I do :) |
| 01-13-2003, 09:17 PM | #9 | |
Guest | Quote:
yeah wrong forum. bleah. Not to be rude or anything but I saw you post "wrong forum" on some other post. How about this: If you don't like WHERE someone posts something, just ignore it. That way you don't waste time typing, you don't look like a jerk, and you don't waste space posting two words. ps: Let me know if this post is in the right place... |
| 01-13-2003, 09:26 PM | #10 |
*Finally remembers Math Classes* Ah, of course!! A real number. Here's an example of an "unreal number" square root of -1 . Or i |
| 01-13-2003, 10:26 PM | #11 |
hey wait do -number have square roots? because to get a - number you have to have - times a + so it can never be the same number right? |
| 01-14-2003, 02:10 AM | #12 |
A negative number can NOT be squared. That's why it can't be a real number. Check your calculator if you're not up on math. |
| 01-14-2003, 02:12 AM | #13 |
Guest | You can have negative squares. Like square of -4 is 2i Anyways, reals in Warcraft are values of properties, like mana remaining, HP remaining, ect. Something that isn't just a whole number. Like # of players is in integer, not a real. You can't have 4.567 players in the game. Its really just not too important, just remember, if you cant find the value as an integer in WC3, its a real. |
| 01-14-2003, 03:05 AM | #14 |
Um... HP and mana are whole numbers... |
| 01-14-2003, 03:39 AM | #15 | |
Guest | Quote:
They are actually decimals. You can have 456.6789 mana or hp. Use a leaderboard/trigger to check. |
