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. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. 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.

Example of small set of Custom Natives

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

  1. MindWorX

    MindWorX

    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

    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

    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

    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