Site Announcements

  • Account registration restricted. Email lord.ixzion AT gmail.com and I will get you set up. Thanks.
  • RPGMM Discord Channel - https://discord.gg/YJnAfVr

  • New to the site? Let us know!! - Check here.
  • RPGM Magazine Mission Statement. - Check here.
  • We now have a forum up specifically for the races, check it out. - Check here.


[Continue]

It is currently November 17th, 2024, 5:31 pm
View unanswered posts | View active topics


All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: March 11th, 2006, 8:18 pm 
Rank 3: Studying Black Mage Rank 3: Studying Black Mage
Offline

  Level 0
 

Joined: March 6th, 2006, 12:14 am

Posts: 609
I'm really into the whole "script compilation" thing. I've created some pretty good compiled scripts for items and location changes. Now I've made one for when the main character reads signs. My hope is to have all of the signs that can be read in the game accessable by 1 event and 1 script (maybe more than 1 event, to change the graphic if I feel like it ). Anyways, I created a formula that works. It took be a good hour, but eventually something clicked, and I came up with this formula. When I tested it, it actually worked.

I have a script known as "Sign Reader." What it does is decides what sign the player is trying to read, and delivers the output. Since there may be a lot of signs in the game, it prevents me from taking up a lot of space using 1 script for each sign (as well as 1 event for each). This is the formula.

I assigned a variable, number 204 as the official "Sign Reader" variable. I basically go into the "Sign Reader" script and this is what happens.
I load the game info.
Then I assign variable 204 ( Sign Reader ) to equal variable 081: Map Number + 082 Party X Coordinate. Then I assign variable 204 to variable 204 + var. 083 Party Y Coordinate. Then I assign var. 204 to var. 204 + Party Z Coordinate.

Then I create a message box that says "Your returned variable is ", then I add a text content, which will be "variable 204", the result. I then make a seocnd message box event to close the box after you've read it.

What I get is the total sum of var. 81, 82, 83 and 84. I tested it using an event I labeled "TEST" in order to see if it works. Sure enough, it did. I placed it at numerous locations, and got a sum of all variables. Now all I'll do back in the script "Sign Reader" is create numerous Script Branches depending on var. 204, which is the total sum. I got something like 249, 254, 263, and so on. Also, I can use this to make a sign readable from one side.

I know you're all above this, but this is something cool for the newbies, anyways. Also, let me know how neat this is, if it's really resourceful or not. Also, if this is good, let me know if there's another way which is more simpler and resourceful.

- Nick


Top
Profile  
 
PostPosted: March 12th, 2006, 5:57 am 
Rank 2: Eager White Mage Rank 2: Eager White Mage
Offline
User avatar

  Level 0
 

Joined: November 3rd, 2005, 5:28 pm

Posts: 565

Location: Deep In The Bowels of New Jersey
There are so many ways to do this that whatever works sounds good to me!

I am surprised it retrieves the current Party X coordinate without loading the game info, but if it works... it works!

Peace.

_________________
<center>
<b>MOO!</b>
<img src="http://i16.photobucket.com/albums/b41/Rodak/bannr.jpg">
<a href="http://vfxguide.tripod.com/contents.html" target="blank"><img src="http://i16.photobucket.com/albums/b41/Rodak/guide-ad2-sig.jpg"></a>
</center>


Top
Profile  
 
PostPosted: March 12th, 2006, 12:07 pm 
Rank 3: Studying Black Mage Rank 3: Studying Black Mage
Offline

  Level 0
 

Joined: March 6th, 2006, 12:14 am

Posts: 609
lol
I forgot to include that I did use Game Info>Load.

My bad.


Top
Profile  
 
PostPosted: March 12th, 2006, 6:42 pm 
Rank 11: Sexy Black Mage Rank 11: Sexy Black Mage
Spotted Skunk/Dragon
Offline
User avatar

  Level 158
 

Joined: May 18th, 2005, 4:18 pm

Posts: 7289

Location: <- That Way ->
Well look what I've started.:)

Nice to see you're getting the hang of this.

_________________
Image Image
"What if like...there was an exact copy of you somewhere, except they're the opposite gender, like you guys could literally have a freaky friday moment and nothing would change. Imagine the best friendship that could be found there."


Top
Profile  
 
PostPosted: March 12th, 2006, 6:45 pm 
Rank 3: Studying Black Mage Rank 3: Studying Black Mage
Spotted Skunk/Dragon
Offline

  Level 0
 

Joined: March 6th, 2006, 12:14 am

Posts: 609
Yeah, you're right. Thanks.

I'm saving a ton of scripts by
compilation. :D


Top
Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group