Jump to content
×
×
  • Create New...
  • 0

Quest Instant Text


TekkForCe

Question

  • Answers 7
  • Created
  • Last Reply

Top Posters For This Question

7 answers to this question

Recommended Posts

  • 0
  • Honorable Member
do
	local isFast = true
	local __say = say
	function _G.say(str, ...)
		if table.getn(arg) > 0 then
			if isFast then
				raw_script("[DELAY value;1]"..string.format(str, unpack(arg)).."[/DELAY][ENTER]")
			else
				__say(string.format(str, unpack(arg)))
			end
		else
			if isFast then
				raw_script("[DELAY value;1]"..str.."[/DELAY][ENTER]")
			else
				__say(str)
			end
		end
	end

	-- string.tolower function fix for hungarian keyboard
	os.setlocale("fr_FR.ISO8859-1","ctype")
end

 

Link to comment
  • 0
36 minutes ago, ZenkoKXO. said:

All your code is just a delay penger, same as the already created function (setdelay()) so don't be disrespectful.

Are you sure?

I am using DELAY too in some quests and it's instant...

Example: say("[DELAY value; 1]some text here[/DELAY]")

Link to comment
  • 0

Sure exygo but instead of using

say("[DELAY value; 1]some text here[/DELAY]")

at each line, you just have to put setdelay(0) at first.

Example :

quest x begin
	state start begin
		when X.chat."X" begin
			setdelay(0)
			say_title("text")
			say("text")
			say("text")
			say("text")
			say("text")
		end
	end
end
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.