• 🏆 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!

Fixing leaks

Status
Not open for further replies.
Level 6
Joined
Jul 22, 2008
Messages
243
That's the same as the "actual JASS code", to put it into your GUI trigger you simply find the "custom script" action (it's like one of the first in the list) and put the desired text in.
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
i.e.
*for removing a point-variable would be:
  • Set temppoint = (Center of (playable map area))
  • Spezialeffekt - Create a special effect at temppoint using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
  • Custom script: call RemoveLocation(udg_temppoint)
*for removing a unit group it would EITHER be
  • Custom script: set bj_wantDestroyGroup = true
  • Pick every unit in (playable map area) and do: Unit - Kill (Picked Unit)
OR
  • Set tempgroup = Units in (playable map area)
  • Pick every unit in tempgroup and do: Unit - Kill (Picked Unit)
  • Custom script: call DestroyGroup(udg_tempgroup)
*for removing a Player Group, it would be
  • Set tempforce = All Players in (playable map area)
  • Player Group - Pick every Player in tempforce and do: Player - Add 1 to (Picked Player) current gold
  • Custom script: call DestroyForce(udg_tempforce)
*and for removing a region (rectangular) it would be:
  • Set temprect = Current camera bounds
  • do something with the rect
  • Custom script: call RemoveRect(udg_temprect)
as far as i know..
 
Status
Not open for further replies.
Top