LOGIN
SEARCH
PROFILE
keys: ↑ ↓
LOGOUT
INDEX
MEMBERS
keys: ↑ ↓
HOME
PORTAL
PLAY ALONG
PLAY with WORDS
PLAY with GRAPHICS
PLAY with SOUNDS
PLAY with CODES
PLAY with PROJECTS
keys: ← →
Guest Access
Register:
Members:



Go to page : 1, 2  Next

View previous topic View next topic Go down Message [Page 1 of 2]

Morderator
Morderator
#1 Terrain Tag Common Event Triggering Empty Terrain Tag Common Event Triggering
Loading

albertfish

albertfish
Morderator
Morderator
Morderator
profile
Hey, this is a little script I threw together just now.

This script calls a common event equal to the current terrain tag.
For example, terrain tag 1 calls common event 1, terrain tag 2 calls common event 2, etc. Terrain tag 0 does not call any common events. By default all terrain tags, 1 through 7, call common events, but you may change @final_tag to something less than 7. The new value will be the last terrain tag that calls an event.

This script also calls the even once for every time you step on the tile.
For example, if the common event added 1 gold, as I walk on to the tile I will receive 1 gold rather than receiving 1 gold repeatedly.

Anyways, here is the script.
Spoiler:
Morderator
Show Signature
Morderator
Administrator
Administrator
#2 Terrain Tag Common Event Triggering Empty Re: Terrain Tag Common Event Triggering
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
profile
@Albertfish - man you rock!
this opens up more interaction with the map in such
a simple manner...

for swimming in water...
walking slower in the mud...
and the one calvin and I have been working on...
falling off the edge.

this is great! having it not repeat was such a nice touch.

7 terrains are more than enough to play with...
I was just trying to get one to work ^,^
Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch
Morderator
Morderator
#3 Terrain Tag Common Event Triggering Empty Re: Terrain Tag Common Event Triggering
Loading

albertfish

albertfish
Morderator
Morderator
Morderator
profile
I'm also working on giving you more control over how it executes. What I am going to add to this script is the ability to have it repeat if you want it to repeat, and also allow you to control the speed in which it repeats.
Morderator
Show Signature
Morderator
Administrator
Administrator
#4 Terrain Tag Common Event Triggering Empty Re: Terrain Tag Common Event Triggering
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
profile
come to think of it, having it repeat
and at what speed would work well
with maps that have acid or lava

ok now I'm even more excited ^,^
Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch
Morderator
Morderator
#5 Terrain Tag Common Event Triggering Empty Re: Terrain Tag Common Event Triggering
Loading

albertfish

albertfish
Morderator
Morderator
Morderator
profile
Alright, version 1.1 is now posted which gives you the ability to control how the script calls the events.
Morderator
Show Signature
Morderator
Administrator
Administrator
#6 Terrain Tag Common Event Triggering Empty Re: Terrain Tag Common Event Triggering
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
profile
wow! ~ though this script is small...
I'm looking at code I've never seen before! ^,^
I can't wait to try it out using terrain tag 1 to have a common event
make the player/character fall of the edge/cliff.

my question is, how would I be able to use this with multiple maps
so that when the player falls they reappear at a "safety point" for each map ?

going to have fun with the new version right now!


edit: having issues with passability
Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch
Morderator
Morderator
#7 Terrain Tag Common Event Triggering Empty Re: Terrain Tag Common Event Triggering
Loading

albertfish

albertfish
Morderator
Morderator
Morderator
profile
Well, my script does not alter the effects of the RPG Maker, all of that stuff is hard coded and cannot be changed. The script just effects the executed game, so my script wouldn't alter anything when changing the terrain tag in the database.

I also tried this on my machine and it didn't alter the pass-ability. Also, I updated the script again. Just a minor edit so that the game doesn't crash if the corresponding common event doesn't exist.

If you find any bugs in the script please let me know Smile.

Gameface101 wrote:edit: having issues with passability
The only this that I can thing of is a compatibility issue. Maybe with the ABS, because I know that script uses terrain tags in it.
Morderator
Show Signature
Morderator
Administrator
Administrator
#8 Terrain Tag Common Event Triggering Empty Re: Terrain Tag Common Event Triggering
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
profile
there was a conflict with this Vehicle script I was using...
well it was easy for me to decide which script to keep ^,^

I've made a simple teleport common event with tag 1

and a lose HP with tag 2 using the wait 40 comment...

it truly works like a charm! ^,^

I'm sorry if I ever doubted you Razz

pure genius Cool
Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch
Morderator
Morderator
#9 Terrain Tag Common Event Triggering Empty Re: Terrain Tag Common Event Triggering
Loading

albertfish

albertfish
Morderator
Morderator
Morderator
profile
Well, send me that script and I'll see if I can sort out any compatibility issues.
Morderator
Show Signature
Morderator
Administrator
Administrator
#10 Terrain Tag Common Event Triggering Empty Re: Terrain Tag Common Event Triggering
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
profile
generic vehicle script sent ^,^

thanks for taking a look... I'm sure there's a better
script or way to make vehicles.

this terrain trick script of yours has got me working
on all 7 common events. it's just super nifty! Wink
Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch

Sponsored content

profile

View previous topic View next topic Back to top Message [Page 1 of 2]

Go to page : 1, 2  Next

 

Chatbox system disabled
Personal messaging disabled