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. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. 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.

Mind Control

Discussion in 'Triggers & Scripts' started by {AR}Nazuel, Apr 11, 2004.

  1. {AR}Nazuel

    {AR}Nazuel

    Joined:
    Apr 11, 2004
    Messages:
    122
    Resources:
    0
    Resources:
    0
    recently i have been attempting to make a temporary mind control spell.... all attempts so far have failed...

    one way i tried is to use charm, but it would not a) give a buff b) only be temporary

    is there a way i can work around it being permanent or will i have to make a series of triggers?

    ps. if this has something similar has already been posted, please tell me :wink:
     
  2. Storm_Mage

    Storm_Mage

    Joined:
    Apr 10, 2004
    Messages:
    16
    Resources:
    0
    Resources:
    0
    1. Create a useless spell (mind controll)
    2. create 2 variables: 1)player (for example: mind_controll_player) 2)Unit (example Mind_ controll_target
    3. The trigger:

    Trigger
    A unit beginns the casting of a spell

    condition
    ability beiin cast = mind controll

    Aktion
    Change the owner of (target unit of spell) to owner of (triggering unit) Change color
    Set Mind_controll_target = (target unit of spell)
    Set Mind_controll_player = owner of (target unit of spell)
    Wait "X" Seconds
    Change the owner of Mind_controll_target to Mind_controll_player change color
    Set Set Mind_controll_target = Nothing
    Set Mind_controll_player = nothing
     
  3. {AR}Nazuel

    {AR}Nazuel

    Joined:
    Apr 11, 2004
    Messages:
    122
    Resources:
    0
    Resources:
    0
    thanx :D

    is there any way for me to have different duration times for different spell levels? eg. lv.1 20secs lv.2 40secs lv.3 indefinatley (?)
     
  4. oz02

    oz02

    Joined:
    Jan 9, 2004
    Messages:
    1,205
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    Just make different triggers for the different levels and make it that when he upgrades the ability level have it stored in an Integer Variable.
     
  5. JunJee

    JunJee

    Joined:
    Nov 2, 2004
    Messages:
    49
    Resources:
    0
    Resources:
    0
    Can someone please explain this more exactly?
    I don't understand how to make it that a variable grows with an ability-level.
    there is no trigger like "if hero raises ability-level"
    I really need that spell with more levels, but I don't know how to make it >_<

    Thx in advance

    MfG JunJee
     
  6. RaZoR

    RaZoR

    Joined:
    Mar 26, 2004
    Messages:
    350
    Resources:
    0
    Resources:
    0
    @ Ozo2: not a good solution, sry. just use:
    wait(arithmetic(convertintegertoreal(level of ability "yourability" for unit casting unit/variablecaster))*e.g.15)

    @ JunJee: Ozo2 meant sth. like the following:
    Code (Text):
    event - unit learns ability
       condition - learned ability = "yourability"
       action: set          variable "integervar."  "integervar." + 1
    this "integervar" could be used then in the wait action. but use the other solution without an extra var.

    @ storm_mage: u should use casting unit instead of triggering unit
     
  7. Daelin

    Daelin

    Joined:
    Jul 20, 2004
    Messages:
    3,111
    Resources:
    41
    Models:
    22
    Icons:
    3
    Tutorials:
    16
    Resources:
    41
    Try Raven's Seduce. It kinda does the job and it's good enough. Believe me...
     
  8. The_Raven

    The_Raven

    Joined:
    Jun 10, 2004
    Messages:
    602
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    Good enough? *Fakeing Shock* What's wrong with it?

    ~The_Raven
     
  9. Daelin

    Daelin

    Joined:
    Jul 20, 2004
    Messages:
    3,111
    Resources:
    41
    Models:
    22
    Icons:
    3
    Tutorials:
    16
    Resources:
    41
    Nothing... I just mentioned that it was good. perhaps I didn't say the best expression. My english is not excellent. Sorry for any incovenience. It was good enough to receive a Director's Award anyway... ;)