Trigger Trouble

l)emonStorm

New Member
Reaction score
3
I am making a capture the flag map and have this trigger
Code:
return alliance flag
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to Alliance Flag
        ((Owner of (Item being manipulated)) is an ally of Player 1 (Red)) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Item being manipulated) is in Alliance Flag <gen>) Equal to True
            Then - Actions
                Item - Remove (Item being manipulated)
                Item - Create Alliance Flag at (Center of Alliance Flag <gen>)
                Quest - Display to (Player group((Owner of (Item being manipulated)))) the Quest Update message: Unable to pick up y...
            Else - Actions
                Item - Remove (Item being manipulated)
                Item - Create Alliance Flag at (Center of Alliance Flag <gen>)
                Quest - Display to (All players) the Secret message: The Alliance has re...
                Set Flag_Returns[(Player number of (Owner of (Item being manipulated)))] = (Flag_Returns[(Player number of (Owner of (Item being manipulated)))] + 1)
                Leaderboard - Change the value for (Owner of (Item being manipulated)) in Leaderboard_returns to Flag_Returns[(Player number of (Owner of (Item being manipulated)))]
                Leaderboard - Show Leaderboard_returns
                Wait 10.00 seconds
                Leaderboard - Hide Leaderboard_returns

However, if the item is in the alliance flag region, it is still doing the then actions. I've tried so long to fix this but nothing is working! Please help me. :banghead:
 
...If you tell us what it does then we can probrably help better. I dont want to waste 10 minutes figuring out what its supposed to do exactly.
 
it is kind of complicated but if a unit dies with the flag, the flag is dropped somewhere in the map (wherever the unit died). I then want an ally of the unit who was carrying it to be able to pick it up, or an enemy of the unit to be able to make the flag instantly return back to his base by selecting the flag (kind of like CTF in Halo). However, because i am keeping track of how many returns each player has gotten, i dont want a player to be able to pick up his own flag while it is still in his base. This is what i am having trouble with - it gives the player credit for returning the flag when in my trigger it shouldnt.
 
l)emonStorm said:
However, if the item is in the alliance flag region, it is still doing the then actions.
Well, your trigger says that "If the flag is in the region then do the then actions".
 
It's probably the condition that's the problem. The item might not count as being in a region if it just got picked up. To test this try putting a "Game - Display text message . . ." thing to tell you what the condition evaluates to.
 
yeah u were right. thx a lot. I changed my trigger to say hero manipulating item instead of item, so it works now :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top