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.

Summons that Follow?

Discussion in 'Triggers & Scripts' started by pandamanana, Feb 4, 2007.

  1. pandamanana

    pandamanana

    Joined:
    Dec 26, 2006
    Messages:
    328
    Resources:
    1
    Maps:
    1
    Resources:
    1
    In most RPGs if you summon a creature it isn't directly controlled by you but follows you.

    I tried making this with triggers and it worked but not well. I don't want it to count the summons and order to follow every 2 secondsbecause it could interupt combat... someone help me^_^
     
  2. HappyTauren

    HappyTauren

    Joined:
    Nov 3, 2006
    Messages:
    8,408
    Resources:
    87
    Models:
    61
    Icons:
    23
    Packs:
    1
    Tutorials:
    2
    Resources:
    87
    heres system made by me, if creature is around you it will attack, if it's to far it will run to you. variable for hero is "player"
     

    Attached Files:

  3. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,837
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    This is more of an AI than a trigger/system.
    You have to give it basic AI capibilites to think where to go.

    Every 1-2 seconds you have to check how far away the summon is.
    If the summon is far away order it to attack move to MOVEPOINT
    If the summon is too far away order it to move to MOVEPOINT
    If the summon is close order it to do nothing or attack move to MOVEPOINT + random factors

    MOVEPOINT = basic orintation when compaired to hero.

    So lets say we have a necromancer.
    His skeltons you will want infront of him so the move point will be infront of him so that they tank.
    His skelton mages you want to the left or right of him since they are support.

    MOVEPOINT basicly is a location that is orintated from the facing of the summoner which allows more usefull and smart working AI for summons.

    Inorder to get them to move when you are standing still you can order them to move to movepoint +/- 100 to 200 on both x and y.

    Handle vars are recomended in making this AI.
     
  4. HappyTauren

    HappyTauren

    Joined:
    Nov 3, 2006
    Messages:
    8,408
    Resources:
    87
    Models:
    61
    Icons:
    23
    Packs:
    1
    Tutorials:
    2
    Resources:
    87
    anyway, this one works... i made long ago, im not sure if that's what he requested although i can always make it jass..
     
  5. pandamanana

    pandamanana

    Joined:
    Dec 26, 2006
    Messages:
    328
    Resources:
    1
    Maps:
    1
    Resources:
    1
    w/e thanks!