A
AnaXyd
Guest
Thx! I will post my map and you can beta test it. But I am far from done on v Beta 1, so it will come very soon!Orc_Tamer said:Well I dont have any ideas but I can help you beta test and make some spells for you.
Thx! I will post my map and you can beta test it. But I am far from done on v Beta 1, so it will come very soon!Orc_Tamer said:Well I dont have any ideas but I can help you beta test and make some spells for you.
Well that confuses me... anyway try putting the second IF/THEN/ElSE in the else part of the first one.AnaXyd said:I tryed to make an ability that creates a random potion, but it sometimes comes 2 items... But i want it have a chance to create many potions, but not more than 1 a time...Code:Events Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to Create Potion Actions Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl Set specft = (Last created special effect) Unit - Pause (Casting unit) Wait 2.00 seconds [COLOR=Red]If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Random integer number between 1 and 5) Equal to 1 Then - Actions Hero - Create Lesser Clarity Potion and give it to (Casting unit) Else - Actions[/COLOR] [COLOR=Red] If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Random integer number between 1 and 10) Equal to 6 Then - Actions Hero - Create Potion of Invisibility and give it to (Casting unit) Else - Actions[/COLOR] Sound - Play GoodJob <gen> at 100.00% volume, attached to (Casting unit) Special Effect - Destroy specft Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Human\Polymorph\PolyMorphTarget.mdl Set specft = (Last created special effect) Wait 1.00 seconds Special Effect - Destroy specft
I tryed, but it sometimes appear 2 items... Try to make the spell.. Maybe you understand it better...Repo-Man said:Well that confuses me... anyway try putting the second IF/THEN/ElSE in the else part of the first one.
AnaXyd said:I tryed, but it sometimes appear 2 items... Try to make the spell.. Maybe you understand it better...
Heros Reborn or The Heros of Anaxyd
Anaxyd Legends
I made the random potion to work with setting a variable be4 like this:OwntX said:Well, i can help you in your map if possible and i think i got a solution to the spell problem "random potion" unless you got it k.
Create Potion lvl1
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Create Potion
Actions
Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
Set specft = (Last created special effect)
Wait 2.00 seconds
Set integerUSEDINCREATEPOTION = (Random integer number between 1 and 10)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
integerUSEDINCREATEPOTION Equal to 1
Then - Actions
Hero - Create Healing Salve and give it to (Casting unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
integerUSEDINCREATEPOTION Equal to 2
Then - Actions
Hero - Create Clarity Potion and give it to (Casting unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
integerUSEDINCREATEPOTION Equal to 3
Then - Actions
Hero - Create Lesser Clarity Potion and give it to (Casting unit)
Else - Actions
Sound - Play GoodJob <gen> at 100.00% volume, attached to (Casting unit)
Special Effect - Destroy specft
Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\NightElf\FaerieDragonInvis\FaerieDragon_Invis.mdl
Set specft = (Last created special effect)
Wait 1.00 seconds
Special Effect - Destroy specft
As u can see Dragonknight, you don't revive such trheads 4 such questions...Sargon said:We all know the history of DotA Allstars. We don't need people to revive this thread with more inane posts about it. Either post about the purpose of the thread (the map project proposed) or do not post here at all.