How to: Create Chat over Unit

Sirroelivan

Gunnerkrigg Court
Reaction score
95
?Does this trigger don't just work when the typing player actually types a "."?

Explanation plz
 

Blackveiled

Formerly, Ban-Lord
Reaction score
157
Sirroelivan said:
?Does this trigger don't just work when the typing player actually types a "."?

Explanation plz


You can make it work with a period anywhere, but you probally should do it with a period infront, by choosing 1,1 as the period and as the chat 2, 45 characters on a substring also to limit their chat, but not too low or you will never get anything to read off of it
 

Ambeco

New Member
Reaction score
2
correction:

Sirroelivan said:
?Does this trigger don't just work when the typing player actually types a "."?

Explanation plz
It should read:
Code:
Chat
    Events
        Player - Player 1 (Red) types a chat message containing . as A substring
The ! was incorrect.
 
W

waarhog

Guest
corvusHaunt said:
You should set the unit whenever someone selects it. Something like:

Code:
Event
 Selection- Player selects a unit
Condition
 Triggering Player = Owner of selected unit
Action
 Set Units[Player number of triggering player] = Selected Unit

Which can make it alot more dynamic.


Using this method u need to have a unit selected ... the other way you dont .
 

KillerChi

New Member
Reaction score
20
Is there a verisoin where fot example for my game Puppy Ownnership this would be nice if it was permenant(my bnet username is lordneptune)
lordneptune:-dogtagZorro
and in the game I want it to permentantly say "Zorro"Over the unit can you give me verisoin of that trigger?
 

Ambeco

New Member
Reaction score
2
I've never tried attaching text to a mobile unit before. I don't know offhand if it's possible, you may have to simply have it have a .5 second lifespan, and add:
wait (0.5) seconds
trigger-call trigger(this trigger)
to the end so it refreshes itself twice a second.
 

Heavy-Gear

New Member
Reaction score
7
Nice Tutorial, Very to the point A+! and Waarhog the whole point of that new trigger is that you do have a unit selected
 
S

shadowslayer

Guest
how do you...

How do you do | symbol? ( I know i just did it but that was copy paste):confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused: :confused:
 
M

Mythic Fr0st

Guest
btw

nice, it is possible to remove the chat entered by a player, you know...

and show only floating text or game messages, without going to obs or private chat etc..
 
I

ixmike88

Guest
You can hide text that is being typed in game, but the downfall is it that you are unable to toggle it.
 

Blackveiled

Formerly, Ban-Lord
Reaction score
157
Some bad things about floating text, is it will screw around with your game's selection. But that doesnt happen unless you have like a hundred floating texts :p...which is why you should use variables :D
 

Cilla

is watching you! Ahh, fresh meat!
Reaction score
39
All who are interested in his Tut might be interested in this one too.
Using both would be a good combination.
 

Anachron

New Member
Reaction score
53
Thanks , I used it.
For better chats make this:

Ev: ELapsed game time is 0.75 seconds
Co://
Ac:
Set Colour_Player[1]=|CFFFF00 ( for example )

Then display the textlike in tutorial but a little bit diffrent:
Floating Text - Create a floating text that reads (PlayerColour(PlayerNumberOf(TriggeringPlayer)))+(((Player name of Triggering Player) + |r + (substring(entered chat string) 2, 40)))) above PlayerUnits [Player number of (triggering player)] with Z offset 0.00, size 8.00, color (100.00% and 100.00% and 100.00%) and 0% transparency.
Floating Text - Change the Lifespan of (Last Created Floating Text) to (Real(Stringhlengh))x0.35) seconds.

This will make you display a long text longer than a 1 letter text. You will also see the player names in the original colour of the player.
 
E

Enigma

Guest
Can sombody help me i am working on a RPG map and i want to add this little programm into my map i tried the tutorial but there are some things i dont understand 1) what does this means: Set PlayerUnits[1]=Novice 0025 <gen>
i dont understand what he means with novice there isnt a command called novice and 2) Floating Text - Create floating text that reads ((|cffffcc00 + ...
but how do i get |cffffcc00 is it a string that is tipped in or is it a command ...
hope u guys can help me cause i really want to add this in my map thx a lot yours enigma
Ps.: when somebody can send me the file where this programm is included it would be great
 

Ambeco

New Member
Reaction score
2
Set PlayerUnits[1]=Novice 0025 <gen>

Where it says "Novice 0025 <gen>", he selected the button labeled (something along the lines of) "select unit" and then clicked on a unit apperently called a novice. You can select a grunt or any other unit on your map.

Floating Text - Create floating text that reads ((|cffffcc00 + ...

the "|cffffcc00blahblah|r" is a color code that you have to type in. THe |c starts it and the |r ends it. The first 8 letters after |c determines the color. Find one of the posts about the colors if you have more questions about that.
 
E

Enigma

Guest
OK thank you very much ambeco now it works but i have another big problem. My Heros get created by a dialog box but how can i choose them for the playerunit variable when they aren't on the map ? I tried to set the playerunit variable from units to unit type but then the floating text didnt recognize the variable ! thanks for the replies engima oh and |_ sexy time _|
 
S

schecter33

Guest
Wouldnt this make more sense?

EVENTS
Player - Player 1 (red) types in <Empty String> as a substring
CONDITIONS

ACTIONS
Floating Text - Create a floating text that reads (((Player name of Triggering Player) + |r + (substring(entered chat string) 1, 40))) above PlayerUnits [Player number of (triggering player)] with Z offset 0.00, size 8.00, color (100.00% and 100.00% and 100.00%) and 0% transparency.
Floating Text - Change (Last Created Floating Text): Disable Permanence
Floating Text - Change the Lifespan of (Last Created Floating Text) to 3.50 seconds.
Floating Text - Change the fading age of (Last Created Floating Text) to 0.00 seconds.
Floating Text - Set the velocity of (Last Created Floating Text) to 15.00 to 90.00 degrees.

This way all of your chat goes to floating text, and you don't need to use a .
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top