Search results

  1. C

    Pass a variable by static value

    If you pulled your head out of the sand, you would have seen that I already have my own solution for a problem that would require this. Secondly, you must not understand the concept of passing something by value, because the only thing you can use in a condition is a statically typed value or a...
  2. C

    Pass a variable by static value

    Looks like saw792 didn't actually read through the post, the idea of the thread was a nice workaround to pass an integer by value. Unfortunately you must have never tested a trigger before, because you can't actually pass an integer by value in JASS with this situation. The TriggerAddCondition()...
  3. C

    Pass a variable by static value

    Alright it is good to know that basic types will exist properly in their scope. Though it doesn't help me in trying to pass something by value. Hopefully someone who hasn't read this will have a nice little juke to make it work. Sgqvur, you also shouldn't post just to pad your post count.
  4. C

    Pass a variable by static value

    1. I'm trying to achieve the way to pass an integer by value. I can't be any more clear, and this is the topic of the thread. 2. I'm perfectly aware there isn't a simple built in way to do this in JASS, which is why I am posing on here. 3. I am 100% aware that these are two expressions, I...
  5. C

    Pass a variable by static value

    Clearly the idea is to save the value of the global by passing it by VALUE to the index of the array in the condition. If you don't understand what I mean by passing something by value as opposed to reference then you probably haven't done any coding outside of JASS and probably will not be able...
  6. C

    Pass a variable by static value

    That would mean any variable I utilize is passed solely by reference, and not by value. As you see in that global the global will be again like I said udg_ItemRecipe_ParentKey[udg_ItemRecipe_Counter] as oppossed to by value udg_ItemRecipe_ParentKey[1]
  7. C

    Pass a variable by static value

    Well then please explain why that code continues to evaluate dynamically, causing only the final recipe added to work successfully? EDIT: Let me try destroying the reference for the trigger and see if that makes a difference.
  8. C

    Pass a variable by static value

    function ItemRecipe_2items_Conditions takes nothing returns boolean local integer asdf set asdf = udg_ItemRecipe_Counter if ( (UnitHasItemOfTypeBJ(GetTriggerUnit(), LoadInteger(udg_ItemRecipe, udg_ItemRecipe_ParentKey[asdf], 1)) == true) and (UnitHasItemOfTypeBJ(GetTriggerUnit()...
  9. C

    A question on Trigger Creation

    Thanks, all I needed to know is that it was not possible to pass a parameter via the TriggerAdd*() set of functions.
  10. C

    A question on Trigger Creation

    Passing a parameter really isn't the wrong concept for what I want to do here. I want a trigger that is created based off those parameters.
  11. C

    A question on Trigger Creation

    Using Get***() still won't fix the fact that I want to pass parameters to the Action section of the trigger.
  12. C

    A question on Trigger Creation

    I just gave you an example of what I wanted to do, create a trigger that will display the text of that function when an item is acquired. All I want to know is the syntactically correct way to pass that argument because the compiler doesn't give any useful feedback on the issue, and things like...
  13. C

    A question on Trigger Creation

    Realistically it will end up as a custom system for my map, based around item recipes. And I have no desire to use any that are already on here.
  14. C

    A question on Trigger Creation

    Well then has a workaround been implemented?
  15. C

    A question on Trigger Creation

    I'm not particularly sure if what I am trying to do is legal within JASS, but the compiler and any syntax checker I am using is basically saying there is an error without describing it. The basic questions is it possible to pass parameters for the Condition and Action portion of a trigger...
  16. C

    Some questions pertaining to JASS and vJASS

    Way ahead of you on making that thing global now that I know it needs to stay in memory.
  17. C

    Some questions pertaining to JASS and vJASS

    Thanks for point out the error lied with destroying the region. I was under the impression that the TriggerRegisterEnterRegion would have preserved its own local copy of the region, which isn't the case. That is why I was removing everything after registering it. Like I said the condition is...
  18. C

    Some questions pertaining to JASS and vJASS

    I'm not particularly worried about optimizations like using coordinates at the time being, I just want the damn thing to fire.
  19. C

    Some questions pertaining to JASS and vJASS

    Anyways regardless of the vJASS integration, as I'm not too preoccupied with that. Regular JASS is good enough for my purposes as of now. I still have yet to get the local trigger to fire even once. For testing purposes I've removed conditions and it still hasn't executed. Anyone able to tell me...
  20. C

    Some questions pertaining to JASS and vJASS

    Well I hope you have it integrated with World Editor so that I don't have to manually syntax check / compile.
Top