Please Help -- I cannot do Jass and I need a Jass Script for Modifying Creep Stats

K

Kevin

Guest
http://www.wc3campaigns.net/showthread.php?p=814522#post814522

This is a thread where I just basically flipped out, but it explains exactly what I am looking for.

I cannot do jass, if anyone here can provide me with the scripting I need then I would be very grateful.

Now, here's the condensed version of what I need, and don't worry about me giving credit in my map I always give credit to people who help.



I need a script I can run inside a trigger that goes off when a unit enters the playable map area-- condition: the unit is not a hero.

This script would then make the unit's:

Damage = to maxdamage variable
Defense/armor = to maxdefense variable
Level = to maxlevel variable

Now I can modify the unit's life without the need for a script, but I might as well do it in the same script.


That's all I need. I just need that simple script with instructions on how to stick it in my trigger and I am very happy. :D
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
No need to flame anyone, even if he isn't a member of this forum.

Working from the triggers you have at wc3c.
But I suggest that you add a condition to make sure that the attacked or attacking unit is a hero ^^. Also the agility ect of a hero isn't very likely to change just because a unit is attacked.

Anyway, first you have to implement the Bonus Mod, it is described there how you should do that but feel free to ask if there is something you don't understand.
It's extremely boring to implement the bonus mod so be prepared for that.

After that I suggest that you set all creeps armor to 0 , attack to something low like 1 - 4 and life to something low like 1.

Create a unit variable named Creep.

Then add this script at the lines below the bonus mod you added before.
Code:
function InitCreepBonus takes nothing returns nothing
   local unit u = udg_Creep
   call setBonus(udg_damagetemp, u, 0)
   call setBonus(udg_defensetemp, u, 1)
   call setBonus(udg_maxlife, u, 2)
   set u = null
endfunction
Note that this won't change the creep level, you can't manipulate that with jass code.

Example of creep spawning:
Code:
    Unit - Create 1 Furbolg Shaman for Neutral Hostile at spawnpoint facing Default building facing degrees
    Set Creep = (Last created unit)
    Custom script:   call ExecuteFunc("InitCreepBonus")

Remember to make a backup of your map before you start, also this is completely untested so there is a chance that it wont work on the first try ^^
 
K

Kevin

Guest
Yes, very sorry, I was just very upset with the guy.

Ok, thank you very much for helping, I will be more than happy to stick your name on the map as well.

Ok I will test it tonight, and try to see how that goes and give you a report on whether or not it works :D

While I agree that modifying the creature's armor and attack down to low numbers might normally be good, I want to leave them the same just to give a little bit more difficulty (especially considering the creatures won't be carrying items, but the heroes will). But, otherwise I will follow what you said.

tyvm :D
 
K

Kevin

Guest
:sighs:

ok I can't figure out how to implement these scripts into my map, I'll wait for my friend to get home and I'll bug him when he's on aim, see if he knows more about this. Unless you're willing to download my map and modify it, it looks like I'm a lost cause here for JASS because I'm just missing something.

I understand your script. I kinda understand BonusMod, I just don't understand how to import it and export it.

Also, it looks like Bonus mod increases in multiples of 2, so would I have to edit the numbers stored in my variables by dividing by 2 and subtracting 1?

My brain is just fried after looking at this for two hours. I just feel dumb.
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
You past all that script into the Custom Script part of your map, then you make the a integer array named BnsBit. Then save.
After that you have to make 40 abilities as descriped the script and change the 'XXXX' part in the script so it points to the right ability.
 
K

Kevin

Guest
Ok now I think know my problem then.

Where do I find the custom script portion of my map? What menu is it under? I can't find anything that says custom script except for a trigger that asks for something completely different.
 
K

Kevin

Guest
:sighs:

Man either I'm doing something wrong or there're some problems with BonusMod that WE just does not like.

" set u = null"
" call IntBonusMod(udg_BnsBit)"

At least you helped me though, I mean, at least I got this far.

Unless you want to take the time to look at the map I think I am going to go the route of setting it up as completely trigger operated neutral/hostile hero units and just forgoe the jass department entirely. This problem has just become so complex it might be better basing the creeps off of hero templates.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      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