Search results

  1. dudeim

    Another simple math question.

    Hey guys, I again am having some problems with math. Currently I'm calculating 3 points at a x radius around a spell casting unit, 3 projectiles should fly to those points, somehow though my calculations are wrong (as I'm no math genius I have no idea why it's not working or even if I'm...
  2. dudeim

    Help with some Math (Probably easy)

    Hey, as I'm not that much of a math genius, well not much of a math anything I need some help with a calculation. What I want to do is I'm gonna fire an arrow towards an angle that the player can just click. So the player clicks to his precise left (for example) the arrow flies that way...
  3. dudeim

    Trackables, how exactly do they work?

    Hey, I want to create a full screen hero selection system using trackables, but I really have no idea how to use them. I've read here and there that there is no triggering player when someone clicked a trackable so how would I go around that for example? And what's the best way to place them...
  4. dudeim

    Static method in an interface?

    Hey, I'm currently wanting to use a static method in an interface. Ex: interface Stuff method randomInterfaceMethod takes nothing returns nothing defaults nothing static method randomStaticInterfaceMethod takes nothing returns nothing defaults nothing //so how is this possible...
  5. dudeim

    Setting extended tooltip (abilities) using textmacro's

    Hey, I'm currently testing with creating abilities using textmacro's and I faced a problem. I couldn't add extended tooltips to the ability using textmacro's. Here is the line I use: //! i makechange(current,"aub1",1,"Spell testing") The spell is based of channel and the "aub1"...
  6. dudeim

    Need help storing diffrent struct into one array.

    Hey, I'm currently facing a little problem. I'm having multiple structs that I need to store into one array (I generate the structs with textmacro's except for the last struct D in the example) all those structs have the same variables and variable names also the same methods exist there. So...
  7. dudeim

    Jass globals in textmacro's (lua)

    Hey, I'm currently bussy with textmacro's and I wanted to know how you can use a jass global inside a textmacro like this: globals integer TestGlobal = 1 endglobals //! textmacro TestGlobals //dunno if this is how it calls but just think it is correct:P //! textmacroextend...
  8. dudeim

    Help with textmacro

    Hey, I'm creating my first textmacro but it keeps giving me an error. //this is how I call it //! runtextmacro Create("0","2","Q") //! textmacro Create takes x, y, hotkey //! externalblock extension=lua ObjectMerger $FILENAME$ --gives an error in this line //! i...
  9. dudeim

    Scope initializers stopped working

    Hey, I'm currently sitting with the problem that scope initializers do not work anymore, so all my spells which use scope initializers do not trigger nor does most (if not all) of the other scope initializers. If I do something like this nothing shows: scope bla initializer blas private...
  10. dudeim

    Moving a unit in a circle

    Hey, I'm trying to move a projectile (unit) in a circle but as i'm really bad with math and have no idea how I would even do this:P I've seen some spells that use this but I couldn´t really figure out how it works and I want to learn how to use it myself not just C&P. Can anyone help me...
  11. dudeim

    Changing inputable conditions?

    Hey, first of all sorry for the bad title couldn't think of a good one. Ok so I have a problem in my code I have a struct in which a function is ran every x seconds (user can input the x themselfs) now I want to add a check every time that function runs so it can either not go off or it can...
  12. dudeim

    Best Projectile system

    Hey, I'm currently in need of a projectile system and as there are a few around what is the best? (as in efficiency and user friendlyness) Thanks!
  13. dudeim

    Struct array members all have the same value for each instance

    Hey, ok so I'm having a problem with array struct members. //creating a random struct with struct array member struct test real array value[25] //so this is a simple real array with 25 indexes (or instance dunno precisly but doesn't matter) endstruct //ok now i'm gonna use another...
  14. dudeim

    Is unit dead?

    Hey, got a little question there are a few ways to check if a unit is dead, but all have their disadvantages. So the question is if the "A Unit Dies" event triggers is the unit really considered dead so can't there be any way to revive him by setting his hp higher? (I'm not talking about the...
  15. dudeim

    Help with custom event

    Hey, I'm making a system which triggers a custom event. Now I want something like when the event triggers you can acces the struct data of the system in the trigger that is triggered by the event. library x struct x real x endstruct endlibrary function a takes .. //here I should be able...
  16. dudeim

    Detecting a structs instance

    Hey, I'm making a system which places a debuff on a unit, but I have a little issue with it because: Unit A casts a debuff A on Unit B with a 10 sec duration 5 seconds later Unit A casts a debuff A on Unit B (again) For example the debuff is a dot the dot will not stack or remove the...
  17. dudeim

    Help with custom create method

    Hey, I'm having a bit of a problem with creating a custom create method the way I want to. Quick example of how I want to do it (may not even run and could be a few errors in it): library a struct Unit integer value1 integer value2 unit U //etc.. anything i need in here...
  18. dudeim

    Help with initializing a struct array to each player

    Hey, I got a little problem with initializing the struct I have Here is the script: library PlayerData struct Playor extends array //using Playor as player is a var type and Player is a function player ThisPlayer implement PlayerInfo static method...
  19. dudeim

    Some help with the Objectmerger

    Hey, I read a tutorial about the object merger and saw that you can change values of a unit during game say I want to add 2 armor or whatever. I understood that this would go for every unit of that type, but now say I want to only change it for 1 unit. Ex. I have a Unit A and a Unit B they are...
  20. dudeim

    Problem with a spell: Scope symbol redeclared: integer

    Well as you can read in the title i'm getting this error: "Scope symbol redeclared: integer" in this trigger scope ABlessedShield initializer Init globals...
Top