HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A Couple of Trigger Questions..

12-20-2002, 11:14 PM#1
Guest
Hello, im currently creating a CTF like map for multiplayer and i have some questions:

1. How could i create a custom item (the flag) that reduces the carrier's movement speed by 1/4th?

2. Is there a way to make a hero type unit able to build buildings?

3. Is there a way to give heroes a regular unit ability (like heal or stasis ward)?

Thanks for your help, :).
12-21-2002, 12:21 AM#2
Seres
Well, the first and third questions I can respond to off of the top of my head.

1. How could i create a custom item (the flag) that reduces the carrier's movement speed by 1/4th?

You can do so with a trigger. Make the Event, Unit - Player Owned Unit Event. Select which player you want this to apply to, then make the next field, "Acquires an Item." Copy this Event down and change the Player field so you have an Event for each player (if anyone knows a better way of doing this, please tell me).

Next, make a Condition, a Boolean Comparison. For the first field, select "Hero - Hero has Item of Type." Fill in the neccessary fields. Make it equal to True (it should be already).

For the action, use the trigger Unit - Set Movement Speed. Make the first field triggering unit, and make the second an Arithmetic. Make the first field (two new fields will show up under Arithmetic) Unit - Movement Speed (Default), and make the field Triggering Unit. Go back to the Arithmetic, change the mathematical sign to X (multiply), and change the last field to .25.

<Hold on a sec while I take a breather>
12-21-2002, 12:28 AM#3
Seres
<K, back>

Now, you probably want to make the Hero regain its speed once the flag is dropped. Make a new Trigger, set the Event to Unit - Specific Unit Event. Make it same as in the first trigger, but instead of Acquiring an Item, make it Loses an Item.

Make the condition Item-Type Comparison. Change the first field to, (Item-Type of (Item Being Manipulated) ). Set it equal to whatever the flag is. (If there are two flags, use the Or condition instead, and use this same condition for the first. Change the second to whatever the second flag is).

Make the Action a Unit - Set Movement Speed. Set the first field to Triggering Unit, and set the second to Unit - Movement Speed (Default).

That should work. However, I kind of made all of this up on the spot, so it might not work 100%.

<Hold on a second while I go back and look at the other questions>
12-21-2002, 12:31 AM#4
Seres
3. Is there a way to give heroes a regular unit ability (like heal or stasis ward)?

OK, this one is simple (I think). Just go to the Downloads section here and get one of the later versions of the World Editor. They allow you to give heros normal abilities.

As for your second question, I really have no idea. I've never tried that before. My guess would be that it is impossible, or maybe one of the enhanced World Editors allows it, but I wouldnt know. I hope I've been of some help, and good luck.
12-21-2002, 02:32 AM#5
Guest
Ah, i see! Thanks a lot, :).