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.

Trigger Help

Discussion in 'World Editor Help Zone' started by aznsteph, Feb 10, 2008.

  1. aznsteph

    aznsteph

    Joined:
    Dec 3, 2007
    Messages:
    117
    Resources:
    0
    Resources:
    0
    Well, im tried to copy a spell and but there was a trigger i had to change :
    • Unit - Create 1 Unit for (Owner of (Triggering unit)) at BA_Points[22] facing (18.00 x (Real((Integer A)))) degrees


    I need to change unit to my own unit but i dunno how to do the "(18.00 x (Real((Integer A)))) degrees" part, can someone clearly explain to me how to do it? Thanks~
     
  2. YoshiRyu

    YoshiRyu

    Joined:
    Jun 26, 2007
    Messages:
    686
    Resources:
    0
    Resources:
    0
    this part is the facing of the unit, integer A is a loop variable

    this line is probably extracted from a trigger wich create a circle of 20 units in a loop, the loop make A going from 1 to 20, so the facing of units go from 18° to 20x18=360°.

    what do you want to do with your trigger? a circle to? or a single unit? is its facing important? or not? is it has to be the same of something else? (like a caster unit?)
     
  3. Los_Tacos

    Los_Tacos

    Joined:
    Aug 5, 2005
    Messages:
    219
    Resources:
    7
    Maps:
    7
    Resources:
    7
    First, Arithmetic.
    on the left, type 18
    change the operator to X
    on the right, choose Conversion - Convert Integer to Real
    then choose For Loop Integer A.
     
  4. aznsteph

    aznsteph

    Joined:
    Dec 3, 2007
    Messages:
    117
    Resources:
    0
    Resources:
    0
    Ah ty alot, finally solved it...