Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua Scripts/Questions/Help

6.770 Antworten
Seite
Zum Anfang Vorherige 1 2111 112 113338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
@Mortyn22
Is there bind called "v"?

However, you could just spawn item on x,y when you pushed button. (strip it from player)

alt Re: Lua Scripts/Questions/Help

Fehu
User Off Offline

Zitieren
Blazzingxx hat geschrieben
Fehuziom hat geschrieben
Hi i need lua mod to HnS from cs 1.6... (I could to it myself , but im from poland )

You said you can make it yourself, there is no problems if you are poland.

However, it have not enough features to me for starting this "mod" .


i MUST USE translator google ... my english is baaaad ... i only can polish programs example c++ PL build ...

It is better to say that you do not want to help me

alt Re: Lua Scripts/Questions/Help

Admir
User Off Offline

Zitieren
Spoiler >


ops, I just missed there, I forgot to put it

1
function test_move(id,[b]x[/b],[b]y[/b],walk)

and the code work perfectly

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
Fehuziom hat geschrieben
It is better to say that you do not want to help me


It is even better that you this crap by yourself.

If you have to use google translator you should really consider learning english.
You shouldn't be crying like a baby because you were born in a country that doesn't have english as it's official language.

As an example Blazzing is from germany so he learned english and made scripts like superhero, zombie plague and shit without crying because he wasn't born in USA nor the UK

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
REALLY? I could swear that I heard that you were from germany.
Lol, my fail.
But english isn't your official language anyways (RIGHT?!) so it's what I wrote before has still got some sense (RIGHT?!)

alt Re: Lua Scripts/Questions/Help

Crazyx
User Off Offline

Zitieren
Flacko hat geschrieben
REALLY? I could swear that I heard that you were from germany.
Lol, my fail.
But english isn't your official language anyways (RIGHT?!) so it's what I wrote before has still got some sense (RIGHT?!)

That's RIGHT.

+ you should have noticed that in his profile.

alt Re: Lua Scripts/Questions/Help

Lee
Moderator Off Offline

Zitieren
Blazzingxx hat geschrieben
leegao hat geschrieben
Zitat
[TILE]
- tile(x,y,"value")          Return a value of a tile:
                    frame, property, walkable, deadly,
                    wall, obstacle, entity

tile(x,y,"wall") not working as all values not working on this function.

DC said he will fix this mess


I guess this would be the fallback solution until the function is reimplemented.

http://failboat.me/2009/mapparser/

alt Re: Lua Scripts/Questions/Help

ohaz
User Off Offline

Zitieren
Vectar666 hat geschrieben
How can I make WIN in some conditions? Is there a command like this?
There is an entity for it called Func_Gameaction.

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
Vectar666 hat geschrieben
I want to do it in LUA, not in map


You can't.
You should make an entity and trigger it on victory condition and shit through Lua.

alt Re: Lua Scripts/Questions/Help

Fehu
User Off Offline

Zitieren
Flacko hat geschrieben
Fehuziom hat geschrieben
It is better to say that you do not want to help me


It is even better that you this crap by yourself.

If you have to use google translator you should really consider learning english.
You shouldn't be crying like a baby because you were born in a country that doesn't have english as it's official language.

As an example Blazzing is from germany so he learned english and made scripts like superhero, zombie plague and shit without crying because he wasn't born in USA nor the UK


You are not the Polish, do not know how there is ... and certainly do not want to know.
You think with lua so easy to learn, if you are the Polish? Polish is the most difficult language (I think), but my English is difficult.
Now prefer to speak German was a lua ...
Yes, I know English, even extremely so to speak, but I am sure that kad not say wrong? For example, 'How' I could speak with 'is'.

alt Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Zitieren
Fehuziom hat geschrieben
Spoiler >

I easily recognize lazy people, you.
You don't have to learn English or something like that to use Lua.
Read some pages, try basic functions with it.

I don't get why you are crying for your language.

By the way, try to explore DC's samples to know more about CS2D scripting.

alt Re: Lua Scripts/Questions/Help

BetaM
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
npc_create(map("xsize")/2,map("ysize")/2)
timer(5000,"npc.testing")
function npc.testing()
	if b==0 then
		npc_turn(1,90)
		b=1
	end
	npc_move_right(1,1)
	repeat until 100
end

The repeat bit won't work. It only executes it once.

alt Re: Lua Scripts/Questions/Help

Fehu
User Off Offline

Zitieren
Who said that i was crying ?
hmmm... My friend learn me basic functions ... and i have error ... must wait 2h when i have time to fix it.
Can u, Blazzingxx , learn me (To here no spam) basic functions , i need only in return1 (example) , why i must say this to work etc.

Ummm.... in english GG dont work ....
my email is: - E-Mail Adresse (nur mit Login sichtbar) -

alt Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Zitieren
@Mat5b:
I don't really like this kind of loops but try this:
1
2
3
4
5
6
7
8
9
10
11
12
13
npc_create(map("xsize")/2,map("ysize")/2)
timer(5000,"npc.testing")
function npc.testing()
	j = 0
	repeat
		if b==0 then
			npc_turn(1,90)
			b=1
		end
		npc_move_right(1,1)
		j = j +1
	until j > 10 --We have to put a condition here, not the number of times to repeat this block
end

I would use a while loop
Zum Anfang Vorherige 1 2111 112 113338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht