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 haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Rubbed the right way, the genie is out of its lamp! The 12th Concept Art Contest Results have been announced.
    Dismiss Notice
  4. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  5. 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.

How do I

Discussion in 'World Editor Help Zone' started by Nikkone, Jun 28, 2009.

  1. Nikkone

    Nikkone

    Joined:
    Jul 11, 2008
    Messages:
    97
    Resources:
    1
    Maps:
    1
    Resources:
    1
    How do I make it so that if a unit attacks a building, he gains 1 gold? [Non Pillage]
     
  2. zarock

    zarock

    Joined:
    Jul 23, 2008
    Messages:
    16
    Resources:
    0
    Resources:
    0
    maybe you chould try giving the unit the abitly pillage to the unit in object editor srroy about that i dident see non pilage
     
    Last edited: Jun 28, 2009
  3. Nikkone

    Nikkone

    Joined:
    Jul 11, 2008
    Messages:
    97
    Resources:
    1
    Maps:
    1
    Resources:
    1
    View my above post. [NON PILLAGE].
     
  4. QirajiLord

    QirajiLord

    Joined:
    Apr 20, 2009
    Messages:
    106
    Resources:
    0
    Resources:
    0
    This should do what you want.
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) is A structure) Equal to True
      • <Whatever else you may want>
    • Actions
      • Player - Set (Owner of (Attacking unit)) Current gold to (((Owner of (Attacking unit)) Current gold) + 1)
     
    Last edited: Jun 28, 2009
  5. Nikkone

    Nikkone

    Joined:
    Jul 11, 2008
    Messages:
    97
    Resources:
    1
    Maps:
    1
    Resources:
    1
    How do I make so that if only a specific unit attacks a building, the owner of that unit gains a gold?
     
  6. kamermanbr

    kamermanbr

    Joined:
    Oct 9, 2008
    Messages:
    132
    Resources:
    0
    Resources:
    0
    • Events
    • Unit - A unit Is attacked
    • Conditions
    • (Unit-type of (Triggering unit)) Equal to NameOfUnit
    • Actions
    • Player - Set (Owner of (Attacking unit)) Current gold to (((Owner of (Attacking unit)) Current gold) + 1)



    anything like that?
     
  7. M4stah

    M4stah

    Joined:
    Feb 16, 2009
    Messages:
    711
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    When will you learn you should NEVER use a unit is attacked for these things. If I spam attack and stop I will keep gaining gold. Use a damage detection system found in the spells section
     
  8. Nikkone

    Nikkone

    Joined:
    Jul 11, 2008
    Messages:
    97
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Forget the attacking, how do I make it if that a unit AUTOCASTS a spell at a building, he gains a gold?
     
  9. Azeroc

    Azeroc

    Joined:
    Aug 15, 2008
    Messages:
    602
    Resources:
    0
    Resources:
    0
    I'll guess, you need that thing like Island Defense?