• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Aaand... it's gone

Status
Not open for further replies.
Level 27
Joined
Sep 24, 2006
Messages
4,979
So i was making these few triggers to make some sorta very simple GUI equipment system, modern weapons style and i add a trigger to add another charge to an item if the item picked up is already owned by the one manipulating it and also added when that item is used your ammunition be set to 30.

So... i did that... and suddenly everthing fucked up. The trigger for equiping the weapon doesn't work anymore and gives the "berserk" buff while it's not supposed to do that which it also appears not to be able to do in the world editor.

Wtf is this, i've encountered it a few times before but wtf is it? Corruption? Events overlapping eachother?
 
Level 6
Joined
Dec 9, 2007
Messages
208
Have you tried removing the last trigger you wrote? Tried rewriting the trigger?

I'm sorry I can't give you a more precise advise, but I have never really worked with "charge" items in that way
 
Level 20
Joined
Jul 6, 2009
Messages
1,885
So i was making these few triggers to make some sorta very simple GUI equipment system, modern weapons style and i add a trigger to add another charge to an item if the item picked up is already owned by the one manipulating it and also added when that item is used your ammunition be set to 30.

So... i did that... and suddenly everthing fucked up. The trigger for equiping the weapon doesn't work anymore and gives the "berserk" buff while it's not supposed to do that which it also appears not to be able to do in the world editor.

Wtf is this, i've encountered it a few times before but wtf is it? Corruption? Events overlapping eachother?

Mind posting triggers? It's hard to help without any clue how you have done it.
 
Level 27
Joined
Sep 24, 2006
Messages
4,979
Ok, technically this should work.

  • StackItem
    • Events
      • Unit - A unit owned by Player 1 (Red) Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Ammunition
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to (Item-type of (Item carried by PlayerHero of type Ammunition))
        • Then - Actions
          • Item - Set charges remaining in (Item carried by PlayerHero of type Ammunition) to ((Charges remaining in (Item carried by PlayerHero of type Ammunition)) + 1)
        • Else - Actions
          • Do nothing
  • AddAmmo
    • Events
      • Unit - A unit owned by Player 1 (Red) Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Ammunition
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Ammunition Equal to 30
        • Then - Actions
          • Item - Set charges remaining in (Item carried by PlayerHero of type Ammunition) to ((Charges remaining in (Item carried by PlayerHero of type Ammunition)) + 1)
          • Game - Display to (All players) for 5.00 seconds the text: You're magazine is ...
        • Else - Actions
          • Set Ammunition = 30
 
Level 27
Joined
Sep 24, 2006
Messages
4,979
well im having it again now in a serious map.

So i deleted ALL previous triggers.. which were about 50 or something and i am making everything again from scratch.

Only now the game just doesn't seem to react AT ALL!! Firstly the night and day sight is set to ZERO but the units still have vision! Secondly the selection at the end just wouldn't work. I've tried picking a group, owner of unit, when unit enters region. Nothing works.

  • GameStart
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Custom script: call GetHost()
      • Visibility - Enable fog of war
      • Visibility - Enable black mask
      • Unit - Hide Predator Selection 0000 <gen>
      • Unit - Hide Prey Selection 0001 <gen>
      • Set FirstRound = True
      • Game - Display to (All players) the text: (Please be patient, the host (|cffffcc00 + ((Name of Host) + |r) will now pick a game mode.))
      • Game - Display to (Player group(Host)) the text:
      • Game - Display to (Player group(Host)) the text: You are the host, p...
      • If ((Host slot status) Equal to Is playing) then do (Unit - Create 1 Selector for Host at (Center of Region 005 <gen>) facing Default building facing degrees) else do (Do nothing)
      • Set TempUnit[0] = (Last created unit)
  • SelectGameMode
    • Events
      • Unit - A unit enters Region 005 <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Host
    • Actions
      • Trigger - Turn off (This trigger)
      • Player Group - Pick every player in (Player group(Host)) and do (Selection - Select Game Mode Selection 0002 <gen> for (Picked player))
 
Level 27
Joined
Sep 24, 2006
Messages
4,979
yeah i guessed that too but wtf man that really sucks... does NewGen only do this or something? I mean if it's unfixable then what causes it? :s

Ah what the hell i can make it again, the only thing that required a lot of work were the triggers and the units and items also a bit but it would've been easier to just edit the old one >.<
 
Status
Not open for further replies.
Top