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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Letter System.w3x
Variables
New Letter Coding(Hashtables)
Help/Readme
Melee Initialization
ReadLetter
Command1
New Box Coding(Hashtables)
Help/Readme
This is a Working Failure
PutItemInBox Copy
TakeOutItemFromBox Copy
PurchaseItemRandomization Copy
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
Hashtable
hashtable
No
IntTemp
integer
No
ItemTemp
item
No
PlayerTemp
player
No
StringTemp
string
No
TempGroup
group
No
UnitTemp
unit
No
By MasterDragons
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
Please Note that the part about not being able to see team and private chat cannot, I Repeat CANNOT, be imported to a different map.
If you want to do it for your map go to this site:
To get these Triggers into your map you should go to this site:
http://www.thehelper.net/forums/showthread.php/51307-How-to-Hide-Entered-Chat-Messages
This is some very Simple coding but it has never been done before so I thought it would be cool.
Any GOOD Suggestions on how to make this better would be appreciated.
Credits Please.
Your Welcome,
MasterDragons.
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Game - Display to (All players) the text: Type:-letter <The Message you want it to say>You will be given an item. Click it to read it.Have Fun.
Hashtable - Create a hashtable
Set Variable Set Hashtable = (Last created hashtable)
ReadLetter
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Letter
Hashtable - Save (Substring((Entered chat string), 9, (Length of (Entered chat string)))) as 0 of (Key (Last created item)) in Hashtable
Command1
Events
Player - Player 1 (Red) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Player - Player 2 (Blue) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Player - Player 3 (Teal) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Player - Player 4 (Purple) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Player - Player 5 (Yellow) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Player - Player 6 (Orange) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Player - Player 7 (Green) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Player - Player 8 (Pink) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Player - Player 9 (Gray) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Player - Player 10 (Light Blue) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Player - Player 11 (Dark Green) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Player - Player 12 (Brown) types a chat message containing -letter (Unexpected type: 'stringnoformat') as A substring
Conditions
Actions
Set Variable 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 Variable Set UnitTemp = (Picked unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
UnitTemp Not 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 .
Else - Actions
This Box System is not yet working. If you can find a way to make it work, post it on the hive and I'll thank and credit you after I fix it. (+Rep+ too!)
PutItemInBox Copy
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Put Item In Box
Actions
Set Variable Set ItemTemp = (Target item of ability being cast)
Hero - Drop ItemTemp from (Triggering unit) .
Hero - Create Box and give it to (Triggering unit)
Hashtable - Save Handle Of ItemTemp as 1 of (Key (Last created item).) in Hashtable .
Item - Remove (Item carried by (Triggering unit) of type Empty Box)
Item - Hide ItemTemp
TakeOutItemFromBox Copy
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Box
Actions
Set Variable Set IntTemp = (Key (Item being manipulated).)
Set Variable Set ItemTemp = (Load 1 of IntTemp in Hashtable.)
Item - Show ItemTemp
Item - Remove (Item being manipulated)
Hero - Give ItemTemp to (Triggering unit)
PurchaseItemRandomization Copy
Events
Unit - A unit Sells an item (from shop)
Conditions
(Item-type of (Item being manipulated)) Equal to Box
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.