FOnline Development > Questions and Answers
How does the truck se work?
(1/1)
cthulchu:
Hey guys. You must know the truck SE where you can find a vertie. I took a look at the map and I studied the initialization code that runs. Everything is clear and well written. Except one thing. How does that code gets called? I couldn't find that in the map source nor could I find it in the location. I tried to look through all the scripts for the function name or map name. No dice.
Just out of curiosity - where is the bond between the map and the script. I have a suspicion that it's somewhere where the SE gets called. I didn't find that yet.
devis:
its in the map "source"
something like
__rip_Fun_
my memory is hazy so i can't remember the letters to fill that in.
mojuk:
--- Quote ---You must know the truck SE where you can find a vertie.
--- End quote ---
No, never had it :(
--- Quote ---Just out of curiosity - where is the bond between the map and the script.
--- End quote ---
In se_truck_cave.fomap:
--- Code: ---ScriptModule map_se_truck
ScriptFunc warehouseInit
--- End code ---
cthulchu:
Yeah, I saw it in se_truck_cave before exploring the code of the function. But it doesn't make any sense. The code affects the se_truck map, which is the entry map. I was expecting it to be executed by the map that it affects.
Wait...
So am I understanding this correctly that any initialization script in any map of the location has access by reference to all maps of the location and gets executed once the location is initialized?
This adds a lot of freedom in my scripting. A lot of freedom. Now I can store variables from one maps in other maps' space or I can create technical maps that would be used only to store map variables, some npcs, lockers, etc. Well in case I need it. Not that I will ever need it, but it's good to know. Thanks!
Navigation
[0] Message Index
Go to full version