HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

help me with this trigger please

10-20-2006, 05:47 PM#1
Nazra7
i made a trigger to enable you to talk to npc by typing /talk ingame while your near the npc in a region. well one of the functions arent working... i have no idea on any other way to do this. so im not going to ask on how i can work around this but instead the question is: the function turn letterbox mode off for triggering player does not work... why? the function turn letter box mode on for triggering player works just fine.



also how do i give abilities to units? as if you have to talk to an npc to learn the skill? and you dont start with it.
10-20-2006, 07:38 PM#2
The)TideHunter(
I cannot answer your first question, but to add abilities to units, simply use the:

Trigger:
Unit - Add SomeAbility to Unit

And in future, use [trigger] tags, instead of using [img], writing isent perma-stored localy until removed, and its easier for you to show us a trigger.
10-20-2006, 07:42 PM#3
Nazra7
ok thanks for answering my second question and ill try to use trigger tags next time even thought i dont know how it works. i looked at the sticky about it but it doesnt tell me enough information on how to use it... but i guess it couldnt be too hard...
10-20-2006, 07:56 PM#4
The)TideHunter(
To use [trigger] tags simply:

Click the "Copy as Text" button at the top of your trigger.
Zoom (requires log in)

And then click the icon that says "Wrap [trigger] tags around the selected text.", on the text editor for this site.
Or type:
Code:
[trigger][/trigger]

And in between both of those boxes, paste what you copied from wc3.

Example:

Trigger:
Melee Initialization
Collapse Events
Map initialization
Conditions
Collapse 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)

And what it actually says:

Code:
[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)
[/trigger]
Attached Images
File type: jpgUm.jpg (29.8 KB)