Doom Angel's Question Thread

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> if I skip the loop, can I continue the actions beyond the loop?

Did you read the examples 1. and 2.?


Code:
For each integer A from 1 to 10
    For each integer B from 1 to 10
        Custom script: exitwhen true
        Game - Display to (All players) the text: "You're never going to see this"
    Game - Display to (All players) the text: "You'll see this 10 times"
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
k i guess i have asked wrongly though i did asked it just not in this sentence :p

anyway i was talking about the 'Skip Remaining actions'
if I skip the loop, can I continue the actions beyond the loop?
make 1+1 :D
-----------------------------------------
another question:
how can i detect if unit has ability?
i was pretty sure it exists but when i looked for it i didn't found.
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
Bump

i though of way to detect it but i dunno if it this alright just confirm it's allright:
Code:
Event
   Unit Channels......
Condition
Action
   For Each (Integer A) 1 to 8000...
      Loop
         If \ Then \ Else
            If - Condition 
               Level of AbilityVar[(Integer A)] Not equal to 0
            Then - Actions
               (Do Actions) 
            Else - Actions
this should detect it right?


k i guess i have asked wrongly though i did asked it just not in this sentence

anyway i was talking about the 'Skip Remaining actions'

if I skip the loop, can I continue the actions beyond the loop?

make 1+1
Don't forget this one too :p
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
Bump still..... (Look above)

and also another question:
anyway to add skill to spellbook without adding it from first place?
i mean i can't add all of the skills so i gotta know if there is way even in JASS as long as there is some way to add it to spellbook thx in advance.
 
I

IKilledKEnny

Guest
For you last question (I'm having a hard time understanding the others) just add the spell reguraly but disable it at the start of the game and re-enable it whenever needed.

Also, can you keep all curresnt questions at the first post? It's hard to keep track of current issues.
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
>For you last question (I'm having a hard time understanding the others)

k about the question with detecting the spell i don't see anyway i could explain it better and about the 2nd with the loop i will explain it clearer:
if i use skip remaining actions inside a loop would it skip the whole remaining trigger or just the integer A loop (and don't try to give me different solution im asking it out of interest)
-----------------------------------------------------
> just add the spell reguraly but disable it at the start of the game and re-enable it whenever needed.

i meant to add the spell and without having him in the spell book as some unknown spell which i can't get inside the spell book from the first place because i dunno what spell is it.....
-----------------------------------------------------
>Also, can you keep all curresnt questions at the first post? It's hard to keep track of current issues

i dunno it's just simplier to ask them stright than go and update my first post everytime i dunno about u but i like it like that.
 

Anything.

New Member
Reaction score
69
-----------------------------------------------------
> just add the spell reguraly but disable it at the start of the game and re-enable it whenever needed.

i meant to add the spell and without having him in the spell book as some unknown spell which i can't get inside the spell book from the first place because i dunno what spell is it.....
Um.

You want to add the spell to the spellbook... Without having [X - an unknown spell] in it, and cannot be obtained because you don't know what X is?

What's first place?

What the hell are you getting at? :banghead:
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
i want to add spell through triggers and i would detect the spell later the problem is that adding spell to spellbook through trigger requires to have the spell on the spellbook already and that makes it a problem for me so im look for a solution of any kind.....
 
I

IKilledKEnny

Guest
There is no way of adding a spell directly to the spellbook in any way but the one that I have mentioned (as far as I know). As for detecting question it would detect if a unit has a spell, yes. If I'll figure out a better way to do it then I'll edit this post.

> if I skip the loop, can I continue the actions beyond the loop?

Yes, as I have said before.
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
k thx for finnaly looking at my thread. (+Rep just for that when i can)
and i hope ur answer suits this one cause i wanna make sure we are both on the same line of thinking :p
if i use skip remaining actions inside a loop would it skip the whole remaining trigger or just the integer A loop (and don't try to give me different solution im asking it out of interest)
i still got my other question (i already forgot it myself) but here's a quote:
i want to add spell through triggers and i would detect the spell later the problem is that adding spell to spellbook through trigger requires to have the spell on the spellbook already and that makes it a problem for me so im look for a solution of any kind.....
+Rep Rewards for helpers
 
I

IKilledKEnny

Guest
> if i use skip remaining actions inside a loop would it skip the whole remaining trigger or just the integer A loop (and don't try to give me different solution im asking it out of interest)

> Yes, as I have said before.

i want to add spell through triggers and i would detect the spell later the problem is that adding spell to spellbook through trigger requires to have the spell on the spellbook already and that makes it a problem for me so im look for a solution of any kind.....

So create force with aray equal to number of those spells you want to add to the spell book and then add a player to the player group with the proper array when you enable the spell.
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
> Yes, as I have said before.
Yes what?
i didn't understand which of them the skip the whole or only the loop of integer A?

So create force with aray equal to number of those spells you want to add to the spell book and then add a player to the player group with the proper array when you enable the spell.
didn't understand :confused:
just to make sure u understand i want my spellbook to add unknown ability
 
I

IKilledKEnny

Guest
Sorry, yes it would only skip the loop but the rest of the trigger will remain the same.

Say you got 50 different abilities that you want to add 1 random from them your spell book. So create an ability variable with array size of 50. Then go and create player group variable with the same array. No do:

set randominteger = random number between 1 and 50
enable ability[radnominteger] ability for player
set custom value of unit to randominteger

And then you wanna check what ability was activated for the player? then do:

for each integer A between 1 and 50 do:
if unit custom value = integer A do:
else do:
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
Thx for the loop question :D (i owe u twice already :p)

as i told u my ability's are unknown and if i would take all the abilitys in game and disable them for player's i would mostly face many angry players who can't use their skills :p
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
k new question:

changing height off terrain(only a bit up) through trigger action:
possible or not?
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
k new question:

changing height off terrain(only a bit up) through trigger action:
possible or not?

Environment - Create a -0.50 second Temporary crater deformation at (Center of (Playable map area)) with radius 512.00 and depth 64.00
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Korolen got it, however, if I'm not mistaken you can still walk up those terrain deformations.
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
k thx Korolen (+Rep)
it's not exacly what i look for but i can use still it
 
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!
  • 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

      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