Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
This is a Fairly simple System that Is completly unique (As far as I know).
You type:
-letter (Message you want it to say)
and it gives you an item that, when clicked, says that message.
This System No Longer Uses Custom Values!
This System could be good for Loaps or Rp's or Rpg's Or other stuff I geuss.
I have Added a Package System that pretty much Disguises an Item as a box, so that you don't know whats inside till you open it. (Another easy one that hasn't been done before...as far as I know)
[trigger=Command]Command
Command1
Events
Player - Player 1 (Red) types a chat message containing -letter as A substring
Conditions
Actions
Set UnitTemp = No unit
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
Then - Actions
Set UnitTemp = (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
UnitTemp Equal to No unit
Then - Actions
Hero - Create Letter and give it to UnitTemp
Hashtable - Save (Substring((Entered chat string), 9, (Length of (Entered chat string)))) as 0 of (Key (Last created item)) in Hashtable[/trigger][trigger=ReadLetter]ReadLetter
ReadLetter
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Letter
Actions
Custom script: call DisplayTextToPlayer(GetTriggerPlayer(), 0, 0, LoadStr(udg_Hashtable, GetHandleId(GetManipulatedItem()), 0))
[/trigger]
Update 1: Found a spot I messed up on. Fixed. Started on the currently not working Box system.
Update 2: Replaced Custom Values with a hastable
Update 3: Got Box System to work with Hashtables. <-(New Best Friend!)
Updates 4&5:
-Added Trigger Code.
Update 6:
Added to the best of my abilities what Bribe said (Didn't understand the command part) so I just got rid of the leak.
Update 7:
Fixed leak for good hopefully.
Update 8:
Simple bug Fix. (A Not equal was set to Equal!)
This is Problem Maker Pointed out.
IMPORTANT!!!!
Made it So that you can no longer team and private chat!
If you don't want an enemy to see something then send a Letter!
(NOTE: This Function may NOT be Imported to other maps!!!)
(Note: If you don't want players to see any chat what so ever, PM Me)
I Used This Tutorial for the invisible Chat: Tutorial
To get these Triggers into your map you should:
1) Go to File -> Prefrences -> General -> Check ON "Automatically Creat Unknown Variables While Pasting trigger Data" If you havent already.
2) Copy the 'Letter Coding' Folder into your map.
3) Enjoy : D
First Thing you should do After you get this into your map is:
1) Nothing, It should work Right away
To Bribe:
-I Apologize that this map has had so many problems bribe.
-The reason I did the condition that way was so somebody could customize it easier but I did what you said
-I Fixed what you said but the box part isn't really part of the code its more of a sidelines thing.
-Sorry took so long to respond I didn't know what you were talking about so I figured I shouldn't worry about it.
Maker, 18.07.2011:
Approved. I guess the idea is somewhat original and people have liked it so it could be useful. It's very simple though, you could add crypted messages so not every player can read it for example.
Maker, 18.07.2011:
Approved. I guess the idea is somewhat original and people have liked it so it could be useful. It's very simple though, you could add crypted messages so not every player can read it for example.
Well....uhhh...It can be used for a lot of things......like....Role Playing games. Yah thats it. But it could also just be a replacement for private chat, but its cooler cuz you have to give them the letter yourself..... : D
If your planning on using custom values, maybe import grim001's AutoIndex script. all you do is import it, no need to do anything else. Except you would need JASS NewGen Pack, which would is hard for newbies to use.. i think :S
It's very useful for many RPGs out there.. and I don't think it's used to chat with other people because there are more effective ways to do so..
you can easily expand your quests by simple transport jobs. Like I wrote a Love Letter for my Sweethear, could you bring it to her? And you'll get the letter, can read it after clicking on it, and you have an item that you have to carry to his Sweetheart.. so it's useful for Quests, and also other stuff
I have been thinking about something lie this, its a great idea, it would be useful in a game where chat is only sent to people who have there guy a certain distance from you, and then you could have a mail box in it.... well plus +rep great job.
I have been thinking about something lie this, its a great idea, it would be useful in a game where chat is only sent to people who have there guy a certain distance from you, and then you could have a mail box in it.... well plus +rep great job.
lol that would be epic. l imagine a war game, where whatever you say only reaches your allies if they're close. people would have to use the letter's to deliver messages to distant comrades. lol Just think if the messenger dies, the message is intercepted by enemy forces. +rep to my epic imagination
and after that player1 receives an item with the message the other player wrote to it
(could be useful for maps with custom chat systems, like the ones that show the message/text above their heads.. with those item-letters you could sent some PMs or out-of-view texts to this player.. and only for this player)
and after that player1 receives an item with the message the other player wrote to it
(could be useful for maps with custom chat systems, like the ones that show the message/text above their heads.. with those item-letters you could sent some PMs or out-of-view texts to this player.. and only for this player)
All right apparently I don't know the meaning of MPI (Not being Sarcastic). So could somone explain it to me?
I know that Mui is Multi-Unit-Instanceable meaning multiple units can use it at once but what is Mpi?
And what did the moderator mean by im not incrementing it?
I thought it meant increase in value but that doesnt make sense in the comment he made, cuz I did increase it in value.
Nvm mind I must have missed that wich is weird because, I tested it multiple times. Updating...
ok Fixed.
Wait, Does Mpi mean that its Mult-Player-Instancable? If so then the moderator is wrong because...it is...I Think. Help?
Ok 3rd edits the charm? I found a tutorial on Hastables and to be honest Im lost, I now understand it a little bit but...Its still pretty confusing.
THIS SPELL WORKS FOR EVERY PLAYER!!! (Granted, you need to add a little bit of code for each player, but i pointed that out Already, AND there is nothing i can do about it.
every 1 says custom values interrupt with another codes..
so just make a comment to not upload it if he uses another custom values system or it could cause some errors..
and check if the unit allready has a custom value when adding him..
then nothing bad could happend..
Or im wrong.. ;p im pretty sure thats gonna work o.o
Thanks to all the people giving Constructive Criticism
Anybody know how to make it so people cant see Players chat? I've been trying for awhile, but to no avail.
Okay Turns out making it so players can't see chat is Extremly Difficult so if anyone would like to do that. Upload it and I'll be more than happy to share the credits (And Rep. if you so Desire).
try looking in those ".j" files in your War3.mpq file.
I can't remember exactly which file it was.
There is something about changing the message to "Cheat Enabled!" when you activate a cheat.
You can set it to an empty string in your system.
Hope this helps (even a bit)
Someone has pointed out to me my absurd lack of observation. The triggers here need to be totally remade:
[trigger=Command]Command
Events
Player - Player 1 (Red) types a chat message containing -letter as A substring
Conditions
Actions
Selection - Sync selections
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units currently selected by (Triggering player) Matching ((Matching unit) is A Hero)) and do (Actions)
Loop - Actions
Hero - Create Letter and give it to (Picked unit)
Hashtable - Save (Substring((Entered chat string), 9, (Length of (Entered chat string)))) as 0 of (Key (Last created item)) in LS_Hashtable
[/trigger]
[trigger=ReadLetter]ReadLetter
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Letter
Actions
Custom script: call DisplayTextToPlayer(GetTriggerPlayer(), 0, 0, LoadStr(udg_LS_Hashtable, GetHandleId(GetManipulatedItem()), 0))
[/trigger]
@Catch_Ya
I didn't make it just because it didn't exist. I also made it because I got the idea and if I don't at least try it, then it makes me angry, because its a waste of imagination...
...The workings of my brain...
Hew hasn't updated the triggers on this site, but in the test map he removed that player group leak. Everything looks fine from what I can see. Hew, please update the triggers so users know what they have to c&p to get this to work.
There is instructions for installing in the Help/Readme. However I will put some text here aswell.
*Merged Post*
@Gopinich
-You can have more than one letter.
-I Disabled Team and Private chat so if you want to say something privately you have to send a letter.
-Read the whole description before complaining.
@Gopinich
-You can have more than one letter.
-I Disabled Team and Private chat so if you want to say something privately you have to send a letter.
-Read the whole description before complaining.
Hashtable - Save (Substring((Entered chat string), 9, (Length of (Entered chat string)))) as 0 of (Key (Last created item)) in Hashtable
Oh I see :S. I need to learn more about Hashtable.
I have an idea for you: If the target hero have full inventory, what happen? You should make a Mail Box for each player, send the letter to it and notice the player.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.