• Hey! Register here to create your account, engage with the community, and talk about what is new!

So I was bored and decided to turn my game "Turf War" into actual code

DarkblooM

New member
Emperor
Joined
Oct 26, 2021
Messages
13
Reaction score
6
This is not an actual language, it's just something I imagined (although it could be fun)

Code:
PLAYER_EVENT:Join
    -> PLAYER_ACTION:AdventureMode
    -> PLAYER_ACTION:DisablePvp
    -> PLAYER_ACTION:SetCollidable
    -> REPEAT:Forever
        -> CONTROL:Wait(num(5))
        -> IF_PLAYER:StandingOn(white_wool)
            -> SET_VARIABLE:ShiftOnAxis(var(loc):LOCAL, value(location), num(-1), COORDINATE:Z)
            -> GAME_ACTION:SetBlock(value(off_hand_item), var(loc):LOCAL)

PLAYER_EVENT:RightClick
    -> IF_PLAYER:IsLookingAt(var(blue_sign_location))
        -> PLAYER_ACTION:SetSlotItem(blue_wool, num(41))
        -> PLAYER_ACTION:Teleport(var(arena_spawn_location))
    -> IF_PLAYER:IsLookingAt(var(red_sign_location))
        -> PLAYER_ACTION:SetSlotItem(red_wool, num(41))
        -> PLAYER_ACTION:Teleport(var(arena_spawn_location))

PLAYER_EVENT:SwapHands
    -> GAME_ACTION:CancelEvent

PLAYER_EVENT:ClickInvSlot
    -> GAME_ACTION:CancelEvent
 
Last edited:

DarkblooM

New member
Emperor
Joined
Oct 26, 2021
Messages
13
Reaction score
6
jackie-chan-wtf-face-i16.jpg
 
Top Bottom