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.
  • Varine Varine:
    I have a bunch of community service I have to do, and I have a feeling there will be a lot of snow shoveling involved now
  • The Helper The Helper:
    don't know why people choose to live in that kind of weather :)
  • Varine Varine:
    Well
  • Varine Varine:
    My job is here
  • Varine Varine:
    I was born here man I didn't choose shit
  • Varine Varine:
    And also, I keep moving away and it doesn't get any better. I moved to San Antonio and shit froze there AND we had blackouts
  • tom_mai78101 tom_mai78101:
    I'm back, suffering from severe jet lag.
  • The Helper The Helper:
    Cold is following your ass around Varine - I just dont think I could handle a snowy winter.
  • The Helper The Helper:
    Welcome Back Tom!
  • The Helper The Helper:
    I hear that taking a Melatonin around your normal bedtime can really fix jet lag
  • tom_mai78101 tom_mai78101:
    Yeah, I also heard about that as well. I think I'm good. I'm just lucky it's the weekend so I have some time to readjust.
    +1
  • Varine Varine:
    It was a fucking blizzard today, shoveling was an effort in futility.
  • Varine Varine:
    Melatonin gives me nightmares
  • Varine Varine:
    They had me shoveling out the parking lot for the jail. Fucking pointless, they need a blow.
  • Varine Varine:
    Well they gave me a snow blower but it was too wet to do much with with other than compact everything. Oh well, the cop cars can get into there now when they arrest people I guess
    +1
  • The Helper The Helper:
    I shit you not we are Number one on Google for Banana Bread Recipe
  • jonas jonas:
    xD
    +1
  • The Helper The Helper:
    Need Web Design Contractor that knows Word Press, Woocommerce and Elementor to help with the company that sponsors this site
  • The Helper The Helper:
  • The Helper The Helper:
    I am going to be AFK most of this weekend has I have a friend coming into town for his company christmas party and I am going to be busy with that this weekend.
    +1
  • The Helper The Helper:
    541 Active Users and this number has been pretty steady give or take some. The bots are hammering us.
  • The Helper The Helper:
    I have been posting a bunch of recipes and Google is loving them. I mean OK my shit is good but how does google know LOL!

    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