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
425
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.

      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