Hello all today i decided to make a guide from the S4Lua.
Before I start please do not use any of this Guide to create Gamebreaking things and do not copy this Thread to any other site.
Others:
require "Resources/.."
Require is used to include functions like in normal developing.
MAKEVECTOR3( x,y,z );
MakeVector3 is used to generate dome Effects Like a Sphere.
MAKEVECTOR2( x,y );
MakeVector2 is also used to generate some Effects.
GetX();GetY();GetZ();
Those Functions are used to get your current positioning.
MAKERAY( MAKEVECTOR3() = center, MAKEVECTOR3() = direction, length );
MAKESPHERE( MAKEVECTOR3() = center, ¹ÝÁö¸§ );
MAKEBOX( MAKEVECTOR3() = center, MAKEVECTOR3() = direction, width, height, lenght );
MAKECYLINDER( MAKEVECTOR3(center°ª), ¹ÝÁö¸§, ³ôÀÌ );
center°ª ¹Ì ÁöÁ¤ ½Ã º¤ÅÍ °ª 0,0,0À¸·Î ÀνÄ. ÁöÁ¤ ½Ã¿¡´Â MAKEVECTOR3(x,y,z)·Î ÁöÁ¤ÇÏ¿©¾ß ÇÔ.
Æø¹ßÇü ¾îÅÃ(Attack = CreateCExplosionAttack();) ¿¡ »ç¿ë ½Ã, ¼¾ÅͰªÀº ÀÚµ¿À¸·Î È÷Æ®ÇÑ °÷ ±âÁØÀ¸·Î ¼³Á¤µÊ.(ij³ë³×À̵åó·³)
MAKEFAN( MAKEVECTOR3() = center, MAKEVECTOR2() = direction, width, height, length, °¢µµ );
MAKEPOLE( MAKEVECTOR3() = center, MAKEVECTOR3() = direction, width, height, length );
MAKETHICKRAY( MAKEVECTOR3() = center, MAKEVECTOR3() = direction, thickness = should be bool, length );
MAKECONE( MAKEVECTOR3(x, y, z), MAKEVECTOR3( 0.0, 0.0, -1.0 ), maybe bool not sure about the last )
Attack Functions:
Attack:SetAlwaysCritical( true/false );
Attack:SetGhostCalcCollisionRange( true/false );
Attack:SetCameraShakeEnable( true/false, true/false, 0 );
Attack:SetCameraShakeSetFactor1( x, y, z );
Attack:SetCameraShakeSetFactor2( 60.0, 0.0, 2000.0, 3000.0 );
Attack:SetCameraShakeWhenSuccess( true/false ); This will shake you if u hit or not.
Attack:AddBlowCondition( x, y );
Attack4:AddPushCondition( x, y, z );
State Functions:
STATE:SetHPAbsorptionPer( int );This should aborb a bit of your hp if i remind right.
STATE:SetSpendSp( int );This will use some of your sp if u attack
STATE:SetStealthCancel( true/false ); If true it will cancel invisibility
[On some Decryption failed sry i cannot really tell what that means but will later fix that.
If u test around with it post what will appear if on disabled etc.]
Weapon Functions:
WEAPON:GetRange();This will get the range of the weapon.
Function Guides:
Camerashaking:
This will shake your char a bit if u hit an enemy maybe also if u just hit a place of the map.
Please Tell me if i should go on with this or not :D If not Thread will be canceled. Currently looks like this thread isn't really wanted so i won't update it currently and if at the end of the poll it still looks like so i gonna close it.
Before I start please do not use any of this Guide to create Gamebreaking things and do not copy this Thread to any other site.
Others:
require "Resources/.."
Require is used to include functions like in normal developing.
MAKEVECTOR3( x,y,z );
MakeVector3 is used to generate dome Effects Like a Sphere.
MAKEVECTOR2( x,y );
MakeVector2 is also used to generate some Effects.
GetX();GetY();GetZ();
Those Functions are used to get your current positioning.
MAKERAY( MAKEVECTOR3() = center, MAKEVECTOR3() = direction, length );
MAKESPHERE( MAKEVECTOR3() = center, ¹ÝÁö¸§ );
MAKEBOX( MAKEVECTOR3() = center, MAKEVECTOR3() = direction, width, height, lenght );
MAKECYLINDER( MAKEVECTOR3(center°ª), ¹ÝÁö¸§, ³ôÀÌ );
center°ª ¹Ì ÁöÁ¤ ½Ã º¤ÅÍ °ª 0,0,0À¸·Î ÀνÄ. ÁöÁ¤ ½Ã¿¡´Â MAKEVECTOR3(x,y,z)·Î ÁöÁ¤ÇÏ¿©¾ß ÇÔ.
Æø¹ßÇü ¾îÅÃ(Attack = CreateCExplosionAttack();) ¿¡ »ç¿ë ½Ã, ¼¾ÅͰªÀº ÀÚµ¿À¸·Î È÷Æ®ÇÑ °÷ ±âÁØÀ¸·Î ¼³Á¤µÊ.(ij³ë³×À̵åó·³)
MAKEFAN( MAKEVECTOR3() = center, MAKEVECTOR2() = direction, width, height, length, °¢µµ );
MAKEPOLE( MAKEVECTOR3() = center, MAKEVECTOR3() = direction, width, height, length );
MAKETHICKRAY( MAKEVECTOR3() = center, MAKEVECTOR3() = direction, thickness = should be bool, length );
MAKECONE( MAKEVECTOR3(x, y, z), MAKEVECTOR3( 0.0, 0.0, -1.0 ), maybe bool not sure about the last )
Attack Functions:
Attack:SetAlwaysCritical( true/false );
Attack:SetGhostCalcCollisionRange( true/false );
Attack:SetCameraShakeEnable( true/false, true/false, 0 );
Attack:SetCameraShakeSetFactor1( x, y, z );
Attack:SetCameraShakeSetFactor2( 60.0, 0.0, 2000.0, 3000.0 );
Attack:SetCameraShakeWhenSuccess( true/false ); This will shake you if u hit or not.
Attack:AddBlowCondition( x, y );
Attack4:AddPushCondition( x, y, z );
State Functions:
STATE:SetHPAbsorptionPer( int );This should aborb a bit of your hp if i remind right.
STATE:SetSpendSp( int );This will use some of your sp if u attack
STATE:SetStealthCancel( true/false ); If true it will cancel invisibility
[On some Decryption failed sry i cannot really tell what that means but will later fix that.
If u test around with it post what will appear if on disabled etc.]
Weapon Functions:
WEAPON:GetRange();This will get the range of the weapon.
Function Guides:
Camerashaking:
Code:
Attack:SetCameraShakeEnable( true, true, 0 ); Attack:SetCameraShakeSetFactor1( 25, 799, 250 ); Attack:SetCameraShakeSetFactor2( 60.0, 0.0, 2000.0, 3000.0 ); Attack:SetCameraShakeWhenSuccess( true );
Please Tell me if i should go on with this or not :D If not Thread will be canceled. Currently looks like this thread isn't really wanted so i won't update it currently and if at the end of the poll it still looks like so i gonna close it.