Staredit Network

Staredit Network -> UMS Assistance -> EUD Conditions Help
Report, edit, etc...Posted by greenreaper on 2005-08-21 at 00:43:47
In Uberation 2.0.0.8, the trigger editor has an EUD Condition which is Text Display.

The "form" of the condition look like this:

TextDisplay(Line, Byte Position, Qualification, Text);

These are the parameters I have some questions with.

TextDisplay(Line, Byte Position, Qualification, Text);

First off, Line:
For Line, there is Line 1-11. So..in example. Pretend I'm playing a map and there are NO "blank" displaytext triggers or any text displayed or any other player's text. I type "Hello". My "hello" line would be Line 1, correct?

Secondly, Byte Position:
What...are they used for? (and how to use them)

Third, Text:
Can the "text" parameter only carry 4 characters max?

Well...that's about all the questions I have about the EUD Condition "TextDisplay".
(Oh, and sorry if this is in the wrong forum or if I didn't see a tutorial on this somewhere else.)
Report, edit, etc...Posted by LegacyWeapon on 2005-08-21 at 00:49:26
1) Yes
2) They are basically whatever is in that line. Each character being 1 byte.
3) Only 4 characters because we only compare 4 bytes.

In other words if your name is "greenreaper" on SC then byte 1 will be "g", byte 2 will be "r" and byte 3 will be "e". So basically 1 byte for each letter in your name. Then you have to include the ": " at the end of your name when you type something. So if you wanted to detect text for your name, you would want to detect on the 14 byte because that's where your name ends and where what you say begins:
"greenreaper: (what you say is here)"
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-21 at 01:03:07
But to detect a long phrase like "hello world", from a speaker that has say 4 characters in his name, you would do:

TextDisplay(1, 7, Qualification, "hell");
TextDisplay(1, 11, Qualification, "o wo");
TextDisplay(1, 15, Qualification, "rld");

?

If so, you should make it autogenerate. Also have an "Any" option for line, which writes 11 triggers, one for each line.
Report, edit, etc...Posted by LegacyWeapon on 2005-08-21 at 01:07:35
QUOTE(DT_Battlekruser @ Aug 21 2005, 01:03 AM)
Also have an "Any" option for line, which writes 11 triggers, one for each line.
[right][snapback]294598[/snapback][/right]
Why would you need that?

Running actions according to other lines may cause server splits because you don't know if someone else has whispered one of the players or something.
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-21 at 01:13:01
True, but it is possible to not get registered before it gets bumped.

You should at least allow more than 4 characters of text and auto-generate a set of conditions.
Report, edit, etc...Posted by greenreaper on 2005-08-21 at 01:22:33
Ooohh, I get it now. Thanks for helping me LegacyWeapon =D. But yes, that would be nice for lazy people (like me biggrin.gif ) if an auto-generator was implemented into UberEdit. By the way....what's a server split confused.gif
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-21 at 01:24:33
Half the players see the other half drop, and vise-versa.
Report, edit, etc...Posted by SpaceBoy2000 on 2005-08-21 at 04:15:57
Is there anyway to determine what the user typed? Because right now, it seems that you have to know the length of the player's name...which is a pain to trigger...
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-21 at 04:24:41
It is just reading the RAM for the screen text. Though you might be able to trigger a way to find the colon and space to note the end of a player's name.
Report, edit, etc...Posted by AFL-InuYasha on 2005-08-21 at 13:13:14
TextDisplay(Line, Byte Position, Qualification, Text);

wats the qualification stand for in this
Report, edit, etc...Posted by Pie_Sniper on 2005-08-21 at 15:49:24
At least, at most, or exactly.
Report, edit, etc...Posted by AFL-InuYasha on 2005-08-21 at 21:39:59
QUOTE
DT_Battlekruser -- Yesterday, 11:03 PM
But to detect a long phrase like "hello world", from a speaker that has say 4 characters in his name, you would do:

TextDisplay(1, 7, Qualification, "hell");
TextDisplay(1, 11, Qualification, "o wo");
TextDisplay(1, 15, Qualification, "rld");


in this case, would the qualification be replaced with exactly???
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-21 at 23:30:59
Yes, it's the only one that makes any real sense to use.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-22 at 18:15:28
So in order to detect somebodies name like Bob
you do TextDisplay(1, 0, Exactly, "Bob"); or TextDisplay(1, 1, Exactly, "Bob");
Report, edit, etc...Posted by LegacyWeapon on 2005-08-22 at 22:51:30
If you look at the program it should be bytepos 1-4
Report, edit, etc...Posted by Commanda_Panda on 2005-08-24 at 15:24:56
I made a account called "Fget" and did some triggs so if Fget ever talks he gets a messege but whenever i talk for the first time it NEVER works and it ALWAYS works the second time i talk...

Umm is anyone going to help me?...
Report, edit, etc...Posted by M_s4 on 2005-08-25 at 22:24:36
Whats qualification?
edit=-
Oh NVM i figured it out
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-26 at 22:35:02
Is Fget a C++/VB command? lol
Report, edit, etc...Posted by LegacyWeapon on 2005-08-28 at 09:09:14
QUOTE(Commanda_Panda @ Aug 24 2005, 03:24 PM)
I made a account called "Fget" and did some triggs so if Fget ever talks he gets a messege but whenever i talk for the first time it NEVER works and it ALWAYS works the second time i talk...

Umm is anyone going to help me?...
[right][snapback]297371[/snapback][/right]
Fget's message should be at byte 7 and up. His name alone would be "Fget: " so when you type something in it would be "Fget: asdf." If it still doesnt work, talk to DK about it. Perhaps he made an error in the uBeR@TiOn data files.
Report, edit, etc...Posted by dark_templar_99 on 2005-08-29 at 16:30:18
just to tell you, there is a bug... the first line is actually line 11. Then 1, 2 3....etc...
Report, edit, etc...Posted by Deathknight on 2005-08-29 at 20:50:56
It doesn't matter. The lines will be different based on what and when something was typed last.
Report, edit, etc...Posted by dark_templar_99 on 2005-08-30 at 14:39:11
I know it doesnt matter, but if you are the first person to type something and you want the trigger to work, you need to use line 11. After that, you have to type 9 or 10 more lines before it restarts to line 1 and the trigger will work again. I think if you find a way to RESET the lines then whenever someone types it will be a set line.
Next Page (1)