Hello Everyone,
I didn't see this specifically so I wanted to throw this question out there. I'm planning on having a game design with multiple floors stacked upon one another (like a skyscraper) but I wanted the enemy chasing the player to, instead of killing the player, teleport him down either a set number of floors or if possible an increasing number of floors corresponding to the number of times the enemy catches you. I'm not really asking for scripting, but more of a method to set something like this up, since I'd imagine that I would essentially need to set a teleport location on every floor to make this work and, as a primitive method, set a copy of the actor model on each of the floors where I want him to appear and set the teleport to a specific floor. (AKA I set it so the version on floor 30 always sends you to floor 28)
However, I don't know if my reasoning is correct in this or if there is an easier method to going about this. (I also may be getting ahead of myself a bit since I don't even have any actors to fill in for the enemy creature as of yet, but I'm mentioning more towards the possibility. If the variable method of more captures = further down is not possible then I'll change the game to fit what is. I just wanted to know if anyone has done something like this before.)
Thanks for any replies.
Enemies that Teleport the player
Re: Enemies that Teleport the player
It sounds like a good idea, enemy makes contact with the player and depending on the amount of damage done sets the teleport target to a specific floor, then activates the teleport. I am almost certain you could do this by scripting but not fully sure at the moment. I will need to give it a lot of thought.
Re: Enemies that Teleport the player
Could it be done with logic gates?bernie wrote:It sounds like a good idea, enemy makes contact with the player and depending on the amount of damage done sets the teleport target to a specific floor, then activates the teleport. I am almost certain you could do this by scripting but not fully sure at the moment. I will need to give it a lot of thought.
Steve Dilworth - Resisting change since 1965!
-
- Posts: 12
- Joined: Tue Feb 05, 2013 8:41 am
Re: Enemies that Teleport the player
It seems to me that the main issue would be that, in order to pull something like this off in the manor that I'm imagining, the game would need to somehow track the floor that the player is currently on in order to apply a teleport to the lower level based on, say the health of the character minus the floor level or something. (say instead of dealing damage to the player, the player starts with 1 health and when the creature touches the player he gains exactly 1 health and then that value is used to determine the level that he's teleported to.
I don't know if this is actually feasible or not (haven't given the scripting section of the tutorial a thorough look yet) but it might be an idea.
I don't know if this is actually feasible or not (haven't given the scripting section of the tutorial a thorough look yet) but it might be an idea.
-
- Posts: 12
- Joined: Tue Feb 05, 2013 8:41 am
Re: Enemies that Teleport the player
I tried looking the term up in the e-book but didn't find anything. What are logic gates?steven8 wrote:Could it be done with logic gates?bernie wrote:It sounds like a good idea, enemy makes contact with the player and depending on the amount of damage done sets the teleport target to a specific floor, then activates the teleport. I am almost certain you could do this by scripting but not fully sure at the moment. I will need to give it a lot of thought.
Re: Enemies that Teleport the player
Logic gates are "and" , "or" , "not", "xor" mathematical functions. The gates can be added from the editor. they are explained in the help docs.
Steven I think it needs more than the gates.
Steven I think it needs more than the gates.
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Re: Enemies that Teleport the player
The easiest way to do this is through sripting. This is even demonstrated in rftechv1 demo level: if one of the robots in the top level discovers the player, he will be teleported to the level below. The script in question is called robot1.s.ChainedFlight wrote: I wanted the enemy chasing the player to, instead of killing the player, teleport him down either a set number of floors
Re: Enemies that Teleport the player
I just stink at programming, and no matter how you spin it, scripting is a form of programming. I will do anything to try and solve a problem using entities! Chainedflight, I'd listened to Bernie and QOD.
Steve Dilworth - Resisting change since 1965!
-
- Posts: 3
- Joined: Wed Nov 03, 2010 9:07 am
Re: Enemies that Teleport the player
I like this idea more than my brother. Can you give example of the script?bernie wrote:It sounds like a good idea, enemy makes contact with the player and depending on the amount of damage done sets the teleport target to a specific floor, then activates the teleport. I am almost certain you could do this by scripting but not fully sure at the moment. I will need to give it a lot of thought.
Where there is only a choice between cowardice and violence, I would advise violence. - martial art