Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - chaofruit

Pages: [1]
1
Help / How to make an RPG with variables
« on: January 14, 2009, 06:28:08 PM »
Introduction

Ok, in this tutorial i'm going to show you how to make an RPG with variables.  It won't be that hard.  That was a short intro :3

Getting Started

To make a variable RPG your going to need to have the variable add-on.  The current version is 4.  You can download it here: http://forum.blockland.us/index.php?topic=43084.0

Now if once you downloaded it, we can move on.


Making your RPG

-Mining
Mining is probaly the easiest to do, so that's why i'm starting with it.  Usually I start making copper ore first, so i'm going to explain how to do that.  look at the code here:
Code: [Select]
onActivate---self---fakekillbrick---[  ][  ][  ] [15]
onActivate---client---bottomprint---[You mine some copper! +1 mining XP]
onActivate---player---addVariable---[copper] [1]
onActivate---player---addVariable---[Mining XP] [1]
onActivate---client---displayvariable---[player] [chatbox] [copper]
onActivate---client---displayvariable---[player] [chatbox] [Mining XP]

There is you simple copper ore.  Now when you click the brick the brick will dissapear for 15 seconds and give you 1 copper and 1 Mining XP.  You can edit that to give more XP or copper if you want.

To make somthing that you need more Mining XP to mine then for the first line of wrench events you use:
Code: [Select]
onActivate---self---ifVariable---[player] [Mining XP] [GreaterEquals] [how much XP they need to have to mine the ore]

also for the rest of the wrench events the input event should be ifvariabletrue instead of onActivate.  also you may want it to say somthing if they don't have enough XP, for that just say:
Code: [Select]
ifvariablefalse---client---bottomprint---[what you want it to say]

That's it for mining.

-Logging

First examine this code:
Code: [Select]
onActivate---self---fakekillbrick---[  ][  ][  ] [15]
onActivate---client---bottomprint---[You cut some logs! +1 logging XP]
onActivate---player---addVariable---[logs] [1]
onActivate---player---addVariable---[Logging XP] [1]
onActivate---client---displayvariable---[player] [chatbox] [logs]
onActivate---client---displayvariable---[player] [chatbox] [Logging XP]

Ok, that is kind of like the copper ore code but with wood.  If you want to make higher levels of wood to cut then just do what we did with the copper ore.

Others

If you have a requests please tell me.


2
Help / I can't get mission editor to work!
« on: January 14, 2009, 04:58:50 PM »
Ok, so I've been wanting to make a gui and a map but I can't get my mission editor to work.  I've looked in the forums for about 2 hours.  I've tried adding "-mod editor" at the end of the file blockland.exe and i've looked at several tutorials...
Please help me!

I'll give you a :cookie:

3
Gallery / Chaofruit's Dark Castle
« on: September 16, 2008, 06:12:41 PM »
After about 3 hours of hard work and tons of bricks (7227 Bricks to be exact) I have finally created my first castle!  Enjoy!

A zoomed-out view!


The bank!


The fountain I made!


The jail!


The jail cafe!


A zoomed-in view!


Well, that's my castle!

4
Gallery / Chao's Builds
« on: September 15, 2008, 03:50:36 PM »
Here's my hottub that I just built!


Here's a pic of my city RPG!


Here's my other city RPG with an unfinished hotel my brother made!


Here's the start of my 3rd city RPG!


Here's a pic of somthing that me, my 2 brothers, and my best friend built when we got bored!


Here's the present that I made for badspot!

5
Games / Sonic Chronicles Chao!
« on: September 10, 2008, 08:03:25 PM »
I can't wait for sonic chronicles for the ds!
It'll be great with the chao garden!
do you like chao?

Pages: [1]