Jasshelper 2012-03-10
Latest version of jasshelper: 2012-03-10
Previous version was: 2012-02-10
Changelog:
Latest version of jasshelper: 2012-03-10
Previous version was: 2012-02-10
JASS:
// while unit has some buff do some healing
while GetUnitAbilityLevel(whichUnit, 'Bhea') > 0
call SetWidgetLife(whichUnit, GetWidgetLife(whichUnit) + 10.)
call TriggerSleepAction(0.1)
endwhile
// print out numbers from 1 to 10 with for loop
for i = 1 to 10
call BJDebugMsg(I2S(i))
endfor
// print only 1 2 3
for i = 1 to 10
call BJDebugMsg(I2S(i))
if i == 3 then
break
endif
endfor
// print out numbers from 10 downto 1
for i = 10 downto 1
call BJDebugMsg(I2S(i))
endfor
// kill all units in a group
for enumUnit in someGroup
call KillUnit(enumUnit)
endfor
// WARNING: groups are empty after for loop
Changelog:
//=====================================
// 2012-03-10
//=====================================
* Fixed a bug with //! external directive
* Fixed a bug with debug keyword
//=====================================
// 2012-02-10
//=====================================
* Fixed a small bug with //! import
* Changed program icon to make it clearly distinct from Vexorian's version
//=====================================
// 2012-02-09
//=====================================
* Fixed a problem with map not working when you have zero structs
//=====================================
// 2012-02-07
//=====================================
* Fixed library, scope, struct and module initialization orders.
* Fixed initialization order for structs not inside scope or library.
* InitTrig functions are no longer valid inside scopes and libraries.
//=====================================
// 2012-01-14
//=====================================
* fixed a bug that prevented new loops to be used with function interfaces
//=====================================
// 2012-01-07
//=====================================
* removed WEWarlock support (outdated)
* more speed improvements
* added full display of external tool calls (ObjectMerger)
//=====================================
// 2012-01-06
//=====================================
* removed FILEPP preprocessor (not enough public support for it)
* done some optimizations, jasshelper is now about 3x faster
* progress bar now shows global progres
//=====================================
// 2011-12-25
//=====================================
* included #bigdef and #foreach modules with FILEPP
//=====================================
// 2011-12-24
//=====================================
* added FILEPP preprocessor (executes before everything else in the map script)
* optimized for group loop as suggested by Troll-Brain.
//=====================================
// 2011-12-19
//=====================================
* added 3 for loops
* added while loop
* added break
Check out this section in jasshelpermanual:
Better looping: for, while, break
//=====================================
// 2011-12-17
//=====================================
* jasshelper now displays full textual progress when used from WE.
* jasshelper will now warn you to reopen your map if you used //! external command
Attachments
Last edited: