1. The mythological era has spawned some interesting characters around. Check them out and be sure to vote for them in the 30th Poll of the Texturing Contest.
    Dismiss Notice
  2. The 20th iteration of the Terraining Contest is upon us! Join and create exquisite Water Structures for it.
    Dismiss Notice
  3. Hivers united and created a bunch of 2v2 melee maps. Vote for the best in our Melee Mapping Contest #4 - Poll!
    Dismiss Notice
  4. Check out the Staff job openings thread.
    Dismiss Notice

Example of small set of Custom Natives

Discussion in 'Computer Tech' started by MindWorX, Jul 9, 2007.

  1. MindWorX

    MindWorX

    Blizzard Developer

    Joined:
    Aug 3, 2004
    Messages:
    690
    Resources:
    5
    Tools:
    1
    Tutorials:
    4
    Resources:
    5
    http://video.google.com/videoplay?docid=6507697271943368938&hl=en

    I know the quality is very low, but it's just an example.
    It shows my very own made-in-boredom-nativeset "Mouse", it's simple, it has the following
    Code (vJASS):
    native GetMouseX takes nothing returns integer
    native GetMouseY takes nothing returns integer
    native SetMouseX takes integer x returns nothing
    native SetMouseY takes integer y returns nothing
    native SetMousePos takes integer x, integer y returns nothing

    Very simple, yet not included in wc3 for some reason.

    What you see in the video is me moving a unit around only by moving the mouse cursor.
     
    Last edited: Jul 9, 2007
  2. brad.dude03

    brad.dude03

    Joined:
    Mar 15, 2006
    Messages:
    9,267
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    That's an awesome idea and it seems to work effectively, albeit not the most accurately. Perhaps that would improve with experience though......

    GJ either way ;)
     
  3. MindWorX

    MindWorX

    Blizzard Developer

    Joined:
    Aug 3, 2004
    Messages:
    690
    Resources:
    5
    Tools:
    1
    Tutorials:
    4
    Resources:
    5
    What do you mean? :)
    Thanks :D
     
  4. Craka_J

    Craka_J

    Joined:
    Mar 25, 2004
    Messages:
    4,934
    Resources:
    1
    Maps:
    1
    Resources:
    1
    lol looks funny ^.^ awesome idea though.
     
  5. brad.dude03

    brad.dude03

    Joined:
    Mar 15, 2006
    Messages:
    9,267
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    Well, its the movement. I'm assuming its not too easy to control your person, but would you say be able to guide your character through a maze using that system? Is it accurate enough to do that?
     
  6. MindWorX

    MindWorX

    Blizzard Developer

    Joined:
    Aug 3, 2004
    Messages:
    690
    Resources:
    5
    Tools:
    1
    Tutorials:
    4
    Resources:
    5
    Yea, easily is, the way i used it makes it as precise as the sens of your mouse is.
     
  7. Kaitech[SanD]

    Kaitech[SanD]

    Joined:
    Apr 11, 2007
    Messages:
    1,927
    Resources:
    0
    Resources:
    0
    Try sticking it on YouTube, they have smaller windows which means better quality.
     
  8. MindWorX

    MindWorX

    Blizzard Developer

    Joined:
    Aug 3, 2004
    Messages:
    690
    Resources:
    5
    Tools:
    1
    Tutorials:
    4
    Resources:
    5
    Might do that with the next video.
     
  9. atropos007

    atropos007

    Joined:
    Jun 21, 2007
    Messages:
    116
    Resources:
    0
    Resources:
    0
    rofl

    smaller windows mean better quality? then why people want to have big monitors, when they could have better quality on small ones? -_-
     
  10. PitzerMike

    PitzerMike

    Joined:
    Nov 25, 2003
    Messages:
    204
    Resources:
    3
    Tools:
    3
    Resources:
    3
    Would be hopeless to explain it to you ...


    On Topc: Yay, I highfive you, Mindy!
     
  11. atropos007

    atropos007

    Joined:
    Jun 21, 2007
    Messages:
    116
    Resources:
    0
    Resources:
    0
    .safety dance
     
  12. Hakeem

    Hakeem

    Joined:
    May 30, 2007
    Messages:
    2,503
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Custom natives? How do you do that?
     
  13. atropos007

    atropos007

    Joined:
    Jun 21, 2007
    Messages:
    116
    Resources:
    0
    Resources:
    0
    jAPI by xttocs. There is a download for it on wc3campaigns as well as tutorial for it. You need borland c++ compiler btw