Product Chat / Text Zone Not Working?

Author
Message
darthvmr
4
Years of Service
User Offline
Joined: 5th Sep 2020
Location:
Posted: 6th Sep 2020 00:03
I want to have a bit where you spawn and it has a message at spawn that says "Get your weapons". The text zone does that, right? It has "Hello World!" set as the default, and you can change that, right? Well, I try to and it doesn't save the change. It only saves it if I clear it. It saves anything else I put in, but not the text, the most important part. Every time it resets to "Hello World!". PLEASE HELP ME I HAVE BEEN BANGING MY HEAD AGAINST A WALL FOR 10 MINUTES CAUSE NO ONE ELSE IS HAVING THIS ISSUE
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 6th Sep 2020 00:22
https://forum.game-guru.com/thread/222024#msg2632881
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 6th Sep 2020 17:00
GG- Lua text scripting is pretty easy to pick up.

My suggestion is to divorce the pre-fab systems
that can sometimes only hinder your progress.
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 6th Sep 2020 17:13 Edited at: 6th Sep 2020 17:28
Here's a suggestion;

-- creates a one time trigger

init --//
textread = 0
end -- init

main--//
if textread == 0 then
If GetPlayerDistance(e) < 78.3 then textread = 1 end
end

if textread == 1 then
Text(11,11,1,"Get your weapons!")
If GetPlayerDistance(e) > 78.3 then textread = 2 end
end

end -- main
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 7th Sep 2020 01:01 Edited at: 7th Sep 2020 11:25
Its actually easier just to attach the textinzone.lua to a triggerzone and put the text you want to see in the "Name" of the triggerzone. Works perfectly then.
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM

Login to post a reply

Server time is: 2024-11-23 15:27:32
Your offset time is: 2024-11-23 15:27:32