Page 1 of 1
Can i do it and how?
Posted: Wed Jul 23, 2008 8:39 pm
by anhdung86
My player in level 1 and get a mission from a NPC, then my player go to level 2 for doing this mission. When done my player come back to level 1 and NPC give my player some money (or weapon, item v..vv). Can i do it in RF? Because when a level is loading, all events in this level will be reset
This problem is very important in a RPG game, someone please help me how to do it
Re: Can i do it and how?
Posted: Wed Jul 23, 2008 8:59 pm
by GMer
You could try creating a duplicate level of level 1 and set the gold, weapons, items etc. There is probably a much better way to do this with complex scripting, but this is the simplest thing that came into my mind.
Re: Can i do it and how?
Posted: Wed Jul 23, 2008 9:15 pm
by anhdung86
Thank you very much GMer
, but if there are many mission in one level, the problem can not be solved
Re: Can i do it and how?
Posted: Wed Jul 23, 2008 9:34 pm
by metal_head
Well in my game I'm using this one.I got a level from where you go to different missions,and when you complete a mission,you return to the same level,where a new mission is unlocked.I'm using the same map for this,but they are actually different levels.For example for the first time you spawn in MetalCity(that's the name of the level) and there is only one mission available,than when you play the mission you go to a different level,which is the same as the first one,but there is a second mission available.
Maybe I'll have to make a lot of levels for future,but I think that's the only decision.
Re: Can i do it and how?
Posted: Wed Jul 23, 2008 10:42 pm
by anhdung86
Thankz so much metal_head, if that's the only decision, i think it's best way for me now, thank again
Re: Can i do it and how?
Posted: Wed Jul 23, 2008 10:59 pm
by metal_head
Well,I'm not sure it's the only decision,but it's the only one I know.Or maybe you can try saving your first level using attributes and when you complete the 2nd level an attribute is changed and for example a new mission is unlocked,but I'm not sure how to do that and if it'll work.
Re: Can i do it and how?
Posted: Thu Jul 24, 2008 7:03 am
by anhdung86
Okay, Jay say that: "To do somethign liek this, you must store all the states in attributes and apply them at each level start."
I will learn how to store all the states in attributes, hope it's not difficult