RPG coding help

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the when posting support requests.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
carter472
Member
Member
Posts: 14
Joined: June 18th, 2009, 1:34 am
Name: Adam
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

RPG coding help

Postby carter472 » March 16th, 2010, 2:23 am

Hey. I'm currently trying to figure out how to code in RPG.

1. Using the Village_rpg map, I've found examples of ENT_ITEM and ENT_SPELL.

But according to the description in the rpg files, there are a total of 4 entities.

ENT_CHAR = 0
ENT_ITEM = 1
ENT_SPELL = 2
ENT_OBJECT = 3


Can anyone give me an example script of ENT_CHAR and ENT_OBJECT?

I could use those scripts to figure out how to use the two remaining entities.



2. Something else popped up. When I'm writing the description for items and spells in the Inventory, I face two problems.

2.1 - How do I make paragraphs of my descriptions ( this also applies to when I'm typing out dialogue using r_response ). For example, I want to type a dialogue that looks like :

How was your day Jim?
I wanted to visit you the other day but I got caught up in work. Sorry.

Meaning, I want to start a new sentence on a new line and not connect directly from the previous sentence. So i DON"T want something that looks like this


How was your day Jim? I wanted to visit you the other day but I got caught up in work. Sorry.

2.2 - How do I change the other descriptions of the item and spells? When I type a description of an item, the description appears in the top left corner of the inventory. In the top right corner and also under the icon of the item, it always says " This area will eventually be filled with what the item can do " or something like that.

How do I change the description in the top right corner and in the area below the icon of the item to something of my own?

Please and thanks so much in advance! I realize its a lot, but it'll be a tremendous help to me. ^ ^

User avatar
Venima
Support Team
Support Team
Posts: 259
Joined: February 17th, 2010, 4:56 am
Name: Tombstone
IRC Username: Venima
Location: Somewhere in the eternal planes between the living and the dead
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: RPG coding help

Postby Venima » March 21st, 2010, 8:53 pm

Tombstone's Tournament round 2 has begun!

Try out my: (Note: still in beta)

-----Venima
Image
Image

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: RPG coding help

Postby Hirato » March 21st, 2010, 11:25 pm

This is not a url, clicking it is pointless

User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: RPG coding help

Postby Leo_V117 » March 26th, 2010, 1:40 pm





arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: RPG coding help

Postby arcones » March 26th, 2010, 1:48 pm

mainly high schooler's created MCO... so :?
Image
Want a user bar like this one? PM Leo!

User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: RPG coding help

Postby Leo_V117 » March 26th, 2010, 1:54 pm

dern it. :lol:





[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Sandbox General Support”

Who is online

Users browsing this forum: No registered users and 5 guests