Disable Scroll of Town Portal, how?

shawtybaby

New Member
Reaction score
3
How do I disable Scroll of Town Portal when a hero acquires an item called Anti-TP item?

this trigger does not seem to work:

Code:
Disable TP
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Anti-TP
    Actions
        Player - Disable Scroll of Town Portal  for (Owner of (Item being manipulated))
 

Exide

I am amazingly focused right now!
Reaction score
448
Scroll of Town Portal sounds like an item.
You could always create a second item: "Scroll of Town Portal (Disabled)".
And then, when a unit acquires Anti-TP, replace all the TP items with 'TP (Disabled)'.
-Just make sure that nothing happens, when clicking on 'TP (Disabled)'.
 

punwisp

New Member
Reaction score
34
umm why not just delete the trigger that gives the TP to heroes? lol, just go to triggers, its one of the default triggers on there.
 

Exide

I am amazingly focused right now!
Reaction score
448
umm why not just delete the trigger that gives the TP to heroes? lol, just go to triggers, its one of the default triggers on there.

From reading the first post of this thread; that is not what he asked for.
-Unless he explained what he wanted really bad. :p


>I've tested the method, I can't make it work.

Code:
Untitled Trigger 001
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to [B]Anti-TP*[/B]
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Triggering unit) has an item of type Scroll of Town Portal) Equal to True
            Then - Actions
                Item - Remove (Item carried by (Triggering unit) of type Scroll of Town Portal)
                Hero - Create [B]Scroll of Town Portal (Disabled)*[/B] and give it to (Triggering unit)
            Else - Actions
Maybe something like that. :p
 

shawtybaby

New Member
Reaction score
3
From reading the first post of this thread; that is not what he asked for.
-Unless he explained what he wanted really bad. :p


>I've tested the method, I can't make it work.

Code:
Untitled Trigger 001
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to [B]Anti-TP*[/B]
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Triggering unit) has an item of type Scroll of Town Portal) Equal to True
            Then - Actions
                Item - Remove (Item carried by (Triggering unit) of type Scroll of Town Portal)
                Hero - Create [B]Scroll of Town Portal (Disabled)*[/B] and give it to (Triggering unit)
            Else - Actions
Maybe something like that. :p

Okay I tried it, but it still doesn't work correctly. When I drop the Anti-TP item, the unit still has the disabled Scroll of Town Portal.

How do fix that?
 

Bloodcount

Starcraft II Moderator
Reaction score
297
Code:
Events
        Unit - A unit drops an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Anti-TP*
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Triggering unit) has an item of type Scroll of Town Portal (Disabled)*) Equal to True
            Then - Actions
                Item - Remove (Item carried by (Triggering unit) of type Town Portal (Disabled)*
                Hero - Create Scroll of Town Portal  and give it to (Triggering unit)
            Else - Actions

this shloud work but do not copy/paste as custom tekst.Just do the trigger like this one
 

Exide

I am amazingly focused right now!
Reaction score
448
>When I drop the Anti-TP item, the unit still has the disabled Scroll of Town Portal.

Just create a second trigger that uses the event:
Code:
Unit - A unit Loses an item
(Much like the trigger Bloodcount showed, but with different Events.)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top