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

[Trigger] Location removal..? noob question

Status
Not open for further replies.
Level 9
Joined
Apr 7, 2008
Messages
176
Running fire
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in Blaze_Group and do (Actions)
Loop - Actions
Set Blaze_Position[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
If (((Picked unit) has buff Blaze ) Equal to True) then do (Unit - Create 1 blazing for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees) else do (Do nothing)
*****Custom script: Custom script: call RemoveLocation (udg_Blaze_Position[(Player number of (Owner of (Picked unit)))])*****
Unit - Add a 6.00 second Force Of Nature expiration timer to (Last created unit)

Does my Custom script part need to include the whole picked unit part or can i just keep it simple and put in (udg_Blaze_Position) and call it good?
 
Level 9
Joined
Apr 7, 2008
Messages
176
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Custom script: call RemoveLocation(udg_Blaze_Position[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))])
You can't use gui functions in custom scripts.
Is he Buccha at your avatar? :p

Ummm... I dont even know what all that means that you put in your Custom Script. Looks like I have some reading up on Jass to do. :(
And my Avatar.... I dont know his name. I just know Air Gear was a badass Anime. Second only to Fooly Cooly. =D
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
GetConvertedPlayerId() gives you the player number, it is the exact same function as Player Number of (Player) in GUI,,
GetOwningPlayer() gives you the owner of the unit, again, the exact same as Owner of (Unit) in GUI
GetEnumUnit() is a function to get the picked unit, so it is the same as (Picked Unit) in GUI,,
Jass is really simple,, but you just have to figure out how to use it well and what function does what,,
 
Status
Not open for further replies.
Top