Gitto's World System (With Objects)

Started by Gito Baloch, Aug 16, 2024, 05:44 PM

Previous topic - Next topic

Gito Baloch

World System

Hello everyone!

On the request of a very special friend, I developed this World System in Squirrel for one last time. You can find the code on Gitto's World System.

Important Note: World 1 cannot be bought or mapped; it's the main world.

World System Commands:

  • /gotoworld: <world_id> - Teleports you to the specified world by its ID (1-1000).
  • /buyworld: <world_id> - Purchases the specified world by its ID.
  • /sellworld: <world_id> - Sells the specified world by its ID.
  • /shareworld: <player_id> - Shares the world with the specified player.
  • /delshareworld: <player_id> - Removes sharing permissions for the specified world (1-1000).
  • /myworlds: - Lists all the worlds you own.
  • /sharedworlds: - Lists all the worlds shared with you.
  • /world: <world_id> - Displays information about the specified world (1-1000).
  • /addobject: <world_id> - Adds an object to the specified world.
  • /objects: <world_id> - Lists all objects in the current world.
  • /setworldname: <world_id> <name> - Sets the name of the specified world (1-1000).



Credits: Doomkiller for his map editor.

As I step away from VCMP, I'm leaving behind a part of my heart with the incredible memories made in Viceland and VFS with my CF and R2X family. 'Every goodbye brings us closer to a new hello,' but this one feels especially hard. I'll miss you all more than words can express.

Regards,
Yours truly,
gito aka Sibghat al Baloshi
Programming is the language I speak, the world I shape, and the future I code

habi2

nice work, nice idea and good pictures.

and 'where you going?'

PSL

This is a really good script, thank you for making and sharing it

Gito Baloch

Quote from: habi2 on Aug 17, 2024, 04:43 PMnice work, nice idea and good pictures.

and 'where you going?'
Thanks habi and I'm just leaving the game (: I can't state the reason why...

Quote from: PSL on Aug 18, 2024, 07:11 AMThis is a really good script, thank you for making and sharing it
Thank you ☺️
Programming is the language I speak, the world I shape, and the future I code

H.a.S.a.N


H.a.S.a.N

bro i got some bugs in ur script
there is functions and arrays u didnt put it like
AN ERROR HAS OCCURED [the index 'Motion' does not exist]

and
Player '[TDAr]H.a.S.a.N' ID 0 connected.

AN ERROR HAS OCCURED [the index 'PlayerData' does not exist]

CALLSTACK
*FUNCTION [onPlayerJoin()] scripts/main.nut line [119]

LOCALS
[player] INSTANCE
[this] TABLE

in PlayerData
i did PlayerData <- {};
and not work