Warpten

rongheng

New Member
Reaction score
5
Do u guys know how to make a trigger like warpten in GUI as well as in Jass?
I have been thinking and have not been able to find a solution(nub)...
 

millzy

Ultra Cool Member
Reaction score
44
well here you go
first off
Trigger:
  • warpten
    • Events
      • Player - Player 1 (Red) types a chat message containing wapten as An exact match
    • and all the other players
      • Conditions
      • Actions
        • Set warpten = True


warpten is a boolean variable

then
Trigger:
  • warpten - Buildings
    • Events
      • Unit - A unit Begins construction
    • Conditions
      • Warpten Equal to True
    • Actions
      • Unit - Set (Constructing structure) construction progress to 100%


and for the rest of the stuff
 

cleeezzz

The Undead Ranger.
Reaction score
268
dont know why it would matter but you could try this

JASS:
scope warpten initializer Init

private function InstantBuild takes nothing returns nothing
    call UnitSetConstructionProgress( GetConstructingStructure(), 100 )
endfunction

private function Activate takes nothing returns nothing
    local trigger trig = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( trig, EVENT_PLAYER_UNIT_CONSTRUCT_START )
    call TriggerAddAction( trig, function InstantBuild )
    call DisplayTextToPlayer(GetLocalPlayer(),0.,0.,"Cheat Activated!")
    call DisableTrigger(GetTriggeringTrigger())
endfunction

//===========================================================================
private function Init takes nothing returns nothing
    local trigger trig = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( trig, Player(0), "warpten", true )
    call TriggerAddAction( trig, function Activate )
endfunction

endscope
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top