HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need Trig Help Plz

01-25-2004, 09:21 PM#1
ZZiNo
Hey guys, just workin on a map here, but i seem to be stuck
:////


I kind of want a Golemz kind of deal, where lets say theres 3 different beacons. And if u bring on 3 different "golem parts" in different combinations (ex: 2 parts on A beacon, 1 on B beacon) u get a unit.

But how do i do this??
01-25-2004, 09:54 PM#2
The_Inquisitor3
i dont have time to explan.. but u can make a triger...

A unit enters in the region part1
A unit enters in the region part2
A unit enters in the region part3

Condition:

Trigering unit is a hero Equal to TRUE


if Trigering unit have Golem part 1 and Golem part 2 AND HERo its in region part1 create X unit for owner of triggering unit at position of triggering unit

(the region must be placed on the beacon)

u can make ur own combiations
01-26-2004, 10:49 PM#3
ZZiNo
oops i kinda didnt make this clear (sry)

All golem parts are the same, its the beacons that allow different combinations.

3 distinct beacons, and 3 identical golem parts; used in combos.
01-26-2004, 11:27 PM#4
Ligature
What exactly are the beacons? Are they regions, or are they units that you can give the items to? If the latter, it could be really easy. Just trigger it so that when a beacon acquires an item of the appropriate item-type, you add one to its custom value. Then check whether the total of all three beacons' custom values is equal to three, and if it is, perform your actions, using a bunch of if statements like:

if custom value of beacon1 = 2 and custom value of beacon 2 = 1 then do:

And there you go. Afterward, reset all the custom values to zero, kill all the items in the beacons' inventories, and the triggers will still work if someone else decides to bring them three more items.
01-27-2004, 01:12 AM#5
ZZiNo
Beacons = Regions

Golem Parts = Units that enter the regions (beacons)
01-27-2004, 01:25 AM#6
The_Inquisitor3
then its easyer but kinda longer....

UNIT- PART1 enters in a region B1 (part 1 = UNIT )

Condition

Part 2 its in region B2 AND PART3 its in region B3

Action

Create SUPER GOLEM


UNIT- PART1 enters in a region B2

Condition

Part 2 its in region B3 AND PART3 its in region B1

Action

Create Crapy golem



etc etc... u just need to do the combinations...
01-27-2004, 01:39 AM#7
Ligature
Ok in that case, you want a trigger that runs when a golem part enters a beacon, that goes like this:

Code:
A: Set BeaconParts1 = count units in Beacon1 matching condition: unit-type of matching unit equal to Golem Part
A: Set BeaconParts2 = count units in Beacon2 matching condition: unit-type of matching unit equal to Golem Part
A: Set BeaconParts3 = count units in Beacon3 matching condition: unit-type of matching unit equal to Golem Part
A: If BeaconParts1 + BeaconParts2 + BeaconParts3 = 3 then do (actions):
        A:If BeaconParts1 = 0 then do (actions):
                A: If BeaconParts2 = 0 then do (actions):
                        [b]ACTIONS HERE FOR ALL PARTS IN BEACON3[/b]
                A: If BeaconParts2 = 1 then do (actions):
                        [b]ACTIONS HERE FOR 1 PART IN BEACON2, 2 PARTS IN BEACON3[/b]
                A: If BeaconParts2 = 2 then do (actions):
                        [b]ACTIONS HERE FOR 2 PARTS IN BEACON2, 1 PART IN BEACON3[/b]
                A: If BeaconParts2 = 3 then do (actions):
                        [b]ACTIONS HERE FOR ALL PARTS IN BEACON2[/b]
        A:If BeaconParts1 = 1 then do (actions):
                A: If BeaconParts2 = 0 then do (actions):
                        [b]ACTIONS HERE FOR 1 PART IN BEACON1, 2 PARTS IN BEACON3[/b]
                A: If BeaconParts2 = 1 then do (actions):
                        [b]ACTIONS HERE FOR 1 PART IN EACH BEACON[/b]
                A: If BeaconParts2 = 2 then do (actions):
                        [b]ACTIONS HERE FOR 1 PART IN BEACON1, 2 PARTS IN BEACON2[/b]
        A:If BeaconParts1 = 2 then do (actions):
                A: If BeaconParts2 = 0 then do (actions):
                        [b]ACTIONS HERE FOR 2 PARTS IN BEACON1, 1 PART IN BEACON3[/b]
                A: If BeaconParts2 = 1 then do (actions):
                        [b]ACTIONS HERE FOR 2 PARTS IN BEACON1, 1 PART IN BEACON2[/b]
        A:If BeaconParts1 = 3 then do (actions):
                        [b]ACTIONS HERE FOR ALL PARTS IN BEACON1[/b]
looks fun don't it?
01-27-2004, 04:27 AM#8
ZZiNo
Quote:
Originally posted by Ligature
looks fun don't it? [/b]


Holay, i cant wait!:////



P.S: I cant seem to able to get my sig/ava loaded... any assistance?