I like this feature, great demo too, shows many ways to use this script.
For the mobs chasing you, how does it work, they chase you as long as your in X range? Theres not some limit say they chase for X frames then return, or chase you as long as they have sight of you?
I think that might be interesting having the chase start when the mob faces you, so you can sneak up on them, gives the option to add Preemptive strikes. In addition if they hit your back, they get first strike.
Edit: Also I found a broken part, in the demo if you aggro 2 slimes, and they chase you ending up both right next to you, you begin combat with one, you defeat them, then instantly after combat you begin the combat with the other slime. However after defeating the slime, or escaping, the slime does not go away and restarts combat, endlessly.
Edit2: Also when you beat a slime the tile it was on cannot be passed. I know thats less to do with script but none the less if people copy paste it from your demo it will be broken. Setting page 3 to Under Character will fix that I believe... Im sure you already knew that though 😛
I dont know how to work in sneaky and preemptive stuff 🙁 .
How can this be done if the mob chases as soon as you get close enough, you'll never be able to stab it in the back so to speak.
Awesome! I love the bard in the demo, it reminds me of a game called "Nier" for Xbox 360. Probably not where you got the idea from but its sweet nonetheless! I think your solution form "line of sight" is perfect! Can't wait to find a game to use this in. 🙂
So I found a way to get first strike and back attacks via script. However since the enemy events are parallel process it makes thing tricky.
First im using this in my condition branch:
Proxy.inprox_d?(@event_id)
The problem is the player can touch the enemy from behind or the side, and nothing will happen since its only triggered when the enemy looks at the player. Is there anyway to change it or maybe I don't know how to set it up, but when player touches enemy from behind self switch D for example.
Also do you think its possible to add slightly smaller then 1 (like a .5), because right now 1 is awkward looking when initial contact is made, and I want to have some enemies smaller hit boxes.
Can use below Proxy.inprox_d?(@event_id) branch, on the same page, Proxy.inprox?(@event_id, 1) to check if player is within 1 square after checkin if event can see player to initiate combat.
The smaller then 1 values would be more difficult to put in so youll have to work around it, the reason it looks awkward is because it uses the events and players x,y location on the map and that updates when movement begins and not after. You can however set it up like... Proxy.inprox?(@event_id, 1) >> wait of 10 or so frames >> Proxy.inprox?(@event_id, 1)... with that it will check if player is within range, if so, waits 10 frames, then checks again, and if they are still in range then boom! Combat.
Hmmm thanks you been helpful as usual 🙂 .
Im still having problems with my other script though 🙁
You are awesome, I was waiting for this script. Now we can display arrows to the entrance of places like the pokémon games haha
EDIT: Tried my idea but it was unsuccessfull because It uses parallel process and this will take you to the place endlessly. So i tried to solve it using the advanced option with another parallel process checking where the player is, and if the were player is on the exact area it would be teleported. But I dont know how because the advanced option only check for range and not specific place on the map. Can someone help me?
thank you, I don't know well how to work with the store location event, so i will use the script method 🙂 this script have too many posibilities, I love it.
New version, New function!
Proxy.inprox_r?(@event_id, width, height) is used to check if the player is within the rectangle defined by width/height with the event as the center! Works well with odd numbers, not so much with even.
Would it be possible to have an addon that allows us to set up Preemptive strikes and back attacks?
Updated to 1.3 to include a basic sort of line of sight component to the detection (which you can say doesn't apply to specific checks)
Can also use regions to declare certain obstacles as transparent so they don't interfere with los, like pits and small boulders.
I can't seem to find the demo (well, I assume you removed it). Can you still make one? 😀