• Register

Two Sides - 2D Sandbox+RPG+Surivial Game, where player is one of the survivors, who will have to survive in the several dimensions, fight with many monsters, and choose a side: Good, bad, or your way.

Post tutorial RSS LUA in Two Sides

here is just a list of functions, methods, and macros that you can help

Posted by on - Basic Client Side Coding

Function:
-player:gefdef() - give value the defence player
-player:getvalidrecipes(id) - Can I use the recipe id
-player:setCR(int id) - change the player race on id
-player:getslotfull() - gives the id first available empty slot
-player:getslotitem(iditem) - give the id first slot has item idi
-player:getslotitem(iditem,ammout) - give the id first slot has item iditem, where it is not less than 5
-player:clearclothes()- make player nade
-player:tp(x,y) - player teleport to x,y
-player:tp(x) - player teleport to x
-player:killnpc(isMakeZombie) - kill player
-player:AddLog(text) - add achivement text
-player:activespecial(id) - active special clothes


-addCmdLine(text,NameFunc) - created cheat
-addLogConsole(text) - print text in console
-getMaxPoint(x) - the highest point x
-drawText(text,x,y) - DrawText
-getState() - Get Status Game, list status here in example script



Methods

-PreDraw () - after the update, and to clear the screen

-Draw() - to render the GUI, well after render games

-PostDraw() - After rendering the game

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Profile
Icon
Two Sides
Platforms
Windows
Developer
Conveyor Ideas
Engine
XNA
Contact
Send Message
Release date
Game watch
Follow
Tutorial
Browse
Tutorials
Share
Related Games
Two Sides
Two Sides Arcade
Related Engines
XNA
XNA Public Domain