Expiration timer Problem

Kokojo

New Member
Reaction score
1
Hello everyone!

I am making a map, and I have a simple trigger going on, that crashes warcraft III.

Basicly, I am making a one-tower defence game. (8 players, each with their fully flexible but non-moving tower, must defend a generic castle) In this, there is a ''Charm'' tower. I want the unit to be charmed for 60 seconds, be fully healed and to be faster (that's done). However, I want it to expire after 60 seconds (the unit dies). When I try to add that, WC III crashes, thought :-(

Trigger:
  • Events
    • Unit - A unit Changes Owner


Trigger:
  • Conditions


Trigger:
  • Actions
    • Unit - Add buff to (Ownership changed unit)
    • Unit - Set life of (Ownership changed) unit to 100%
    • Unit - Set mana of (Ownership changed) unit to 100%
    • Unit - Add a 60.00 second Generic expiration timer to (Ownership changed unit)


Unit - Add a 60.00 second Generic expiration timer to (Ownership changed unit)
This gives me a crash...
Any ideas/fixes?
 

Azrooh

New Member
Reaction score
5
Try setting ownership changed unit = a unit variable, and using the expiration timer on the variable.
 

Kokojo

New Member
Reaction score
1
Mmm sorry to be a bore, but I quite don't know how to use variables quite effectively. What kind of variable should I use, and how? (Sorry, I just really don't get it)
 

jig7c

Stop reading me...-statement
Reaction score
123
unit variable, press Ctrl + B in the trigger editor to bring up Variable Editor....
Trigger:
  • actions
    • Set ChangeUnit = (Triggering Unit)
      • Unit - Add buff to (ChangeUnit)
      • Unit - Set life of (ChangeUnit) unit to 100%
      • Unit - Set mana of (ChangeUnit) unit to 100%
      • Unit - Add a 60.00 second Generic expiration timer to (ChangeUnit)
      • Custom script: set udg_ChangeUnit = null
 

Azrooh

New Member
Reaction score
5
What he said, sorry I didn't reply back earlier.
You'd use a unit variable.
 

Kokojo

New Member
Reaction score
1
Thanks for the trigger, but I still get a crash. I am really wondering what's going wrong.
Here is the error :

Exeption 0xC0000005 (ACESS_VIOLATION)

The instruiction at '0x6F2D78CE' referenced memory at '0x000002D0'
This memory could not be 'written'.

Still trying to find a solution... am I missing something here?
Thanks again!
 

Kokojo

New Member
Reaction score
1
Try changing the 'change ownership unit" to "triggering unit"

I tried that with all summon type combination, with no positive results. :banghead::banghead::banghead:

Anything I could do to work that bug out?
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Looks like this is a WC3 bug...

However, this works:
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Changes owner
    • Conditions
    • Actions
      • Wait 0.00 seconds
      • Unit - Add a 60.00 second Generic expiration timer to (Triggering unit)

...and is MUI due to use of Triggering Unit.
 
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