Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 02/19/25 03:24
New Zorro version 2.64
by jcl. 02/17/25 15:32
Smaller Windows version
by Nicole. 02/08/25 14:51
Command Help in notepad++
by pr0logic. 02/07/25 18:19
How to export list of current open trades?
by vicknick. 02/07/25 17:22
Initial RithmicZorroPlugin Release.
by kzhao. 02/05/25 03:30
AUM Magazine
Latest Screens
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Zeal-X2
Who's Online Now
3 registered members (VoroneTZ, AndrewAMD, TipmyPip), 457 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
crazyhedgehog, Nicole, Columboss, quantenesis, YanniD
19109 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Trying To Make Sense of WED Scripting #488507
12/31/24 18:30
12/31/24 18:30
Joined: Dec 2024
Posts: 1
P
Parallax Offline OP
Guest
Parallax  Offline OP
Guest
P

Joined: Dec 2024
Posts: 1
Hello!

I've been reading the tutorials and manual and can't seem to grasp how WED/MED/SED are interconnected in terms of coding. If I'm understanding correctly, WED is not only your world editor in which you can create rooms and levels but you can also use it just to import single models from MED (entities as the manual calls them) and assign scripts (either included or custom) and export the entity and its script into a singular file. From there you can re-import this scripted entity back into WED and place it in your larger level and it will behave according to its script during runtime. Then you can code your main game script as usual.

Despite its age I sincerely love this engine. However, fighting through dead links and archived pages has been tiring. frown

Thank you!

Re: Trying To Make Sense of WED Scripting [Re: Parallax] #488529
01/07/25 17:34
01/07/25 17:34
Joined: Jun 2008
Posts: 45
Russia Stavropol
VoroneTZ Online
Newbie
VoroneTZ  Online
Newbie

Joined: Jun 2008
Posts: 45
Russia Stavropol
Hello

yes, in WED you can create levels by blocks and also you can place *.mdl and *.wbm (builded map) files and assign actions to them.

wbm file is imported into WED as a single element, so actions assigned to objects inside wmb will be reset, and the new assigned action will perceive it as one single object (in other words- there is no inherited maps with actions)

I don't know how you can connect several maps together with an out-of-the-box solution
but I would make a map parser into a text file, where the position of the object and its properties would be indicated.
then in the script I would read the text files of the zones depending on the position of the player, and then add elements to the map inside the script using the ent_create function
maybe i store "map id" into entity SKILL or store enities pointers in array to release entities when certain map is no longer needed

Last edited by VoroneTZ; 01/08/25 17:16.

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1