• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Vast Plane

  • Like
Reactions: The Reborn Devil
MUI: Yes
vJASS: Yes

To use this spell you need the JassNewGenPack

2hzpg2a.jpg

Vast Plane

Establishes 3 wards, which bind themselves up to a plain. The plain constantly moves upwards until it reaches it max powerlevel and drops down to zero. Deals various damage on falling units and decreases their movementspeed by 40% during the unit is on the plain.

Thanks to Clan NgO as always and of course special greetz to:
- JonNny
- Darkt3mpl3r
- WaRadius

Keywords:
Hanky, NgO, TDG
Contents

Vast Plane (Map)

Reviews
14:45, 14th Sep 2009 PurplePoot: It was fine before; no reason to think it no longer is.

Moderator

M

Moderator

14:45, 14th Sep 2009
PurplePoot: It was fine before; no reason to think it no longer is.
 
Level 15
Joined
Jul 6, 2009
Messages
889
The Triangle Area, is a bit off, a Peasant standing just on the lightning itself isn't picked up.

Btw, escape-refresh for testmap please!

set gg_trg_Magical_Trap=CreateTrigger( )
Local trigger for easier importing please.

JASS:
    loop
        call TriggerRegisterPlayerUnitEvent(gg_trg_Magical_Trap, Player(i), EVENT_PLAYER_UNIT_SPELL_EFFECT, MainFunctions_filter)

        set i = i + 1
        exitwhen i == 12
    endloop
12? I want a neutral passive player to cast it o_O?
 
Level 14
Joined
Jan 15, 2007
Messages
349
The spell is pretty old never thought of rescripting it. I just updated it so that it work with 1.24...

xBlackRose said:
The Triangle Area, is a bit off, a Peasant standing just on the lightning itself isn't picked up.

Didn't I said that?, Everthing inside the triangle and not everything what is standing on the line of the triangle... The unit have to be in the triangle to get recognized.
 
Level 14
Joined
Jan 15, 2007
Messages
349
Anachron said:
I have seen this before, I am pretty sure, why didn't you upload this earlier? This is atleast one year old, if I remember correctly.

Since Im pretty busy during the week I had no time to fixing it for 1.24 so it took some more time to fix it.

Paladon said:
I agree with the local trigger thing, still :p

Ya maybe I'll update the spell...
 
Level 24
Joined
Feb 28, 2007
Messages
3,480
I fixed so it uses local trigger t for you Hanky, to save you the trouble (yeah I was bored). The updated map is attached to this post.

Also, for your init function, couldn't you do the following instead of using a loop?
JASS:
call TriggerRegisterAnyUnitEventBJ(t,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(t,Condition(function SpellIdCondition))

And the condition would look a little something like this:
JASS:
function SpellIdCondition takes nothing returns boolean
    return GetSpellAbilityId() == yourspellidhere
endfunction

(The attached map does not contain an edited init function apart from it using local trigger t)
 

Attachments

  • hiveworkshop.spellcontest15.VastPlane.w3x
    88.4 KB · Views: 2,480
Last edited:
Level 14
Joined
Jan 15, 2007
Messages
349
I fixed so it uses local trigger t for you Hanky, to save you the trouble (yeah I was bored). The updated map is attached to this post.

Also, for your init function, couldn't you do the following instead of using a loop?
JASS:
call TriggerRegisterAnyUnitEventBJ(t,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(t,Condition(function SpellIdCondition))

And the condition would look a little something like this:
JASS:
function SpellIdCondition takes nothing returns boolean
    return GetSpellAbilityId() == yourspellidhere
endfunction

(The attached map does not contain an edited init function apart from it using local trigger t)

Thanks that you want to help me but there is some more stuff to improve. There a list:
- local trigger bla
- triggeraction could be replaced by boolexpr... since it's faster as we all know
- btw I don't see your point with the BJ thingy because the loop would execute it much faster than calling the bj function
- making really all functions private
- some small parts could be maybe improved (hasn't looked at the script for ages, just made this little hotfix so it's working with 1.24)
...

Well you see there are some things to improve and I know them but how I already said in the spellpack thread I got currently less time. Just wait till weekend or maybe the weekend after till I updated the script...
 
Top