Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [HELP] Common events - Function when note is..., Make -this- happen when -text- is in -item-'s notebox
MajinBangFlash
post Dec 26 2010, 05:18 AM
Post #1


Retro-console lover
Group Icon

Group: Revolutionary
Posts: 195
Type: Writer
RM Skill: Skilled




I am eventing a very simple On-screen battle system for VX, and yes, I know, there is Verus Tempus, but I want to try to create my own system.

Anyway! I am wondering how it would be possible to make something happen when an object (Item, weapon, etc) have...Oh, I dunno, SWORD in the notebox of say, a sword, and I would then event on to make something happen if that comment is in the notebox.


Bleh. Now that I read it, that was a bad example tongue.gif

Okay, this is what I want to learn how to do :

If weaponid1.notebox has "SWORD" then
change actor graphic : "Swordsman"
walking animation = true
end
else
end
end

Is there a function like that which would at all be possible to do?

Thanks in advance.


__________________________
Go to the top of the page
 
+Quote Post
   
MajinBangFlash
post Dec 27 2010, 03:59 PM
Post #2


Retro-console lover
Group Icon

Group: Revolutionary
Posts: 195
Type: Writer
RM Skill: Skilled




22 views and not a single reply? Laaaaaaame.


__________________________
Go to the top of the page
 
+Quote Post
   
Ale Goth
post Dec 27 2010, 04:28 PM
Post #3


Darkness Is But A Good Thing. Use It wisely.
Group Icon

Group: Revolutionary
Posts: 138
Type: Writer
RM Skill: Advanced




You said a custom battle system right? And to get this straight, will you be able to change weapons in battle or only out of battle?
Just need to know so I can find out how to help.


Edit: I'm pretty sure you will need scripting. It might be better to post this in rpg maker vx/xp script requests. It will likely get more answers than here in the event emporium. Seeing as you got 22 views or something and no reply to answer this.


__________________________
COMPLICATED is my middle name!
~I am formerly known as Hatredlust. My new name Is Ale Goth :)
Long live the...!


Go to the top of the page
 
+Quote Post
   
MajinBangFlash
post Dec 28 2010, 06:46 AM
Post #4


Retro-console lover
Group Icon

Group: Revolutionary
Posts: 195
Type: Writer
RM Skill: Skilled




QUOTE (Ale Goth @ Dec 28 2010, 02:28 AM) *
You said a custom battle system right? And to get this straight, will you be able to change weapons in battle or only out of battle?
Just need to know so I can find out how to help.


Edit: I'm pretty sure you will need scripting. It might be better to post this in rpg maker vx/xp script requests. It will likely get more answers than here in the event emporium. Seeing as you got 22 views or something and no reply to answer this.


I realised that it would need SOME scripting (Emphasis on there being an "Advanced - Script..." option in events :3) It's just that for what I need, it is only to check the noteboxes in the database. EVERYTHING else I need to be done in this system can be done with a few minor scripts I found and a few event pages. I just need to learn how to access the database by using the script function when eventing.

The battle system is an ABS (Active Battle System). it happens on the map. It is meant to be similar to Vlad's battle system, but the way I have it set up so far, it is much, much less system heavy. You would access the menu normally, equip the weapon, exit menu, then press a button to attack. The notebox in the database is to refer to a character sheet which overlays the current actor/event graphic, giving the impression that the character is indeed swinging his/her weapon.


__________________________
Go to the top of the page
 
+Quote Post
   
originalwij
post Jan 6 2011, 11:50 AM
Post #5


... 42 ...
Group Icon

Group: Revolutionary
Posts: 214
Type: Scripter
RM Skill: Masterful




In a conditional branch, on the 4th page, use the script option and put this in the box:
CODE
$data_weapons[42].note.include?("SWORD")

... where 42 is the ID of the weapon, and "SWORD" is whatever tag you are searching for.
You can do the same for items and armors by replacing $data_weapons with $data_items and $data_armors respectively.

Also, if you want to assign the ID to a variable (and cut down on conditional branches) use this format:
CODE
$data_weapons[$game_variables[42]].note.include?("tag")

... where this time, 42 is the variable ID.


__________________________




Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th May 2013 - 07:30 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker