Forum

> > CS2D > Maps/Editor > Stop delay
Forums overviewCS2D overview Maps/Editor overviewLog in to reply

English Stop delay

16 replies
To the start Previous 1 Next To the start

old Stop delay

Black Wolf
User Off Offline

Quote
Ok guys i have 1 problem i have in my map one thing. it's like this i will try to explain…

> Trigger_Start:
Name:
Trigger: delay

> Trigger_Delay:
Name: delay
Trigger: message, delay
Delay: 0

> Func_Message:
Name: message
Trigger:
Msg: Shit in my pants!
Display X sec: 5
Position: Center


How do i can stop this message with trigger!

old Re: Stop delay

Suprise
BANNED Off Offline

Quote
simply write in trigger_start: message and remove the others.
edited 2×, last 28.08.12 08:51:23 pm

old Re: Stop delay

Suprise
BANNED Off Offline

Quote
If I'm correct you want, a welcome message at the round start. For this

> Trigger_Start:
Name
Trigger: message

> Func_Message
Name: message
etc
etc

old Re: Stop delay

doublejack
User Off Offline

Quote
your delay is triggering itself, yes? so it is wrighting the message all the time, yes?

old Re: Stop delay

3RROR
User Off Offline

Quote
That's right. Why did you add a delay trigger anyways? What you just did is a message loop.

old Re: Stop delay

Black Wolf
User Off Offline

Quote
Yes delay is triggering it self to repeat message all time with no stop, but i wan take trigger what makes it stop.


@user Suprise: Nope. I want message what is repeating instantly, but when i use button then it's stops it...
@user 3RROR: Cuz i want so...

old Re: Stop delay

doublejack
User Off Offline

Quote
i think it is only reachable through lua

addhook always
if msg_always==1 then
msg....

and connect trigger with lua
sorry, I can't give you the whole script now, I'm surfing through Android

old Re: Stop delay

Suprise
BANNED Off Offline

Quote
Then you could use 'freetimer' command.
edited 1×, last 28.08.12 09:04:07 pm

old Re: Stop delay

3RROR
User Off Offline

Quote
@user Black Wolf: But you didn't specify it. In order to stop you need to use another trigger, here's the possible ones: Trigger_Move , Trigger_Hit , Trigger_Use or another Trigger_Delay

F.E with Trigger_Delay:
Trigger_Start:
Name:
Trigger: delay,test1

Trigger_Delay:
Name: delay
Trigger: message, delay,test1     
Delay: 0

Trigger_Delay:
Name: test1
Trigger: delay
Delay: 5

Func_Message:
Name: message
Trigger:
Msg: Shit in my pants!
Display X sec: 5
Position: Center

old Stop delay

Gaios
Reviewer Off Offline

Quote
Script:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
usee = {1,1} -- [x] and [y]
message = "Shit in my pants"

addhook("second","_second")
addhook("use","_use")
uuse=0

function _second()
	if uuse==1 then
		msg(""..message.."")
	end	
end

function _use(id)
local x,y=player(id,"tilex"),player(id,"tiley")
	if x==usee[1] and y==usee[2] then
		if uuse==1 then
			uuse==0
		elseif uuse==0 then
			uuse==1
		end
	end
end
edited 3×, last 28.08.12 10:52:05 pm

old Re: Stop delay

Black Wolf
User Off Offline

Quote
This more like anti edit thing...
So function_message have to be in map
edited 1×, last 29.08.12 07:06:25 am

old Re: Stop delay

Misho
User Off Offline

Quote
Maybe use sprites?
Func_message is not possible to stop.
It haves time on the screen and thats all.
Or ask scripter that can help you with this.
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview