Search results

  1. L

    Best way to check for an Item in Inventory?

    What are the different ways to check for an item in the Inventory? I have seen functions like the one pasted below, but are the other options? What methods do you prefer? Thanks function Trig_Mix_Potions_Func014Func003Func006Func002C takes nothing returns boolean if ( not (...
  2. L

    Making a Function Work across Multiple Triggers

    I have about 20 triggers that need to call this simple function at some point. However, I get an error when trying to call the trigger from another trigger. Error: Expected a Function Name I can get the trigger to work if I paste the function in each of the 20 triggers, if I also modify the...
  3. L

    Changing the height of the Volcano (effect)

    Is it possible to change the height of the animation for the Volcano (effect)? I would like the effect and animation to remain the same, but greatly reduce the height. Thanks.
  4. L

    Array Question - Referencing Element in an Array

    How do we say "If this integer is equal to ANY element of the array, then do this?" function FS_Action takes nothing returns nothing local integer array c set c[0]=24 set c[1]=48 set c[2]=72 set c[3]=96 set i = i + 24 if i = c[n] then //this is the part that needs help ... ...
  5. L

    Critical Strike

    How do I make Critical Strike in JASS? I would like the full code please. Thanks. *EDIT* I am trying to accomplish 2 things: 1) Learn more about Triggers/JASS 2) Create a Trigger that calculates/prints the DamageOnEvent (attack) If I can see how this Critical Strike Trigger works, I...
Top