• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

What is Highest that trigger can count?

Status
Not open for further replies.
Level 3
Joined
May 30, 2008
Messages
32
Hi I got the trigger to solve a problem, but they only count for so much. Seem like there a limit for everything.

Here my trigger.

  • Slime Rat respawn
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to a slime
          • (Unit-type of (Triggering unit)) Equal to a rat
          • (Player number of (Picked player)) Equal to 105
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in UnitKillCount) Equal to 105
        • Then - Actions
          • Unit Group - Remove all units from UnitKillCount
          • Wait 0.01 seconds
          • Trigger - Turn on Slime Rat Dies <gen>
          • Wait 0.01 seconds
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Unit Group - Add (Triggering unit) to UnitKillCount
          • Unit - Create 1 RandomSpawn[(Random integer number between 1 and 2)] for Player 12 (Brown) at (Random point in Spawn a <gen>) facing Default building facing degrees
Ok See it say (Player number of (Picked player)) Equal to 105, and this (Number of units in UnitKillCount) Equal to 105.

Ok I've set it to 4000 it won't work, So I test it and tried 20, 50, 100, and 105 it work. and I tried 500 it didn't work so probly im guessing the limit is probly 333 or something.

Anyway can anybody help me find out how to make the Unit kill counter go over 1000 or more?
 
Level 3
Joined
May 30, 2008
Messages
32
Ok I test over and over and over. They work, but there a bit buggy. I've fail at 400, 500, 600, 100, 4000, and I success at 400, 500, 600, 1000. I haven't tried 4000 yet.

I don't know what the problem is I've killed it fast with using cleave attack 2,000 range kill them all instantly, and it work. I thought maby it was to fast for the trigger to count, but nope.

I tried 2 hero killing them at 500 count and it fail. It just buggy it all I can explain can anybody figure out the bug for me please.
 
Level 3
Joined
May 30, 2008
Messages
32
Alright since most of u don't seem to understand. I'll give u the map to download to try it out. Just pick a hero from the tavern then go in and I adjust everything to 10 kills, after 10 kills everything should work like it should.

My goal is to make it 4,000 kills, 3,000, 2,500, 2000, 1500, 1000 or any number I can adjust. for some reason low number counter work while High number count is buggy. I mean sometime it work while other time it don't.

Just change this number in this trigger. Slime Rat Respawn trigger, and change this one (Number of units in UnitKillCount) Equal to 10.

I support sharing since the Hive help me fix this map so I'll let u download to understand what I'm talking about.
 

Attachments

  • Ultima Online v 0.46.w3x
    707.2 KB · Views: 28
Ok, the problem is: you add units to the unit group UnitKillCount whenever they die. The thing is, after they die, they are automatically removed by the game after a period of time. Use an integer for counting the number of units killed, not a unit group. Just do

Event - A unit dies
Condition - Unit Type of Dying Unit equal to Slime or Unit Type of Dying Unit equal to Rat
Actions - Set KillCount = Killcount + 1
 
Status
Not open for further replies.
Top