Forge Scripting Help

Discussion in 'Halo and Forge Discussion' started by ShrunkMage84, Apr 23, 2017.

  1. ShrunkMage84

    ShrunkMage84 Legendary

    Messages:
    1
    Likes Received:
    0
    Hello everyone. I guess I'll start out by introducing myself. I'm ShrunkMage84, but you can call me Mage if you want. I've played pretty much every Halo game to date, save for HW2. I'm not much when it comes to competitive multiplayer, but I do enjoy custom games.

    I've been working on some mini game ideas, and my latest has hit a scripting snag. I've been all over the internet recently and just can't find a solid answer, so I came here to see if anyone could help.

    Basically, players are supposed to gain points by shooting destructible targets. whoever shoots the target first earns the points for their team. I can't, however, figure out if it is possible to script that. I've seen a few similar forums around the web with the exact problem, yet they just end unresolved.

    An example of my situation:

    Red Team player shoots a target.
    Red Team gains a point.
    Target respawns.
    Blue Team player shoots the same target.
    Blue Team gains a point.
    And so on.

    From what I could gather, it would seem impossible to script this due to the Destroyed/Despawned Condition lacking an Activator [add] in the Score: Change Action. I'm not sure if there is a work around without having separate targets for each team.

    So, that's pretty much where I'm stuck for the time being. Thanks in advance!
     
  2. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    I do not have Forge in front of me right now, but if what you say is correct - that there is no Activator value for destroyed/despawned, then it may not be possible in the way you desire.

    However, here is one workaround you could try.

    If the player, regardless of team MUST stand in a particular spot in order to shoot the target, then you could have a boundary detect when a player of team R or B is standing there, and then use the despawn event to add a point to the team detected in the zone.
     
    Yumudas Beegbut likes this.
  3. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    just thought of something else you could try. do targets have a team value you can define? if so, MAYBE it won't le tthe other team shoot it?

    If that is true, then it should be possible to set two identical targets over each other, phased, and then a faux target purely for asthetics is placed behind it but visible. It appears to both teams that they are shooting the same thing, when in fact they are not.

    EDIT: NEver mind that actually does not work :(
     
    #3 ExTerrestr1al, Apr 26, 2017
    Last edited: Apr 27, 2017
  4. Yumudas Beegbut

    Yumudas Beegbut Legendary
    Wiki Contributor Senior Member

    Messages:
    393
    Likes Received:
    352
    I don't think the targets respect the team setting, but it's worth double checking.

    Yeah, we don't have direct ways of detecting which team or player causes damage. Seems like the options we have won't be very accurate and might need to be customized for the situation.

    @ShrunkMage84 is there a particular setup this is for? We might be able to come up with something or alternate. Maybe targets could be color coded and not shared? You prolly already thought of that. Will the players occupy the same space?

    Here's a couple of possible solutions:
    • Create custom "fake" weapons that players use to take out targets. Those usually use damage scripts and boundaries. You'd have complete control over who does what damage.
    • We can have objects that face where the player is aiming. We might be able to do that with a long, narrow zone and then we'd sort of know who was looking at a target when it's destroyed. It'll likely take a bunch of testing and stuff to get that working.
     
  5. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    it might be best to simply force players to stand on a plate when shooting each respective target, and then having the boundary in that spot serve as a switch to which team can legally gain a point when the target is destroyed.

    also, change it to no team can score if no one is in the spot. then for best results make a weapon blocker spawn over the target when no team.
     

Share This Page