Marrusian's Question Thread

Marrusian

New Member
Reaction score
2
thx Ace :D Now I have a problem with a selfcast spell lol at lvl 1 gives me 3 armor but at lvl 2 gives me 5 armor but don't do damage to creeps LOL =)) I will try to fix that =))
 

Marrusian

New Member
Reaction score
2
Hi Everybody, because my long retirement I don't know only basics (and few tricks) so please help me with this spell :

Midnight Roar : Wolf roar and enemies within 550/600/650/700 range will get damage (but adding more damage if it's night)


I used Roar and let it only with Mana Cost/cooldown/AoE but when I casted everybody take damage not only enemy.
 

Chocobo

White-Flower
Reaction score
409
Hi Everybody, because my long retirement I don't know only basics (and few tricks) so please help me with this spell :

Midnight Roar : Wolf roar and enemies within 550/600/650/700 range will get damage (but adding more damage if it's night)


I used Roar and let it only with Mana Cost/cooldown/AoE but when I casted everybody take damage not only enemy.

What about basing it on Thunder Clap?
 

ayumilove

Youtube account suspended! youtube.com/ayumilove8
Reaction score
110
choco, how do you detect the time?

example

condition, if the time is midnight = true
action
ordering triggering unit to deal damage to xxx unit
 

Exide

I am amazingly focused right now!
Reaction score
448
I'm pretty sure you can check and set time by using triggers.
I just don't know how, though.
Also, you would have to use the hours and minutes, not words such as midnight.
But then again, I don't know how. :p
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
i think there is event for time of day u should check it out and if there is u should use boolean variable and set it true when night false when day
 

Chocobo

White-Flower
Reaction score
409
choco, how do you detect the time?

example

condition, if the time is midnight = true
action
ordering triggering unit to deal damage to xxx unit

If (All Conditions are true)
---> (Current Time of day) Lesser than 6.00 or (Current Time of day) Greater than 18.00

If I remember : Real Comparaison.
 

Marrusian

New Member
Reaction score
2
ok I want to make a spell based on blizzard (a selected range) (blizzard,flame strike etc ... you got the idea) but I want to make this :

Level 1 : Decrease 20% Armor of units in range.
Level 2 : Decrease 35% Armor of units in range.
Level 3 : Decrease 45% Armor of units in range.
Level 4 : Decrease 50% Armor of units in range.

How I can decrease a percentage of armor from units ?

P.S or I can take WEU and solve all my problems ? :p
 

Marrusian

New Member
Reaction score
2
function Trig_Untitled_Trigger_001_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetKillingUnitBJ(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction

function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
local unit hero
local integer heroxp
set hero = GetKillingUnit()
set heroxp = ( GetHeroXP(hero) + 100*GetUnitLevel(GetTriggerUnit()) )
call AddHeroXPSwapped ( heroxp, hero, true )
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Untitled_Trigger_001, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Untitled_Trigger_001, Condition( function Trig_Untitled_Trigger_001_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction[/QUOTE]



ok what's wrong here ? I make this trigger to give the hero his XP + 100*CreepLevel but it gives me hero xp * creep level :|
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
Code:
set heroxp = [B][U]( GetHeroXP(hero) +[/U][/B] 100*GetUnitLevel(GetTriggerUnit()) )
im not expert in jass but i think that's the problem cuz let's say ur hero has 500 exp and unit lv is 2 than u add to urself 700 instead 200 what u do basically is 500+2*100 and u need to remove that 500 (GetHeroXP(hero))
 

Chocobo

White-Flower
Reaction score
409
thx Doom-Angel (i'm such an idiot =))) I really don't thinked at that :|

Thought.


Code:
function Trig_Untitled_Trigger_001_Conditions takes nothing returns boolean
return IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)
endfunction

function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
local unit hero = GetTriggerUnit()
local integer heroxp = 100*GetUnitLevel(GetTriggerUnit())
call AddHeroXP(hero,heroxp,true)
endfunction

//====================================================================== =====
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Untitled_Trigger_001, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Untitled_Trigger_001, Condition( function Trig_Untitled_Trigger_001_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction

Lets optimize it :p
 

Marrusian

New Member
Reaction score
2
I make some items for my RPG but I don't know how to put Attributes Requirements.

Exemple : I buy an item but if I don't have 28 str, I can't wear that item :)

Any idea ?
 

Cheddar

This is the way it was meant to be.
Reaction score
126
Try an Integer condition, I don't have WE open so I can't find the exact trigger.
 

Marrusian

New Member
Reaction score
2
Yes it work, thx Cheddar (I am sorry because asking so noob questions but when I really say to begin WE again, I don't so ...)

Now I have other question :

How can I make a Alchemy NPC ? I mean when you put an item and other thing you craft the item to +1 or to other item more powerful. When you put some items you can dismember them to give you some materials or kinda.

I hope you understand my question and +rep for person who can help me with this.
 

Miz

Administrator
Reaction score
424
You mean like you take lets stay iron ore and put it in a furnace or something to make a item?

Or combine items
 
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

      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