English About Trigger_If

4 replies
Goto Page
To the start Previous 1 Next To the start
10.03.13 02:37:54 pm
Up
Misho
User
Offline Off
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')
10.03.13 02:54:09 pm
Up
Alistaire
User
Offline Off
Or you just make a map script.
IMG:http://i.imgur.com/5zhwOTP.png
10.03.13 04:20:32 pm
Up
Misho
User
Offline Off
I'm not that good at scripting that's why I asked this question.
10.03.13 06:30:21 pm
Up
Dynamite07
User
Offline Off
the lua script ll be something like this.
Code:
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

Quote:
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?
edited 1×, last 10.03.13 06:45:08 pm
11.03.13 12:57:36 pm
Up
Misho
User
Offline Off
user Dynamite07 has written:
the lua script ll be something like this.
Code:
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 (20)
I was learning from it.
However it's all good now.
Trigger_If is quite good for 'parse' commands.
To the start Previous 1 Next To the start