wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 11-17-2010, 10:14 PM   #1
Aco
User
 
Join Date: Aug 2010
Posts: 4

Aco has little to show at this moment (0)

Default constructing unit?

hey,
how can i referr to the unit which is building the "constructing structure" in the trigger editor?
Aco is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 11-18-2010, 04:50 PM   #2
xZetH
User
 
Join Date: Dec 2008
Posts: 3

xZetH has little to show at this moment (0)

Default

Constructing structure. Responding to "A unit begins construction" unit event. Refers to the unit whose construction has begun.

Constructed structure. Responding to "A unit finishes construction" unit event. Refers to the unit whose construction has finished.
xZetH is offline   Reply With Quote
Old 11-21-2010, 01:26 PM   #3
[VDM]Amn
User
 
[VDM]Amn's Avatar
 
Join Date: Sep 2006
Posts: 85

[VDM]Amn is on a distinguished road (14)

Send a message via ICQ to [VDM]Amn Send a message via AIM to [VDM]Amn Send a message via MSN to [VDM]Amn Send a message via Yahoo to [VDM]Amn
Default

i got it
get the human worker abilities on your unit
it fires the event 'unit starts the effect of an ability' when is ordered to build

target unit of ability being cast is your building
triggering unit is your guy
__________________
Amn

Side effects may include: dry mouth, nausea, vomiting, water
retention, painful rectal itch, hallucination, dementia, psychosis,
coma, death, and halitosis. Magic is not for everyone. Consult your
doctor before use.
[VDM]Amn is offline   Reply With Quote
Old 11-21-2010, 01:35 PM   #4
[VDM]Amn
User
 
[VDM]Amn's Avatar
 
Join Date: Sep 2006
Posts: 85

[VDM]Amn is on a distinguished road (14)

Send a message via ICQ to [VDM]Amn Send a message via AIM to [VDM]Amn Send a message via MSN to [VDM]Amn Send a message via Yahoo to [VDM]Amn
Default

or else ...
there's a function to convert unit types to orders
so you can match who has this current order when the event 'begins construction' is fired

Set a = (String((Order((Unit-type of (Constructing structure)))))) //if you build an Arcane Vault this gets 'arcanevault' just like the order the worker gets
Set your_guy = random 1 unit from units within 500 of triggering unit matching order of matching unit equal to a

good luck
__________________
Amn

Side effects may include: dry mouth, nausea, vomiting, water
retention, painful rectal itch, hallucination, dementia, psychosis,
coma, death, and halitosis. Magic is not for everyone. Consult your
doctor before use.
[VDM]Amn is offline   Reply With Quote
Old 11-22-2010, 09:58 AM   #5
DioD
obey
 
DioD's Avatar
 
Join Date: Feb 2006
Posts: 1,532

Submissions (4)

DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)

Send a message via ICQ to DioD
Default

this wont work you know, repair wont trigger event.
DioD is offline   Reply With Quote
Old 11-24-2010, 06:54 AM   #6
[VDM]Amn
User
 
[VDM]Amn's Avatar
 
Join Date: Sep 2006
Posts: 85

[VDM]Amn is on a distinguished road (14)

Send a message via ICQ to [VDM]Amn Send a message via AIM to [VDM]Amn Send a message via MSN to [VDM]Amn Send a message via Yahoo to [VDM]Amn
Default

really, the human worker does fire the event starts the effect of an ability with Repair ability
he's special (?)
__________________
Amn

Side effects may include: dry mouth, nausea, vomiting, water
retention, painful rectal itch, hallucination, dementia, psychosis,
coma, death, and halitosis. Magic is not for everyone. Consult your
doctor before use.

Last edited by [VDM]Amn : 11-24-2010 at 06:55 AM.
[VDM]Amn is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 11:32 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2020, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services