1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Choose your ride to damnation in the 5th Special Effect Contest Poll.
    Dismiss Notice
  5. The winners of the 13th Techtree Contest have been announced!
    Dismiss Notice
  6. The 13th Music Contest Poll is up! Vote for the best tracks in this symphony of frost and flame.
    Dismiss Notice
  7. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  8. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Help with my mod (How to play select and play in a specific area?) :) Thanks

Discussion in 'World Editor Help Zone' started by Sideblade, Aug 18, 2013.

  1. Sideblade

    Sideblade

    Joined:
    Aug 17, 2013
    Messages:
    63
    Resources:
    0
    Resources:
    0
    This is my Initialize Areas Trigger setup:
    • initialize areas
      • Events
        • Map initialization
      • Conditions
      • Actions
        • Set Area = Area 000 <gen>
        • Set Area = Area 001 <gen>
        • Set Area = Area 002 <gen>
        • Set Area = Area 003 <gen>
        • Set Area = Area 004 <gen>
        • Set Current_Area = Area 000 <gen>
        • Set TInteger2 = 1
        • For each (Integer TI) from 1 to 4, do (Actions)
          • Loop - Actions
            • Set Area_Centre_Base = Area_Centre_Base
        • Player Group - Pick every player in (All players) and do (Actions)
          • Loop - Actions
            • Camera - Pan camera for (Picked player) to (Center of Area_Centre_Base) over 0.00 seconds




    This is my Next Area Trigger setup:
    • Next Area
      • Events
        • Player - Player 1 (Red) Presses the Right Arrow key
      • Conditions
      • Actions
        • Set TInteger2 = (TInteger2 + 1)
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • TInteger2 Equal to 5
          • Then - Actions
            • Set TInteger2 = 1
          • Else - Actions
            • Player Group - Pick every player in (All players) and do (Actions)
              • Loop - Actions
                • Cinematic - Fade out over 0.50 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
                • Camera - Pan camera for (Picked player) to (Center of Area_Centre_Base) over 0.00 seconds
                • Cinematic - Fade in over 0.20 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency




    This is my Previous Area Trigger Setup:
    • Previous Area
      • Events
        • Player - Player 1 (Red) Presses the Left Arrow key
      • Conditions
      • Actions
        • Set TInteger2 = (TInteger2 - 1)
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • TInteger2 Equal to 0
          • Then - Actions
            • Set TInteger2 = 4
          • Else - Actions
            • Player Group - Pick every player in (All players) and do (Actions)
              • Loop - Actions
                • Cinematic - Fade out over 0.50 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
                • Camera - Pan camera for (Picked player) to (Center of Area_Centre_Base) over 0.00 seconds
                • Cinematic - Fade in over 0.20 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency



    Any help would be much appreciated! (+++ Reputation :goblin_good_job:) Thanks guys!!!! :goblin_yeah:
     
  2. Mythic

    Mythic

    Media Manager

    Joined:
    Apr 24, 2012
    Messages:
    7,888
    Resources:
    107
    Models:
    91
    Icons:
    5
    Maps:
    3
    Spells:
    6
    Tutorials:
    2
    Resources:
    107
    • Set Area_Centre_Base = Area_Centre_Base


    You set it to its current location, which is null.
    Just use TempPoint and an arrayed region because it is much easier to loop with.
     
  3. Sideblade

    Sideblade

    Joined:
    Aug 17, 2013
    Messages:
    63
    Resources:
    0
    Resources:
    0
    Could you post those Triggers for me bro? I dont really understand.... :cconf: What is a TempPoint and what is an arrayed region?
     
  4. Mythic

    Mythic

    Media Manager

    Joined:
    Apr 24, 2012
    Messages:
    7,888
    Resources:
    107
    Models:
    91
    Icons:
    5
    Maps:
    3
    Spells:
    6
    Tutorials:
    2
    Resources:
    107
    A TempPoint is a temporary point variable. An arrayed region is like this.

    Region[1]
    Region[2]
    Region[3]
    Region[4]

    So that your "TInteger2" could be the index. For example;

    Set TempPoint = (Center of (Region[TInteger2]))
    Camera - Pan camera for (Triggering player) to (TempPoint) over 0.00 seconds

    In your trigger, you set TInteger2 +1 every press of an arrow key. That means one press would make 'TInteger2' = 2, therefore returning Region[2].
     
  5. jonhysone

    jonhysone

    Joined:
    Oct 29, 2012
    Messages:
    1,241
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Exactly , You did store the same variable many times , Area= ... and Area= ... It's being repeated .
    You must add an array for 'Area' therefore you can change regions using integers . like this Area[1] ... [1] is the array . Now name each area with an increasing integer like this Area[1] .. Next Area[2]...and so on ..
     
  6. Sideblade

    Sideblade

    Joined:
    Aug 17, 2013
    Messages:
    63
    Resources:
    0
    Resources:
    0
    I can only get it like this:
    • Set TempPoint = TInteger2


    I dont know how to get it like this:
    • Set TempPoint = (Center of (Region[TInteger2]))
     
  7. Mythic

    Mythic

    Media Manager

    Joined:
    Apr 24, 2012
    Messages:
    7,888
    Resources:
    107
    Models:
    91
    Icons:
    5
    Maps:
    3
    Spells:
    6
    Tutorials:
    2
    Resources:
    107
    Oh my can you explain how you crossbred a point and an integer?
     
  8. Sideblade

    Sideblade

    Joined:
    Aug 17, 2013
    Messages:
    63
    Resources:
    0
    Resources:
    0
    Should it be a "Region"? Instead of an Integer?
     
  9. Sideblade

    Sideblade

    Joined:
    Aug 17, 2013
    Messages:
    63
    Resources:
    0
    Resources:
    0
    I can get it like this:
    • Set TempPoint = Area[TInteger2]


    But how do I get it as you have shown:
    • Set TempPoint = (Center of (Region[TInteger2]))


    ???

    :csad:
     
  10. Mythic

    Mythic

    Media Manager

    Joined:
    Apr 24, 2012
    Messages:
    7,888
    Resources:
    107
    Models:
    91
    Icons:
    5
    Maps:
    3
    Spells:
    6
    Tutorials:
    2
    Resources:
    107
    'Area' and 'Region' are the same. Basically 'Region' is just an example.
     
  11. Sideblade

    Sideblade

    Joined:
    Aug 17, 2013
    Messages:
    63
    Resources:
    0
    Resources:
    0
    Ok well I have set it as such:
    • Set TempPoint = Area[TInteger2]


    But still have the same problem....
    *sigh*
     
  12. Mythic

    Mythic

    Media Manager

    Joined:
    Apr 24, 2012
    Messages:
    7,888
    Resources:
    107
    Models:
    91
    Icons:
    5
    Maps:
    3
    Spells:
    6
    Tutorials:
    2
    Resources:
    107
    Did you move the Camera to TempPoint?
     
  13. Sideblade

    Sideblade

    Joined:
    Aug 17, 2013
    Messages:
    63
    Resources:
    0
    Resources:
    0
    Also the Variable "Area" has "no region" As seen here:
    [​IMG]

    Is it CORRECT?
     
  14. Sideblade

    Sideblade

    Joined:
    Aug 17, 2013
    Messages:
    63
    Resources:
    0
    Resources:
    0
    Nope :goblin_boom: lol, trying now....
     
  15. Sideblade

    Sideblade

    Joined:
    Aug 17, 2013
    Messages:
    63
    Resources:
    0
    Resources:
    0
    I don't know how to create the Trigger as such:
    • Camera - Pan camera for (Triggering player) to (TempPoint) over 0.00 seconds


    There is no option for that as far as I can see, as seen here:
    (Pan Camera for:____________________)
    [​IMG]

    Gonna Give you Awesome Guys Credit in my game for all your help!
    Once I get this right....
     
  16. Mythic

    Mythic

    Media Manager

    Joined:
    Apr 24, 2012
    Messages:
    7,888
    Resources:
    107
    Models:
    91
    Icons:
    5
    Maps:
    3
    Spells:
    6
    Tutorials:
    2
    Resources:
    107
    Broken pictures.
     
  17. jonhysone

    jonhysone

    Joined:
    Oct 29, 2012
    Messages:
    1,241
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Wait I'm making an example map . Just w8
     
  18. Sideblade

    Sideblade

    Joined:
    Aug 17, 2013
    Messages:
    63
    Resources:
    0
    Resources:
    0
    Look now.
     
  19. Mythic

    Mythic

    Media Manager

    Joined:
    Apr 24, 2012
    Messages:
    7,888
    Resources:
    107
    Models:
    91
    Icons:
    5
    Maps:
    3
    Spells:
    6
    Tutorials:
    2
    Resources:
    107
    It's the initial value, before all variables are declared.

    Event Response - Triggering Player.
     
  20. Sideblade

    Sideblade

    Joined:
    Aug 17, 2013
    Messages:
    63
    Resources:
    0
    Resources:
    0

    Ok thanks....