[Andrewgosus problem section]

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> If the hero is attacked, it will help the hero if not, the unit will just follow the hero?

Something very simple that might just work would be to periodically order it to attack-move to the position of the Hero.


> Can I (how) create a game cache of an item?

Hm... what?
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Yes, I know. Does that mean I cant save/load an item thats not in the heroes invetory, but is on the ground?

~You gave me an excellent idea.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Is there anything special about that item?

Gamecaches also accept integers for example.
You could store "0 as <item name>" if the item is missing, and "1 as <item name>" if it's there.
Same for the charges, if any.
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
I think I go with your first idea. Ill create a unit, add him inventory, create him the items and store the unit.

But im still curious about the AI part. There isn't a single tutorial on this site that really teaches how to create one.:p
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> I'll create a unit, add him inventory

If you create one of the default Heroes, you don't need the inventory part.

However, if you
> create him the items

Then there really isn't a need.
Just store "hasitem = yes" or "hasitem = no" as strings, and create, or not, the item when you need it...

Giving it to him would leave the item unchanged.
Well... without any more info on what's so special...

Of course, if there's several, a Hero is just the thing :p


Anyway,
> There isn't a single tutorial on this site that really teaches how to create one.

That's because every map pretty much needs its own...
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Im looking for that doodad/destructible whats on the picture, the stair, but I was unable to find it. Whats its name? Stairway or stairs, steps, can't remember.

Stairs.jpg
'

Found it! Ramp naga!
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Well, I haven't used this thread a long time. I have learned so much by now.


But I am still wondering, what does the trigger queue do?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
It queues triggers...

Once a trigger is running its actions, it will do so until either it meets a "wait" action, or it's simply done.
Now, it might happen that several other triggers also would like to run their actions... but, there's already one busy.
So they wait for their turn.
This waiting happens in the trigger queue.

Every trigger that says "Hey, my event happened and the conditions meet" is added to that list.
And they work their actions in order.

Generally, messing with the trigger queue is not a good idea.
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Thank you.

How would I be going to create a standard parabola in WE?

y = a*x(Squared) (Opening up)
(y = -a*x(Squared)) (Opening down)
 

Jazradel

Helping people do more by doing less.
Reaction score
102
y=a*x^2+c
c = offset, probably 0
y = height you want it to go to
a = y / (0 ^ 2 + c)
Then loop through x, starting from -(distance/2) to (distance/2)

For instance, if you wanted your unit to jump 500 high, across 500 then you'd do something like this:
A = 500 / (0 ^ 2 + c)
For every integer A from -250 to 250 do actions:
Set Flying Height of Unit to A * Integer A * Integer A + C
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Thank you.


Why does the little blue crosshair dissapear, if I make a new unit target ability based off channel?

Data - Options, Visible, Targeting Image are set.
Data - Target Type, Unit Target is set.
Stats - Targets Allowed are set, same as for 'Storm Bolt'.
Data - Base Order is thunderbolt.
Text - Order String - Use/Turn On is thunderbolt.


Any help appriciated.

EDIT:

The crosshair dissapears, if I move the cursor outside the red box.

prblem_scr.jpg
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
blind.gif


Am I blind, or the "Game Cache - Load Real Value", "Game Cache - Load String Value",
"Game Cache - Load Integer Value" and "Game Cache - Load Boolean Value" functions are completely missing?

blind2.gif


I can do it in JASS, but are those functions missing on purpose from the GUI menu bar?

And the question asked in the previous post is still in the air.
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Nice. Found it.


If I store an unit with label and then store another unit with the same label,
it obviously overwrites the previously stored unit? Meaning, I have to give each
stored unit an unique label? (Same for stored reals, integers, strings or booleans)

Code:
Actions
    Game Cache - Store (Triggering unit) as [B]Rexxar[/B] of Heroes in (Last created game cache)
    Game Cache - Save (Last created game cache)
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> it obviously overwrites the previously stored unit?

Yes.
Any and all Heroes may be saved under "Heroes", but only one may be called "Rexxar".
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Just needed to be sure.


And the transfer of information between 2 maps should look like this? (Even, if they are not created in the Campaign Editor)

Demo Map 1

Initialize a game cache at map "init".
...
Store my units and other information.


Demo Map 2

Initialize a game cache with the same name as in demo map 1 at map "init".
...
Retrieve my units using the same labels, category and the same cache.


?


Also, I heard there is a certain limit of objects, which can be stored in the game cache. 256 or something close.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • 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

      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