Rheiko
Spell Reviewer
- Joined
- Aug 27, 2013
- Messages
- 4,122
How To Post Your Triggers
I've seen many and many members around the site who need help with their triggers but don't know how to post their triggers in a thread, especially the newcomers. Posting your triggers in a thread is a very important matter when you're asking for a help from other members to fix or find a problem in your triggers. This tutorial is intended to help you post your triggers easily in a thread.
Table of Contents
- Find Your Trigger
First of all, you must find the trigger you want to post. This is a very basic thing to do and I am sure you don't have any problem with this step but just in case you do, I will tell you how to do it. Open your map in the World Editor. Find the "Module" button and click on it, then choose "Trigger Editor". You can also open it with the shortcut key "F4" which is faster than the previous method.
The Trigger Editor window will appear, browse through the folders for your triggers. Then Left-Click on the trigger you wanted to post.
- Copy Your Trigger
Once you've Left-Clicked on the trigger you want to post, you will see that The Trigger Editor consists of 3 Boxes. First is the list of folders and triggers you have. Second is the comment of the trigger you have. Third is the "Trigger Functions". Inside the Trigger Functions, you can see the title of your trigger. Right-Click on it. A menu will pop up and you will find "Copy As Text" in there. Left-Click on it.
- Paste Your Trigger
In the Hiveworkshop, you can post your triggers in a thread by using the [trigger][/trigger] tags by writing them manually. Alternatively, you can also just left click on this button right here and it will automatically generate the tags for you. The purpose is to make sure that the triggers are inlined correctly in the thread.
Write the trigger tags with whichever method you prefer, then paste your copied trigger between them like this:
[trigger]Paste your copied Trigger here![/trigger]
-
Melee Initialization
-
Events
- Map initialization
- Conditions
-
Actions
- Melee Game - Use melee time of day (for all players)
- Melee Game - Limit Heroes to 1 per Hero-type (for all players)
- Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
- Melee Game - Set starting resources (for all players)
- Melee Game - Remove creeps and critters from used start locations (for all players)
- Melee Game - Create starting units (for all players)
- Melee Game - Run melee AI scripts (for computer players)
- Melee Game - Enforce victory/defeat conditions (for all players)
-
Events
-
Melee Initialization
- The Hidden Tags
You may probably have noticed that the browser window gets stretched sometimes (It depends on how long the triggers are and where you post them). This can be unpleasant for some people to look at, so you definitely need to do something about this. This is where the Hidden Tags get some action. Hidden Tags allow you to hide a huge wall of text in your postings. This is very useful for triggers because they usually have a huge wall of text. Now, simply write [hidden=The Title][/hidden]. As usual, the text that you wanted to hide must be between the tags. Here's the example of it:
-
Melee Initialization
-
Events
- Map initialization
- Conditions
-
Actions
- Melee Game - Use melee time of day (for all players)
- Melee Game - Limit Heroes to 1 per Hero-type (for all players)
- Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
- Melee Game - Set starting resources (for all players)
- Melee Game - Remove creeps and critters from used start locations (for all players)
- Melee Game - Create starting units (for all players)
- Melee Game - Run melee AI scripts (for computer players)
- Melee Game - Enforce victory/defeat conditions (for all players)
-
Events
-
Melee Initialization
- How To Post JASS Scripts
Posting JASS Scripts is even easier than posting Triggers. Simply find the Scripts you want to post, select all the text inside and copy them. Go to the forum, make sure you have Left-Clicked on the "Use BB Code Editor" button as I've explained in the 3rd Step. Then paste the scripts between the [code=jass][/code] tags. Example:
JASS:function Trig_Melee_Initialization_Actions takes nothing returns nothing call MeleeStartingVisibility( ) call MeleeStartingHeroLimit( ) call MeleeGrantHeroItems( ) call MeleeStartingResources( ) call MeleeClearExcessUnits( ) call MeleeStartingUnits( ) call MeleeStartingAI( ) call MeleeInitVictoryDefeat( ) endfunction //=========================================================================== function InitTrig_Melee_Initialization takes nothing returns nothing set gg_trg_Melee_Initialization = CreateTrigger( ) call TriggerAddAction( gg_trg_Melee_Initialization, function Trig_Melee_Initialization_Actions ) endfunction
call KillUnit(udg_YourVar)
call RemoveLocation(udg_YourVar)
That is all about How To Post Your Triggers. I hope this tutorial can help you out.
Any feedbacks and suggestions are greatly appreciated.
Sincerely, Rheiko ~
Last edited: