Forum

> > CS2D > General > CS2D Lua Scripting Tutorial Development
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch CS2D Lua Scripting Tutorial Development

74 Antworten
Seite
Zum Anfang Vorherige 1 2 3 4 Nächste Zum Anfang

alt Re: CS2D Lua Scripting Tutorial Development

Flacko
User Off Offline

Zitieren
- Dark Void - hat geschrieben
This will be useful but why do we need tutorial we have an official tutorial that explains everything just go to www.lua.org

Yes, but the lua manual doesn't teach you to "program" it assumes you know the basics about programming, variables, functions, arrays, strings, pointers, OOP, etc.
1× editiert, zuletzt 11.12.09 23:06:44

alt Re: CS2D Lua Scripting Tutorial Development

SQ
Moderator Off Offline

Zitieren
@TheKilledDeath
Yes, you can. Thanks for help.
Problem is not a code, but that I have to write explanations.

@- Dark Void -,
This tutorial will teach you how to make different scripts like admin color, saving, loading & many other functions.

alt Re: CS2D Lua Scripting Tutorial Development

GreenDevil
User Off Offline

Zitieren
Blazzingxx hat geschrieben
@Editorman,
Explain more clear or put it on our language in
Spoiler >


Maybe this is the code i see. Yeah i know this was copied but i need IT VERY MUCH to move a player because i want to make some maps with that...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function st()
	for id=1, player_count do
		if (player(id,"exists")) then
		parse('equip '..id..' 74')
		if (player(id,"tilex")>=18) then
		if (player(id,"tilex")<=225) then
			if (player(id,"tiley")==154) then
				setpos(id,player(id,"x")+10,player(id,"y"))
			elseif (player(id,"tiley")==155) then
				setpos(id,player(id,"x")+10,player(id,"y"))
			elseif (player(id,"tiley")==156) then
				setpos(id,player(id,"x")+10,player(id,"y"))
			else
			end
		end
		end
		if (player(id,"tilex")>=174) then
			if player(id,"tilex")<=176 then
				if player(id,"tiley")>=16 then
					if player(id,"tiley")<=94 then
						setpos(id,player(id,"x"),player(id,"y")+10)
					end
				end
			end
		end

Can't add to spoiler because some bug happen

Edit:
When i try to add this code in my lua it just doesnt work why ?
1× editiert, zuletzt 12.12.09 11:05:27

alt Re: CS2D Lua Scripting Tutorial Development

SQ
Moderator Off Offline

Zitieren
There was eof, not enough end

Code:
Spoiler >


What hook are you using?

alt Re: CS2D Lua Scripting Tutorial Development

GreenDevil
User Off Offline

Zitieren
This are the hooks
Spoiler >


Finely i know how to use Spoiler

alt Re: CS2D Lua Scripting Tutorial Development

NozliW
User Off Offline

Zitieren
@Editorman and everyone that asks here
that's stupid, that thread is for lua question and that...
you really shouldn't be asking here. anyone will answer your question, and if they don't its because:
-they are occupied
-they don't know
-they haven't got enough time to answer
-they didn't saw you post
-it's impossible (mostly they would tell you)
-they aren't ON
-etc.
anyways i repeat:
That Thread is for lua questions and help, you shoudn't be asking here, just as Flacko said.
1× editiert, zuletzt 18.12.09 15:48:21

alt Re: CS2D Lua Scripting Tutorial Development

Crazyx
User Off Offline

Zitieren
-WiLSoN- hat geschrieben
@Editorman and everyone that asks here
that's stup id, that thread is for lua question and that...
you really shouldn't be asking here. anyone will answer your question, and if they don't its because:
-they are occupied
-they don't know
-they haven't got enough time to answer
-they didn't saw you post
-it's impossible (mostly they would tell you)
-they aren't ON
-etc.
anyways i repeat:
That Thread is for lua questions and help, you shoudn't be asking here, just as Flacko said.


I agree.
They should be more patient...
If someone keeps posting questions after this, they should receive a violation mark in a instance without warning.

alt Re: CS2D Lua Scripting Tutorial Development

Heartless Soldier
User Off Offline

Zitieren
DaveRodec hat geschrieben
I don't need lessons from you BLazingxx, I need lessons from leegao Object orientated programming in lua for example...



O.o programming in lua? xD.

And yeah everybody wants lessons from leegao but Blazzing knows a lot, what's the problem?

alt Re: CS2D Lua Scripting Tutorial Development

SQ
Moderator Off Offline

Zitieren
He just don't like me, that's problem. I don't care about his opinion.
Anyway, he says that knows everything, but want to know how works simple Object-Oriented programming.
However, I can agree that Leegao's lessons should be more interesting.

By the way, I delayed this project for a while because it doesn't have much attention.
Just about 20 example scripts done right now.
Zum Anfang Vorherige 1 2 3 4 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht