Forum
 
Go Back   D3scene > Hot Games > Warcraft 3 forum > Warcraft 3 Custom Maps > Editing

How to: Create Chat over Unit

This is a discussion on How to: Create Chat over Unit within the Editing forum part of the Warcraft 3 Custom Maps category; Text over Unit Tutorial Introduction The way this tutorial works is that it will put your chat over your unit... ...

Welcome on D3scene.com! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with 35000 other registered members. Downloads, user profiles and some forums can only be seen by registered members. After you create your free account you will be able to customize many options, you will have the full access to new hacks, latest cheats and last but not least will see no advertisements at all. We would love to see you around in our community!
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-02-2008, 10:07 PM
Marcdk's Avatar
Gmod/Contributer
 
Join Date: May 2007
Location: Denmark
Posts: 1,416
Reputation: 1428
Rep Power: 9
Marcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud of
How to: Create Chat over Unit

Text over Unit Tutorial


Introduction

The way this tutorial works is that it will put your chat over your unit...
also adding a name infront (optional)
It works by using floating text and variable arrays

The Triggers:

II. Setting up the chat system

- 1 called Init and one called Talking

Creating the "INIT" trigger will setup the triggers for map initialization.

Once you created the "INIT" trigger, create a variable, if you are new to variables click the glowing orange "X" at the toolbar.

Now create a unit variable with an Array.

Arrays store extra information for several units.

Okay, create a "UNIT" [Array] Variable named PlayerUnits or whatever you want to name it. And now go back to your trigger make a number for each players (automatically done in the next trigger) 1-12 or whatever you want.

Set the variable to the unit for the player you want them to chat over.

Your trigger should at least have something like this:



II. Setting up the chat system

Now as I think you have created a trigger for the chat to be operated on.

Now add this, which will turn on the trigger:

EVENTS
Player - Player 1 (red) types in . as a substring
CONDITIONS
(substring((Entered Chat String) 1, 1) Equal to .
ACTIONS
Floating Text - Create a floating text that reads (((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 (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.

If you're having problems reading the text, then here is a picture showing you how it looks like



And some more help, Here is how the floating text is coded:


If this worked, it should look like this:



Some credits goes to: ban-lord
-------------------------------------------------

I hope you liked it, and that its usefull Enjoy!
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
  #2  
Old 06-02-2008, 10:25 PM
hendricius's Avatar
Administrator

 
Join Date: Feb 2007
Location: Hamburg, Germany
Posts: 5,125
Blog Entries: 16
Reputation: 1148
Rep Power: 9
hendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud ofhendricius has much to be proud of
Another awesome guide by you . Thanks.
Reply With Quote
  #3  
Old 06-02-2008, 10:43 PM
Banned User
 
Join Date: Jul 2007
Posts: 2,476
Reputation: 1076
Rep Power: 0
GodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud of
awsome dude , I really appreciate your work +rep
Reply With Quote
  #4  
Old 06-02-2008, 10:49 PM
Marcdk's Avatar
Gmod/Contributer
 
Join Date: May 2007
Location: Denmark
Posts: 1,416
Reputation: 1428
Rep Power: 9
Marcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud of
Quote:
Originally Posted by GodOfWar View Post
awsome dude , I really appreciate your work +rep
Thanks Really much apreciated
Reply With Quote
  #5  
Old 06-02-2008, 10:55 PM
Banned User
 
Join Date: Jul 2007
Posts: 2,476
Reputation: 1076
Rep Power: 0
GodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud ofGodOfWar has much to be proud of
No problem Always glad to give a nice feedback
Reply With Quote
  #6  
Old 06-02-2008, 11:04 PM
Marcdk's Avatar
Gmod/Contributer
 
Join Date: May 2007
Location: Denmark
Posts: 1,416
Reputation: 1428
Rep Power: 9
Marcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud ofMarcdk has much to be proud of
Quote:
Originally Posted by GodOfWar View Post
No problem Always glad to give a nice feedback
And thats highly apreciated, trust me, getting comments for a tutorial like this (and all the other guides) is just great,
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
Reply

Tags
floating text, trigger, tutorial, world editor

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make Your Own Maze Map In World Editor Marcdk Editing 20 11-04-2008 01:54 AM
How to make your own WoW server (TBC!) Xirus WoW Private Server Info & Help 569 10-21-2008 11:23 PM
Cheat Integrator Cornelius Warcraft 3 Hacks 23 09-08-2008 10:18 AM
Ghoul Bot Free KaMiKaZe Warcraft 3 Bots 199 08-07-2008 07:42 AM
i need help <.< im1337 WoW Private Server Info & Help 0 06-25-2007 03:52 AM


All times are GMT +1. The time now is 03:30 AM.


vBulletin style developed by Transverse Styles
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

»About D3scene »Navigation