JNGP Stuff

Status
Not open for further replies.
2 questions:
1. Can JNGP handle Hashtables? 'Coz my one can, and I've heard alot of people say it can't. I may be wrong.

2. Is there any UNIVERSAL (ie. it doesn't have to check for every single spell buff) way to check if a unit is invisible? <<Might be in normal World Editor.

Just curious, and I don't know if this is meant to be here, or in Triggers/Scripts section...
 

Try to save some value into a hastable, you can't get a handle id with GUI function :)

For JASS, I suggest you download Horus: http://cjass.xgm.ru/#horus
It updates the functions, so hashtable functions are included and work just like other functions. They auto-complete and are highlited.

2.This?

JASS:
constant native IsUnitInvisible takes unit whichUnit, player whichPlayer returns boolean

Though you'd have to also check whether the unit has vision over the unit's position.

You could create a dummy for some player and give it sight range that covers the whole map.
 
Last edited:
He linked the same site himself :)

Here:
https://www.hiveworkshop.com/threads/jngp-hashtables.154615/post-1427868


udg_u1 is a Blademaster with Wind Walk. Then I added a unit for Player(15) (neutral passive) and gave it 10000 sight range.

  • Untitled Trigger 012
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Custom script: if IsUnitInvisible( udg_u1 , Player(15) ) then
      • Game - Display to Player Group - Player 1 (Red) the text: Invis for P15
      • Custom script: endif
Toggling Wind Walk (give it short duration and low mana cost) showed it works fine in my opinion.
 
Status
Not open for further replies.
Back
Top