Free mmorpg game engine  Forum

zIFBoards gives you all the tools to create a successful discussion community.
zIFBoards - Free Forum Hosting
Welcome to DimensioneX Forum. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Name:   Password:


  Add ReplyNew Topic

 Doing Something For Game Play With A Hook
HobbyCoder
Posted: May 6 2012, 09:25 PM


Member


Group: Members
Posts: 13
Member No.: 2,331
Joined: 10-March 12



Hi. I've recently used a hook to interact with the gave server. Right now, the client just sends an integer and ther server responds by printing the integer. That seems fairly meaningless for game play.

I would like to do something that is actually meaningful for game play, but my attempts haven't been fruitful so far. Let me show you an extremely simple attempt that makes the client's game play stop working:

' In commons.dxl

EVENT doTestHook(testNum)
Call doTransform($AGENT)
Print testNum
End_EVENT

*****************

Without the DoTransform line, the game and the hook work just fine, as decribed above. When I add the DoTransform line, however, if the player is a vampire with the transform button showing on the interface at the time, the call to the hook makes the next player movement to another room show the underworld screen instead of the next room.

So, here are my questions: 1. Was the hooks feature never designed to change game play? By this I mean to ask if I am trying to misuse the feature. 2. If it was meant to be used to change game play, what am I doing wrong, or what is a way to do something like this correctly?
Top
zIFBoards - Free Forum Hosting
zIFBoards gives you all the tools to create a successful discussion community.

Topic Options Add ReplyNew Topic



Hosted for free by zIFBoards* (Terms of Use: Updated 2/10/2010) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Archive
Custom Search