InvisionFree - Free Forum Hosting
Free Forums. Reliable service with over 8 years of experience.

Learn More · Register Now
Welcome to RPGXP Unlimited. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Name:   Password:


 

 Using Parameters & Variables tut
Marked
Posted: Aug 21 2006, 05:49 PM


Master
Group Icon

Group: Admin
Posts: 703
Member No.: 1
Joined: 8-May 06



Using Parameters with Variables.

This is a very simple tutorial that shows you how to something, when one of your actors parameters is high enough.

For this tutorial, we will be using the actors strength and moving an object when an Actors strength is high enough.

Make a new event somewhere and name it boulder. Set the graphic to one of the rocks.
Now select the command “Control variables”
In variables, select single, and select a variable and name it “Boulder.”
In Operation, select “Set”
In Operand select “Actor” and in drop down box, select the actor you want to be able to move the boulder, usually you select the main character. In the last drop down box is all the actors parameters, this is the main bit of the tutorial, showing you what you can use. Select “STR” and click OK
This is what it will look like.
user posted image

Now select the command “Conditional Branch”
In tab 1, select “Variable” and chose “boulder” below that in the drop down box, select “Greater than or equal to” and in constant, you select the amount of strength you want your actor to have in able to move the boulder. Type in “100” and click OK.
It should look like this:
user posted image

Now inside the conditional branch(above “else”) select the command “Set move route” In the first drop down box, select “This Event” Then from all the side commands, select “Play SE” and select “129-Earth01” Now in the side commands, select “Move away from player” and select OK.
It should look like this:
user posted image

Now again in the conditional branch under “Else” Select the command “Show Text” and type in something like “You don’t have enough strength to move this boulder” or you could play an SE or something that shows you cannot move the boulder. The whole thing should now look like this:
user posted image

That’s it, you will need to make another event to test it though. Remember there is more you can do than use strength, you can use all of the parameters. Like intelligence, you cannot participate in a quiz in your game because your intelligence is not X amount or higher. There are many possibilities.

I have both a demo and .PDF, are they nessecary??
Anyway, this is a good tutorial, you will learn heaps in it, hopefully.
Top
SCMike
Posted: Aug 22 2006, 03:00 AM


Advanced
*

Group: Advanced
Posts: 395
Member No.: 16
Joined: 17-May 06



Cool, I do this stuff, too. I have one spot where it checks to see if the player's gold is high enough, and, if not, then the player can't go further.


--------------------
I became third toppest poster on July 5, 2006 at 12:10 AM. I'M HAPPY!!! Wanna see what post made me third toppest (probably not)? Go here.
RPGXP Unlimited reached it's 1,000th post on July 11, 2006 at 11:05PM with the following post: 1,000th post This posted was done by Marked. (GO MARKED!)
Top
Marked
Posted: Aug 22 2006, 04:12 PM


Master
Group Icon

Group: Admin
Posts: 703
Member No.: 1
Joined: 8-May 06



yes, but thats different to what this tutorial uses, because for with the gold, you do not use parameters or variables, you just use a conditional branch. This is kind of going further with that kind of thing.
Top
Blazinks
Posted: Aug 22 2006, 06:50 PM


The toppest poster! (so far) :D
*

Group: Master
Posts: 534
Member No.: 14
Joined: 16-May 06



Neat! I will so come back to this! biggrin.gif biggrin.gif


--------------------
user posted image
Top
SCMike
Posted: Aug 23 2006, 06:08 AM


Advanced
*

Group: Advanced
Posts: 395
Member No.: 16
Joined: 17-May 06



This is true, however, I use a variable conditional branch for gold, because I usually have the gold being shown some in some other section. Like in my SSE for demo v2, if you don't have the 25,000 Lirith, it comes up and says "You did not collect 25,000 Lirith, you only collected \v[48] much."


--------------------
I became third toppest poster on July 5, 2006 at 12:10 AM. I'M HAPPY!!! Wanna see what post made me third toppest (probably not)? Go here.
RPGXP Unlimited reached it's 1,000th post on July 11, 2006 at 11:05PM with the following post: 1,000th post This posted was done by Marked. (GO MARKED!)
Top
Marked
Posted: Aug 23 2006, 04:54 PM


Master
Group Icon

Group: Admin
Posts: 703
Member No.: 1
Joined: 8-May 06



I see, thats much better. Isn't there some other syntax that brings up the gold you have? Dont know, so is the tut useful. Hopefully it made some people realise what you can do with the command control variables.
Top
SCMike
Posted: Aug 24 2006, 03:21 AM


Advanced
*

Group: Advanced
Posts: 395
Member No.: 16
Joined: 17-May 06



yeah, there is the \g (or is it /g?) command, but that loads it up in a new window at the top of the screen. The way I do it, is so that it is just right in the window, so the player can see they failed to collect the correct amount tongue.gif Like in the demo, if you didn't collect 25,000 Lirith, it tells you how much you did collect, and then closes it down.


--------------------
I became third toppest poster on July 5, 2006 at 12:10 AM. I'M HAPPY!!! Wanna see what post made me third toppest (probably not)? Go here.
RPGXP Unlimited reached it's 1,000th post on July 11, 2006 at 11:05PM with the following post: 1,000th post This posted was done by Marked. (GO MARKED!)
Top
Blazinks
Posted: Aug 24 2006, 07:11 PM


The toppest poster! (so far) :D
*

Group: Master
Posts: 534
Member No.: 14
Joined: 16-May 06



It's, \g
I would know cause i did...
/n[1] and it showed the message as,

""/name[n[2]] So /n[1], where are we heading?""

>->


--------------------
user posted image
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
InvisionFree - Free Forum Hosting
Enjoy forums? Start your own community for free.

Topic Options



User legend
Administrator | Moderator | Newbie | Member | Expert | Advanced | Master | Supreme

Lo-Fi Version

Skin designed by Zeus00 of the IF Skin Zone
Hosted for free by InvisionFree* (Terms of Use: Updated 2/10/2010) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Archive