The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Scripts Database => Topic started by: dricc on August 31, 2009, 05:01:07 PM

Title: new area features
Post by: dricc on August 31, 2009, 05:01:07 PM
Area plus
Version : 1.0 by dricc

You know about areas in rpg maker VX ? Yes , it is not very useful .

So i add 3 more features :
- The name of the area you're currently in is now displayed (only the first one if you are in two areas) .
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi89.servimg.com%2Fu%2Ff89%2F11%2F59%2F23%2F52%2Fareapl10.jpg&hash=6c86c8c62b6157aaa32023139384a3a9b96e0ee9) (http://www.servimg.com/image_preview.php?i=46&u=11592352)
(Translation : Traveller's street)
Of course , if the hero is not in an area , nothing is displayed .
- If you put "[AREA]" in the name of the event and put this event in random move , the event will never go out the area .
This is based of the name of the area , so if you have 2 areas with exactly the same name , the event can move in both .
In the demo , some soldiers are affected to specific streets .
- The event can tell you in what area he is .
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi89.servimg.com%2Fu%2Ff89%2F11%2F59%2F23%2F52%2Fareapl10.png&hash=f5f7d373197e025788a7903f68a69871bf4ddd39) (http://www.servimg.com/image_preview.php?i=47&u=11592352)
In this exemple , the variable 25 contains the name of the area .

Features to come :
- a variable length for the area window .
- Disable the area window for some maps
- possibility to display the name of the map if the player is not in any areas .
- possibility to trigger a common event when the player enter an area (this will be fine for water-type areas)

Demo and scripts :
http://www.mediafire.com/?sharekey=adc3fc04709adce94c17ca8801618ef7e04e75f6e8ebb871

PS : sorry , the demo is not fully translated . Ask me if you don't understand something .
PS2 : sorry for the mapping in the demo , i made this quickly ...

Version 1.1 :
Link : http://www.mediafire.com/?ltxtzdonmv4

New features :
- Can enable/disable encounters in an area .
- Can switch encounters in 2 areas
- Can put a switch on in 3 case : when you entered for the first time in an area , each time you entered in an area , each time you go out an area . In my demo , try to go on water ... try also the horse .
Title: Re: new area features
Post by: modern algebra on August 31, 2009, 07:56:41 PM
This looks quite useful dricc. Nice job!

I particularly like the popup name window for the area, though it might not be a bad idea to have an option for that window to disappear after a couple seconds.

In any case, it looks like a nice script. Thank you for sharing.
Title: Re: new area features
Post by: dricc on September 09, 2009, 12:06:33 PM
Ok , i release a 1.1 version (in the frist post) .
The name of areas is not translated but all events and the comments in the scripts are .

I got a lot of trouble with the area window . I would like to make a fading ... not simple . I am still working on it , I will maybe ask for help .

EDIT : lol , i just noticed that something like that already exists :
http://rmrk.net/index.php/topic,25247.0.html
well , not exactly the same ...
Title: Re: new area features
Post by: digdarkevil on August 27, 2011, 08:37:11 PM
got an error with  this part

def set_var_area_name(var_id)
     $game_variables[var_id] = area_name_cur
     if  $game_variables[var_id]  == 0
       id = $game_map.map_id
       if area_name_cur != nil
       $game_variables[var_id]  = $Data_Maps.values[id].name
     else
      $game_variables[var_id]  = $game_map.name''''This Line
       end
       end
   end
   
Do You Know IF It Fixeble? If Yes,Ill Be Very Happy Cuz This IS A Very Nice Script ;8