Your "success" so far

Prometheus

Everything is mutable; nothing is sacred
Reaction score
590
Trying to get "Selected Unit by Player". Any ideas?
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
You can access the selected units through Get units in unit group, selected units for player, I suppose.
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
I wonder if there are leaks.

Blizz added an automatic deletion so that it keeps track of the objects, and when nothing else in the script references them, they will be deleted from the memory. However, only these types apply:
  • abilcmd
  • bank
  • camerainfo
  • marker
  • order
  • playergroup
  • point
  • region
  • soundlink
  • string
  • text
  • timer
  • transmissionsource
  • unitfilter
  • unitgroup
  • unitref
  • waveinfo
  • wavetarget

The rest need to be destroyed with their corresponding native.

>Trying to get "Selected Unit by Player". Any ideas?
Maybe try:
JASS:
native unitgroup    UnitGroupSelected (int inPlayer);


Or maybe run a loop through the existing units:
JASS:
native bool         UnitIsSelected (unit inUnit, int inPlayer);


But that would probably be a bit ugly. :p
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Transferring data from map to another, which works in multiplayer maps. Native stat saving anyone?

Use "-save <insert message here>" to save the string. "-load" to recall it. Restarting the map/restarting your computer will not lose it.

Trigger:
  • Untitled Trigger 002
    • Events
      • Game - Map initialization
    • Local Variables
    • Conditions
    • Actions
      • Bank - Open bank &quot;Savedata&quot; for player 1
      • Variable - Set Bank = (Last opened bank)
      • Bank - Preload and synchronize bank &quot;Savedata&quot; for player 1


^ Must be done to set your bank up, preloading is for multiplayer only.

Trigger:
  • Untitled Trigger 001
    • Events
      • Game - Player Any Player types a chat message containing &quot;-save &quot;, matching Partially
    • Local Variables
      • Untitled Variable 001 = (Entered chat string) &lt;String&gt;
    • Conditions
    • Actions
      • Bank - Store string (Substring((Entered chat string), 6, (Length of (Entered chat string)))) as &quot;1&quot; of section &quot;1&quot; in bank Bank
      • Bank - Save bank Bank


Banks must be saved before the game is exited/restarted, or the bank will not cross over to other maps, yet will still act as a pseudo hashtable.

Trigger:
  • Untitled Trigger 001 2
    • Events
      • Game - Player Any Player types a chat message containing &quot;-load&quot;, matching Exactly
    • Local Variables
    • Conditions
    • Actions
      • Bank - Open bank &quot;Savedata&quot; for player 1
      • General - Custom Script: gv_string = BankValueGetAsString (gv_bank, &quot;1&quot;, &quot;1&quot;);
      • Debug - Display (Text(string)) as debug output using Type 1, and Do display it in the game window


Had to use custom script for loading the data as the GUI equivalent is not yet there it seems.

^ Err... Nevermind on that message, they're just sneaky. Have to search for them within "function > Bank > Load X value"...
 

Attachments

  • Banks.zip
    30.1 KB · Views: 248

cleeezzz

The Undead Ranger.
Reaction score
268
someone please explain how integer loops work in this.. it makes no sense to me

(unless its just that the converted GUI looks ugly) but i dont have the editor open right now but it was like...

if (1>0||1==10 && 1<0) {
while (lv_i < 10) {

(trying to do a integer i 0 to 10 loop)

(i freehanded that by memory when i only saw the thing for like 20 seconds so its probably wrong)
 

xxxtrickyxxx

(o Y o)
Reaction score
64
uh oh... now im going to have to waste endless hours entertaining myself with all the first and third person mechanics Sc2 has to offer. >.<

i can already forsee myself joining a team looking to make a decent shooter. O.O
 

buga6138

New Member
Reaction score
0
Trigger:
  • Untitled Trigger 003
    • Events
      • UI - Player 1 clicks Left mouse button Down.
    • Local Variables
    • Conditions
    • Actions
      • Unit - Order Zuk&#039;rah [109.25, 33.00] to ( Move targeting (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))) (Replace Existing Orders)
      • Environment - Create a Small Protoss explosion at (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))


To move to the clicked position, effect is there so you can see where you clicked.

Where are you getting the "Move" command?

When I select Issue Order Actions, and in (Ability Command) there is no "Move" available for selection

edit: also, how are did you change "Target Type" to "Point" when selecting Ability Command? it is grayed out for me
edit2: nvm, i figured it out.. it was a pesky parenthases
 

kingbdogz

The Edge of Eternity is upon us.
Reaction score
123
A lot of things are confusing for me at the moment, I'm sure I'll get used to it... Anyway, has anyone noticed that you can't change the scale of the model in the data editor? So I can't make mega Drones :(
 

sLsIDK

New Member
Reaction score
13
Transferring data from map to another, which works in multiplayer maps.

Can multiple players be in different maps at the same time? Meaning like a giant ORPG and people are running around to different portions of the map.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
I do not know, it has not been tested. All I know is that you can transfer data through an xml between maps natively.

Edit: Found the issue in my attack trigger, no longer crashes.
 

Zwiebelchen

You can change this now in User CP.
Reaction score
60
To attack a nearby unit using C, had to go through so much to find the value within the editor to turn auto-attack off.
Just look how the workers data fields are set-up and there you go.
Workers have turned-off auto attack.


Do banks work in multiplayer too? That would be the end of having to enter ridicolously long savecodes ...
 

Daskunk

SC2 Forum MVP - TheSkunk #386
Reaction score
186
As you can see from this picture, I've made a hero that can level up, has stats, and has an inventory. Needs a lot of work though.


. . . . :( Heey.. It seems like a big achievement to me. The data editor is 10x harder then triggers. :p
 

Attachments

  • Screenshot014.Jpg
    Screenshot014.Jpg
    622.8 KB · Views: 403

Daskunk

SC2 Forum MVP - TheSkunk #386
Reaction score
186
Pretty sweet. I've never liked making object data... :)
Right now, I set agility to give him movement and attack speed... Instead, when he gains an agility point he loses pretty much all of his stats.. o_O
 

Romek

Super Moderator
Reaction score
964
The Data editor looks ridiculously complicated...
 

Daskunk

SC2 Forum MVP - TheSkunk #386
Reaction score
186
The Data editor looks ridiculously complicated...
"The data editor can literally edit all of the game files, . . ." -Blizzard

No crap.. Takes so many freaking steps to do the simplest things, and its so dis-organized and confusing. :p
 

Attachments

  • Test Map Heros.zip
    94 KB · Views: 254

Cookiemaster

New Member
Reaction score
36
Pretty much every object is attached to other objects in multiple ways. (Units themselves don't even have models!)

It would be nice if we managed to organize the objects and made an overview of which objects are linked to other ones.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/
  • The Helper The Helper:
    I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top