Forum

> > CS2D > Maps/Editor > About Trigger_If
ForenübersichtCS2D-Übersicht Maps/Editor-ÜbersichtEinloggen, um zu antworten

Englisch About Trigger_If

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt About Trigger_If

Misho
User Off Offline

Zitieren
Hello us.
I've started wondering about Trigger_If and the things you can do with it.
And I started working with it and it was amazing, pretty cool.
But I have some questions, that I can't answer.

Example:
> Trigger_If
player(1,'money')>1000
This means if player [id-1] has more than 1000$ he can trigger this.
But how can I make it for all players from 1-32 ids.
I tried anything that pops out in my mind.

And is it possible to use;
parse('equip [ID that triggered the entity] 45')

alt Re: About Trigger_If

Dynamite07
User Off Offline

Zitieren
the lua script ll be something like this.
1
2
3
4
5
6
7
8
9
addhook("x","y")
function y()
local b
for b=1,32 do
 if player(b,"money")>=1000 then
--something
end
end
end
the trigger_if you can try learn here.
http://www.unrealsoftware.de/files_show.php?file=12020

Zitat
And is it possible to use;
parse('equip [ID that triggered the entity] 45')

You mean if a player use a button he ll be equiped with weapon 45?
1× editiert, zuletzt 10.03.13 18:45:08

alt Re: About Trigger_If

Misho
User Off Offline

Zitieren
user Dynamite07 hat geschrieben
the lua script ll be something like this.
1
2
3
4
5
6
7
8
9
addhook("x","y")
function y()
local b
for b=1,32 do
 if player(b,"money")>=1000 then
--something
end
end
end

That's good.
About file cs2d Automated Shop
I was learning from it.
However it's all good now.
Trigger_If is quite good for 'parse' commands.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Maps/Editor-ÜbersichtCS2D-ÜbersichtForenübersicht