RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Is it possible? [Resolved]

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 88
Patriots all the way!!
Is it possible that if you get into a sertain distance of an event the event will activate? Like in a mission when you have to follow  a guy to his base or its a sneaking mission.
« Last Edit: March 02, 2007, 12:00:33 AM by Valcos »
Im to cool to have my own signature!!!

**
Rep:
Level 87
Project of the Month winner for December 2007
You could just add invisible events that activate that event when you touch them, if you're working on a sneaking game. I've done it before on RM2k.

Steel Hearts - Anime Strategy RPG

**
Rep:
Level 88
Patriots all the way!!
Well I was think of more of a radius kind of thing...
Im to cool to have my own signature!!!

***
Rep:
Level 88
Smarter than the average bear
yeah, near fantastica's View Range events...I have to go find it now...

[in-post edit!]
It does exactly what you say, it was thought for events that spot you (pokemon) or events that the sounds get louder when you get closer, softer farther away etc..

Code: [Select]
#==============================================================================
# ** View Range Module
#==============================================================================
# Near Fantastica
# Version 4
# 29.11.05
#==============================================================================

#--------------------------------------------------------------------------
# * SDK Log Script
#--------------------------------------------------------------------------
SDK.log("View Range", "Near Fantastica", 4, "29.11.05")

#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if SDK.state("View Range") == true
  module VR
    #----------------------------------------------------------------------------
    def VR.in_range?(element, object, range)
      x = (element.x - object.x) * (element.x - object.x)
      y = (element.y - object.y) * (element.y - object.y)
      r = x + y
      if r <= (range * range)
        return true
      else
        return false
      end
    end
    #----------------------------------------------------------------------------
    def VR.range(element, object)
      x = (element.x - object.x) * (element.x - object.x)
      y = (element.y - object.y) * (element.y - object.y)
      r = x + y
      r = Math.sqrt(r)
      return r.to_i
    end
  end
 
  #==============================================================================
  class Interpreter
    #----------------------------------------------------------------------------
    def event
      return $game_map.events[@event_id]
    end
  end
 
#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end

Well, I'm pretty sure you don't have any idea what to do with this (i dont lol)
Heres his demo(watch out the one in there is v.2 and this script is v.4, im pretty sure the same event commands work in both...)
http://savefile.com/files/525231

**
Rep:
Level 88
Patriots all the way!!
Thanks!!! ;D This will help me out alot!!
Im to cool to have my own signature!!!

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
if this is solved, add [RESOLVED] to topic title, but leave topic open in case others have questions/comments.
Watch out for: HaloOfTheSun

**
Rep:
Level 88
Patriots all the way!!
Im to cool to have my own signature!!!