Real JASS function?

Matrixboy

New Member
Reaction score
1
I was wondering if there was some function that would be able to return what model a unit has, and also a function to change the model of a character in-game.

I wanted to throw a little teaser in my map and thought something like "Kawarimi" (from Naruto) would be a funny idea.

I have been working with JASS for only a few months now, so sorry for asking a newbish question T.T.

Thanks in advance!

Sincerely,
Matrixboy​
 

Matrixboy

New Member
Reaction score
1
There are no such natives in Jass.

Darn, so the only theoretical way to do this then would be to store all of the stats in a variable, keep the spells, and replace units? (Or something similar... I just jotted this down quickly).


Thanks for the help.
 

Chocobo

White-Flower
Reaction score
409
Darn, so the only theoretical way to do this then would be to store all of the stats in a variable, keep the spells, and replace units? (Or something similar... I just jotted this down quickly).


Thanks for the help.
Or you can learn C+ and C++ to inject your own blizzard.j inside the map with your own function and your own effect. But I never exploited Warcraft 3 program scripts, (not .j, but .exe and all the rest), so I do not know how you will do that.
 

Matrixboy

New Member
Reaction score
1
Or you can learn C+ and C++ to inject your own blizzard.j inside the map with your own function and your own effect. But I never exploited Warcraft 3 program scripts, (not .j, but .exe and all the rest), so I do not know how you will do that.
I was learning slight C++ before, however I didn't get very far into it.

I could actually do that? I didn't know that :\

Thanks! I may do that if I ever get back into learning C++.
 

phyrex1an

Staff Member and irregular helper
Staff member
Reaction score
447
Or you can learn C+ and C++ to inject your own blizzard.j inside the map with your own function and your own effect. But I never exploited Warcraft 3 program scripts, (not .j, but .exe and all the rest), so I do not know how you will do that.
Seriously, this isn't something that you should suggest as a solution. First of all it will render the map unplayable on bnet and a player whould probably need an extra .exe just to load the map.
 

Chocobo

White-Flower
Reaction score
409
Seriously, this isn't something that you should suggest as a solution. First of all it will render the map unplayable on bnet and a player whould probably need an extra .exe just to load the map.
Hmm. Yes, it would be hard and it isn't really a solution. ;)

phyrex1an did a double kill on me. :p
So do I on myself. :confused:


Matrixboy said:
I have been working with JASS for only a few months now, so sorry for asking a newbish question T.T.
It isn't a noobish question.
 

Matrixboy

New Member
Reaction score
1
So, there would be no way to accomplish this, for the exception of a really long trigger, that saves all the stats/spells, saves that character to game cache, creates a new unit of the same type (as the target), and add stats to that?...
 
L

LucidWay

Guest
Well if you want to replace a unit's model the best way would be to make a new unit with the same stats and a different model. Then use like ReplaceUnitBJ(unit, newunitID, unitstatemethod) To switch out the old unit with the new one. Not sure how this handles hero's items etc.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • jonas jonas:
    That sounds like fun!
    +1
  • The Helper The Helper:
    it was a blast!
  • The Helper The Helper:
    I am going to post the Youtube of the investigation in the forums when it is ready
    +1
  • jonas jonas:
    cool!
  • vypur85 vypur85:
    Sounds cool TH.
  • tom_mai78101 tom_mai78101:
    I was on a Legend of Zelda marathon...
  • tom_mai78101 tom_mai78101:
    Am still doing it now
    +1
  • jonas jonas:
    which one(s) are you playing?
  • jonas jonas:
    I played a little bit of the switch title two weeks ago and found it quite boring
  • The Helper The Helper:
    just got back from San Antonio this weekend had the best Buffalo Chicken Cheesesteak sandwhich in Universal City, TX - place was called Yous Guys freaking awesome! Hope everyone had a fantastic weekend!
    +1
  • The Helper The Helper:
    Happy Tuesday!
  • The Helper The Helper:
    We have been getting crazy numbers reported by the forum of people online the bots are going crazy on us I think it is AI training bots going at it at least that is what it looks like to me.
  • The Helper The Helper:
    Most legit traffic is tracked on multiple Analytics and we have Cloud Flare setup to block a ton of stuff but still there is large amount of bots that seem to escape detection and show up in the user list of the forum. I have been watching this bullshit for a year and still cannot figure it out it is drving me crazy lol.
    +1
  • Ghan Ghan:
    Beep boop
    +1
  • The Helper The Helper:
    hears robot sounds while 250 bots are on the forum lol
  • The Helper The Helper:
    Happy Saturday!
    +1
  • The Helper The Helper:
    and then it was Thursday...
    +2
  • tom_mai78101 tom_mai78101:
    And then Monday
    +1
  • The Helper The Helper:
    I got the day off today!
    +1
  • tom_mai78101 tom_mai78101:
    How...? (T-T)
  • The Helper The Helper:
    I took the day off. I work for myself so I can do that.
    +1
  • Varine Varine:
    Well I'm already over summer
  • jonas jonas:
    varine! good to see you
  • jonas jonas:
    what's going on, what's got you going
  • The Helper The Helper:
    good to see you varine hope you are well my friend

    The Helper Discord

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top