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 08-20-2009, 12:16 PM   #1
Pinzu
User
 
Pinzu's Avatar
 
Join Date: Apr 2007
Posts: 180

Pinzu is on a distinguished road (21)

Default Targetable but controllable by player.

I want to have a unit owned by lets say player 1 he can't command the unit to do anything, but you can target the unit normaly...

I found this amongs my own posts...

"Unselectable but vulnerable:
Custom Script : call UnitAddAbility( unit, 'Aloc')
Custom Script : call UnitRemoveAbility( unit, 'Aloc')

Unselectable, vulnerable and targetteable:
Custom Script : call UnitAddAbility( unit, 'Aloc')
Unit- Add (Chaos morph) to (unit)

** Chaos morph is a chaos based spell that has no tech requirements and morphs the unit to the same unit."

I used Chaos Grom, and removed all techtree and seted the spell to the footmen, cus I was told that would bug the locust, but it dosnt work... help!
Pinzu is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 08-20-2009, 12:24 PM   #2
TheWye
User
 
TheWye's Avatar
 
Join Date: May 2009
Posts: 140

TheWye is on a distinguished road (11)

Default

what if you pause the unit? Does it work this way? Its targetable but not controllable. And try searching for Vex's independent summon system. Maybe that will help?
__________________
I Wanna :

SetTextTagTextSetTextTagTextSetTextTagText
TheWye is offline   Reply With Quote
Old 08-20-2009, 12:30 PM   #3
Pinzu
User
 
Pinzu's Avatar
 
Join Date: Apr 2007
Posts: 180

Pinzu is on a distinguished road (21)

Default

ok,
Pinzu is offline   Reply With Quote
Old 08-20-2009, 01:37 PM   #4
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,190

Submissions (19)

Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

In my experience, you have to morph it to a different unit with chaos for that trick to work, at least, that's how I got it to work in my Glacial Wall spell.

Edit: also, I added the locust ability to the unit after chaos-morphing it, not before.
Edit2: I realize now I likely could have just paused the unit.
__________________

Last edited by Anitarf : 08-20-2009 at 01:39 PM.
Anitarf is offline   Reply With Quote
Old 08-20-2009, 02:30 PM   #5
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

Hmm... I added it before morphing; I also morphed the unit into itself.

Collapse JASS:
    call UnitAddAbility(U2, 'Aloc')
    call UnitAddAbility(U2, TF_Chaos_Ability_Id())
    call AttachObject(U2, "TF Past Self", U)
    call TF_Hero_Set(U, U2)
    call GroupAddUnit(G, U2)
    call AttachObject(U, "TF Future Self", U2)
Also, try adding the 'Ward' classification; I know it removes the command card, but I'm not sure about whether or not that actually prevents the unit from being ordered.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Old 08-20-2009, 02:32 PM   #6
Here-b-Trollz
Corkscrew Chainsaw!!!
 
Join Date: Jun 2006
Posts: 711

Here-b-Trollz has a spectacular aura about (149)

Hero Contest #2 - 2nd Place

Default

Quote:
Originally Posted by Pyrogasm
Also, try adding the 'Ward' classification; I know it removes the command card, but I'm not sure about whether or not that actually prevents the unit from being ordered.

You would need to block the "smart" order, too. With AbortOrder, this is much much much easier.
__________________
By reading this signature, you agree that I cannot be held accountable for anything that I might say or do.

Last edited by Here-b-Trollz : 08-20-2009 at 02:32 PM.
Here-b-Trollz is offline   Reply With Quote
Old 08-20-2009, 04:03 PM   #7
Pinzu
User
 
Pinzu's Avatar
 
Join Date: Apr 2007
Posts: 180

Pinzu is on a distinguished road (21)

Default

with ward thing, you can still move them, by pressing the target ground or enemy.

so, I make it a ward, and block all orders given by the owning player, how do I differ from the "AI" orders and the players order?

I will soon start testing your stuff.

Last edited by Pinzu : 08-20-2009 at 04:06 PM.
Pinzu is offline   Reply With Quote
Old 08-20-2009, 04:44 PM   #8
Pinzu
User
 
Pinzu's Avatar
 
Join Date: Apr 2007
Posts: 180

Pinzu is on a distinguished road (21)

Default

Collapse JASS:
    
    call UnitAddAbility(U2, 'Aloc') 
    call UnitAddAbility(U2, TF_Chaos_Ability_Id()) 

//whats the "TF_Chaos_Ability_Id"? a pre-set variable cus I am just implenting customscripts
//into gui, yes, im that kind of newbie ;)

    call AttachObject(U2, "TF Past Self", U)
    call AttachObject(U, "TF Future Self", U2)

Last edited by Pinzu : 08-20-2009 at 04:45 PM.
Pinzu is offline   Reply With Quote
Old 08-20-2009, 05:05 PM   #9
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Quote:
with ward thing, you can still move them, by pressing the target ground or enemy.
not really.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 08-20-2009, 05:30 PM   #10
Pinzu
User
 
Pinzu's Avatar
 
Join Date: Apr 2007
Posts: 180

Pinzu is on a distinguished road (21)

Default

Im sure and Im even gonna try by giving a shadow hunter: serpent ward movment speed.

- you could move them. /... and I ment by right-clicking.

Last edited by Pinzu : 08-20-2009 at 10:43 PM.
Pinzu is offline   Reply With Quote
Old 08-20-2009, 08:59 PM   #11
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

That was just the example code from my Temporal Fluxuation spell. TF_Chaos_AbilityId is a function at the top of the script, which I linked too.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm 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 04:23 AM.


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

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