• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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...
 
Level 37
Joined
Mar 6, 2006
Messages
9,243

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:
Level 37
Joined
Mar 6, 2006
Messages
9,243
He linked the same site himself :)

Here:
http://www.hiveworkshop.com/forums/warcraft-editing-tools-277/jngp-hashtables-154615/#post1427868


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