Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Question: Read value then Speak

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Blackrosemmt
How do I cheat?
Reputation: 0

Joined: 17 Mar 2024
Posts: 2

PostPosted: Sun Mar 17, 2024 8:56 am    Post subject: Question: Read value then Speak Reply with quote

Hi all

I need lua script to read value from address then speak it once it reach the value I specify.
for example once money in game reach 100 then speak "hundred"

Can anyone please help.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 94

Joined: 14 Jul 2007
Posts: 3110

PostPosted: Sun Mar 17, 2024 4:14 pm    Post subject: Reply with quote

Record it as WAV, then play it using playSound(...) in a script
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25298
Location: The netherlands

PostPosted: Sun Mar 17, 2024 4:31 pm    Post subject: Reply with quote

speakEnglish('100') also works
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Blackrosemmt
How do I cheat?
Reputation: 0

Joined: 17 Mar 2024
Posts: 2

PostPosted: Tue Mar 19, 2024 6:33 pm    Post subject: Reply with quote

Dark Byte wrote:
speakEnglish('100') also works


Thanks @Dark Byte.
May I have please the full Lua script for this. I have very limited knowledge in Lua.

Thanks in advance.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 94

Joined: 14 Jul 2007
Posts: 3110

PostPosted: Wed Mar 20, 2024 5:10 am    Post subject: Reply with quote

Code:
if readInteger(<your address>) == 100 then speakEnglish('100') end
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1260

PostPosted: Wed Mar 20, 2024 6:03 am    Post subject: Reply with quote

Some more colorful ideas.. Smile

Code:
function  speakLang_100(opt)
beep() -- A warning is coming...
sleep(400)
  if opt==1 then
    speak('one hundred',SPF_PURGEBEFORESPEAK) -- Eng
  elseif opt==2 then
    speak('yüz',SPF_PURGEBEFORESPEAK) -- Turkish
  elseif opt==3 then
    speak('cento',SPF_PURGEBEFORESPEAK) -- italy
  elseif opt==4 then
    speak('einhundert',SPF_PURGEBEFORESPEAK) -- German
  end
end

--if readInteger(your address) == 100 then
   speakLang_100(1)
   speakLang_100(2)
--end

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Csimbi
I post too much
Reputation: 94

Joined: 14 Jul 2007
Posts: 3110

PostPosted: Wed Mar 20, 2024 1:39 pm    Post subject: This post has 1 review(s) Reply with quote

That's what we call "professional" Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites