Scripts / My brain is broken :( Could you please help me with two simple scripts?

Author
Message
Olfa
7
Years of Service
User Offline
Joined: 12th Feb 2017
Location:
Posted: 20th Feb 2017 20:46
Hi all! I want to make a RPG game, so I've started with Lua scripts. I wrote the simple script for the books in the game.



I assigned it to the one entity (the book, naturally) and it works. But when I assigned it to the other entity (the bookshelf) - it doesn't work! How is it possible? That's the same script. I'm in trouble Where is my mistake?

And one another script and one another strange problem. I have my folder in the "images" folder and it has 4 pics (000.png, 001.png etc). And "book_active" works (at least one time), but this script doesn't work:



Can I ask your advice about it? How should I write the LoadImages, if I want to have hundreds images here?
Thank you!
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 25th Feb 2017 18:30
Quote: "Can I ask your advice about it? How should I write the LoadImages, if I want to have hundreds images here?"


try:



Notice I'm looping around 18 imgs, put there your own.

hth

3com

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
Olfa
7
Years of Service
User Offline
Joined: 12th Feb 2017
Location:
Posted: 28th Feb 2017 18:09
Thank you a lot!
PM
Olfa
7
Years of Service
User Offline
Joined: 12th Feb 2017
Location:
Posted: 10th Mar 2017 21:25
Dear, dear, dear creators!
I'm desperate Each update destroys all my script work.
My scripts are very simple (pls get a look at the start post), and I copied some simple scripts from demo games (i.e. "startdisplay").
And all of them don't work now.

PLEASE tell me what should I do. Should I wait for any date when all rules become stable? Or I can somehow to turn off updates and deal with old rules peacefully?
PM

Login to post a reply

Server time is: 2024-12-23 05:00:58
Your offset time is: 2024-12-23 05:00:58