This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function mashSilence takes nothing returns boolean | |
| if ( not ( GetRandomPercentageBJ() <= 21.00 ) ) then | |
| return false | |
| endif | |
| return true | |
| endfunction | |
| function checkmashertroll takes nothing returns boolean | |
| if ( ( GetUnitTypeId(GetAttackedUnitBJ()) == 'O00U' ) ) then | |
| return true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library UnitIDs initializer init | |
| globals | |
| constant integer UNIT_MAGE = 'O00U' | |
| constant integer UNIT_ELEMENTALIST = 'O00R' | |
| constant integer UNIT_HYPNOTIST = 'O00D' | |
| constant integer UNIT_DEMENTIA_MASTER = 'O014' | |
| constant integer UNIT_PRIEST = 'O00P' | |
| constant integer UNIT_BOOSTER = 'O00G' | |
| constant integer UNIT_MASTER_HEALER = 'O00S' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library MageMasher initializer InitTrig_MageMasher requires ID, DUMMYLIB | |
| globals | |
| integer array MAGE_MASHER_CLASSES | |
| integer MAGE_MASHER_CLASSES_UB | |
| endglobals | |
| function CheckMasherTroll takes nothing returns boolean | |
| local integer uid = GetUnitTypeId(GetTriggerUnit()) | |
| local integer i = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library MageMasher initializer InitTrig_MageMasher requires ID, DUMMYLIB, | |
| globals | |
| integer array MAGE_MASHER_CLASSES | |
| integer MAGE_MASHER_CLASSES_UB | |
| private trigger t = CreateTrigger() | |
| private trigger u = CreateTrigger() | |
| endglobals | |
| function CheckMasherTroll takes nothing returns boolean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! zinc | |
| library ZnPublicLibrary { | |
| Table pets; | |
| function GetPlayersPet (player p) -> unit { | |
| group g = CreateGroup(); | |
| GroupEnumUnitsOfPlayer(g, p, Condition( function() -> boolean { | |
| return pets.has(GetUnitTypeId(GetEnumUnit())); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scope SomeExample initializer onInit | |
| // requires DamageEvent | |
| // not sure how scoping will work... | |
| function AhhWeJustGotDamaged takes unit damagedUnit, unit damageSource, real damage returns nothing | |
| debug call BJDebugMsg( "We just took " + R2S( damage ) + " damage!" ); | |
| endfunction | |
| private function onInit takes nothing returns nothing | |
| call RegisterDamageResponse( Response.AhhWeJustGotDamaged ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum student_t { | |
| STUDENT, | |
| GRADED_STUDENT | |
| }; | |
| struct Student { | |
| char *name; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # update brew | |
| brew update | |
| # open the caskroom | |
| brew tap caskroom/cask | |
| # this is the GCC cross-compiler | |
| brew cask install gcc-arm-embedded | |
| # this is the emulator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TARGET = kernel.elf | |
| CC = arm-none-eabi-gcc | |
| AS = arm-none-eabi-as | |
| LD = arm-none-eabi-gcc | |
| DM = arm-none-eabi-objdump | |
| CPPFLAGS = -MMD \ | |
| -MP \ | |
| -Wall \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ island-troll-tribes git:(master) ✗ java -jar ~/.wurst/wurstscript.jar -runtests _build/*.j _build/dependencies wurst | |
| java.io.IOException: Cannot run program "wine": error=2, No such file or directory | |
| at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) | |
| at java.lang.Runtime.exec(Runtime.java:620) | |
| at java.lang.Runtime.exec(Runtime.java:485) | |
| at de.peeeq.wurstio.Pjass.runPjass(Pjass.java:105) | |
| at de.peeeq.wurstio.Main.doCompilation(Main.java:399) | |
| at de.peeeq.wurstio.Main.main(Main.java:142) | |
| Caused by: java.io.IOException: error=2, No such file or directory | |
| at java.lang.UNIXProcess.forkAndExec(Native Method) |