Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua Scripts/Questions/Help

6,770 replies
Page
To the start Previous 1 2111 112 113338 339 Next To the start

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
@Mortyn22
Is there bind called "v"?

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

old Re: Lua Scripts/Questions/Help

Fehu
User Off Offline

Quote
Blazzingxx has written
Fehuziom has written
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

old Re: Lua Scripts/Questions/Help

Admir
User Off Offline

Quote
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

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
Fehuziom has written
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

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
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?!)

old Re: Lua Scripts/Questions/Help

Crazyx
User Off Offline

Quote
Flacko has written
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.

old Re: Lua Scripts/Questions/Help

Lee
Moderator Off Offline

Quote
Blazzingxx has written
leegao has written
Quote
[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/

old Re: Lua Scripts/Questions/Help

ohaz
User Off Offline

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

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
Vectar666 has written
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.

old Re: Lua Scripts/Questions/Help

Fehu
User Off Offline

Quote
Flacko has written
Fehuziom has written
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'.

old Re: Lua Scripts/Questions/Help

SQ
Moderator Off Offline

Quote
Fehuziom has written
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.

old Re: Lua Scripts/Questions/Help

BetaM
User Off Offline

Quote
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.

old Re: Lua Scripts/Questions/Help

Fehu
User Off Offline

Quote
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: - Email address (only visible with login) -

old Re: Lua Scripts/Questions/Help

Flacko
User Off Offline

Quote
@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
To the start Previous 1 2111 112 113338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview