Issue unit to stop upgrade?

kla0005

New Member
Reaction score
3
Hey Guys,

I have this trigger:
Trigger:
  • shrine1I1ICheck
    • Events
      • Unit - A unit Begins an upgrade
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to |cff733FC9Shrine 1|r
      • income[(Player number of (Owner of (Triggering unit)))] Less than 4500
    • Actions
      • Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffff0000Your Inco...


- and now i just need the last part - the issue order to the upgardin unit for stop the upgrade? But how can i do that?
I tryed to look in some issue unit, but couldnt' find anything?

Thanks :)
 

kla0005

New Member
Reaction score
3
Not even my own code worked actually..
I have this code now:
Trigger:
  • shrine1I1ICheck
    • Events
      • Unit - A unit Begins an upgrade
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Ordered unit)) Equal to |cff733FC9Shrine 1|r
          • (Unit-type of (Triggering unit)) Equal to |cff733FC9Shrine 1|r
          • (Unit-type of (Matching unit)) Equal to |cff733FC9Shrine 1|r
          • (Unit-type of (Researching unit)) Equal to |cff733FC9Shrine 1|r
    • Actions
      • Game - Display to Player Group - Player 1 (Red) the text: |cffff0000Your Inco...
      • Unit - Order (Triggering unit) to Stop

And nothing of these works. When i start the updaten, there comes no message or anything?

What am im doing wrong?
 

Jedi

New Member
Reaction score
63
You need to "cancel" the upgrade, not stop unit.

Trigger:
  • Custom script: call IssueImmediateOrderById(GetTriggerUnit(), 851976)


if this doesn't work, wait 0.00 or 0.01 seconds first.
 

kla0005

New Member
Reaction score
3
Jedi, can you help me with the full code, becuase..
- Not even the event or conditions work?
I dont even get the 'Game - display' thing..
And i cant make it work?

Can you help me with the full code, i think you can see what im searching for in my examples?
 

HydraRancher

Truth begins in lies
Reaction score
197
LOL, that is a bigg mess of conditions. Remove them all and replace them with *drum roll* (Upgrading Unit)!
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Are you sure it's "upgrade" you want, and not "research" ? :eek:

It's not the same thing you know :p
 

kla0005

New Member
Reaction score
3
Hey Jedi!
Got i work, but..
i use this:
Trigger:
  • Custom script: call IssueImmediateOrderById(GetTriggerUnit(), 851976)

As you gave me, but somehow it stops the update, but it gives me back 22500 gold ca.? And the updates costs' 30k, so i dont get it?
 

Jedi

New Member
Reaction score
63
It is about settings of w3, maybe you can change it from gameplay constants, I am not sure now.

But add a action will work too

Trigger:
  • Player - Add 7500 to (Owner of (Triggering unit)) Current gold
 

Bogrim

y hello thar
Reaction score
154
It is about settings of w3, maybe you can change it from gameplay constants, I am not sure now.
It's in the game constants, yes. There are percentage values for whenever you cancel a structure, upgrade and the training of units. By default, upgrades and buildings only refund 75% while training units refund 100%.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top