Home   Help Search Login Register  

Author Topic: role-playing map (Rensville)  (Read 2014 times)

0 Members and 1 Guest are viewing this topic.

Offline OFPfreak

  • Members
  • *
  • Who is da operation flashpoint freak now, freak?!
    • OFP NFS mod
role-playing map (Rensville)
« on: 12 Dec 2004, 05:51:45 »
I am creating,  atleast trying, to make a role-playing map. Im calling it Rensville for 3 reasons.. I copied part of the name from nogville, Rens is part of my surname and its the name of my dog and I'm too lazy for another name  :P.

Well im not posting becuase im doing a show-off more my mission but becuase I need to know how 4 scripts/init things.

1. I need to know how to get money and be payed money, buy cars and that it unlocks the car, but you can lock it again. (if its not possible to lock it again, atleast to unlock it by paying money for it)

2. I want to make a police base (ressistance) but I want to know how ONLY the ressistance side can open this and close it.

3. I also want to know how to unlock and lock cars.

4. I want to know how to use addactions for the gate i want to open or the lock/unlock action for cars.

If anyone can tell me 1 of these things I would REALLY appreciate them and would thank them for some reason.. (e.g. in the notes put "...and special thanks to player and player1 for helping me out")

And if you could give me any hints on a role-playing map, I would like that as well  :).

NOTE: I know ive been asking a lot of things in the forum and have been a bit selfish/greedy/unrespectful (please dont add any in posts) but in this post I would actually really need to use it and respect people... Now please do NOT comment about this note!
ofp nfs REBORN! All new nitro, neon, customized cars, off-road, on-road, rally, bikes, racer models and more!
ofp nfs's homepage

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:role-playing map (Rensville)
« Reply #1 on: 12 Dec 2004, 10:18:37 »
1.  I have seen money scripts around, though I'm not sure whre.   Try the Ed Depot and use the forum search function, going back a long way.   (Be persistent.)

2.  More details please.    Depending on what you mean the answer is probably a trigger with Activation box set to Resistance present or something.

3.  For the player, just use the command lock.

4.  addAction.     There are some helpful Comments on the online comref.
Plenty of reviewed ArmA missions for you to play

Offline OFPfreak

  • Members
  • *
  • Who is da operation flashpoint freak now, freak?!
    • OFP NFS mod
Re:role-playing map (Rensville)
« Reply #2 on: 13 Dec 2004, 04:05:02 »
Update:

question 1 = 50%

question 2 = done

question 3 =  50% (still havent entered ofp yet, gonna try in a minute)

question 4 = problem running script with parameters when using addaction

thank you macgube about the tips.. I seem to have worked out and found question 2 and 4 myself so dont worry about thse now :)
ofp nfs REBORN! All new nitro, neon, customized cars, off-road, on-road, rally, bikes, racer models and more!
ofp nfs's homepage

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:role-playing map (Rensville)
« Reply #3 on: 13 Dec 2004, 04:11:59 »
1)you would have to use some other kind of script to then unlock the car, or add something to the money script, it depends on what you are doing

3) as maccy said, lock for player, locking vehicles only works for human players. to keep ai out, you would need a script that would set them out of the car if they try to get in. a simpler way to keep the ai out would be set the fuel to 0 and then when it gets "unlocked" set the fuel to 1

Offline OFPfreak

  • Members
  • *
  • Who is da operation flashpoint freak now, freak?!
    • OFP NFS mod
Re:role-playing map (Rensville)
« Reply #4 on: 13 Dec 2004, 04:31:12 »
1: Yes im not that dumb (no im not, dont grin ::))) .. actually im asking for the script itself..

3: well erm sorry but a role-playing map is not an SP map.. I mean for online players...  But I have the feeling its going to be complicated for 15 players... well I have found out this is not going to work but atleast that only the ressistance (police, since police is in civillian side I use ressistance (hunters) for police) can unlock and lock the door. Im trying to get idea's from Nogville... by the way does anyone know where I can download Nogville?? I only played it once for 5 minutes before  :() It is possible to let the police lock it, so if they forget to lock it peepz can steal it or when the gate isnt closed... Basically I know how to only let the resistance use the action but want I want to know is the lock/unlock script (addaction script type) to lock/unlock cars.

4. Im having BIG problems with addaction with scripts that have parameters.. I already seen it explained in the online comref but thats medium difficulty.. call me a beginner man!! help!
ofp nfs REBORN! All new nitro, neon, customized cars, off-road, on-road, rally, bikes, racer models and more!
ofp nfs's homepage

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:role-playing map (Rensville)
« Reply #5 on: 13 Dec 2004, 04:42:33 »
1)thats not easy, not knowing anything about what you are doing or anything

3)doesn't matter if its mp, players are players, and they will all be locked out
as for unlocking, you would need addaction, which you are having problems with  :-\

4)everyone has problems with that sort of thing. once again, its situation specific.
the car:car addaction ["unlock car","unlock.sqs"]

Unlock.sqs
Code: [Select]
_car = this select 0
_guy = _this select 1
_action = _this select 2
_car removeaction _action
?!(_guy == owner):hint "You can't unlock it";exit
_car lock false
then when the person buys the car, you can put:
owner = nameoftheguy
but for that you need the money scripts. for now to test it just put in the guys init:
owner = this
then he can unlock it

pazuzu

  • Guest
Re:role-playing map (Rensville)
« Reply #6 on: 13 Dec 2004, 08:06:05 »
Did you try this site? http://www.freewebs.com/shell_shocks_workshop/missions.htm

Scroll to bottom & try the money example mission. http://www.freewebs.com/shell_shocks_workshop/Money%20test.zip

Good luck



Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:role-playing map (Rensville)
« Reply #7 on: 13 Dec 2004, 13:05:39 »
addAction is indeed a medium difficulty command and is tough for beginners.   If you're struggling a bit, don't get bogged down.   Leave it for a while, work on some other part of the mission and come back to it later.

It's not that it is fundamentally hard - in fact it's perfectly straightforward - but you do need to learn to walk before you can run.
Plenty of reviewed ArmA missions for you to play

Offline OFPfreak

  • Members
  • *
  • Who is da operation flashpoint freak now, freak?!
    • OFP NFS mod
Re:role-playing map (Rensville)
« Reply #8 on: 19 Dec 2004, 05:46:52 »
I got the addactions now.. only parameters combined with addactions is what is making me confused.. Does anyone know where I can download a PBO extractor so I can make 1 of my missions ready for beta testing??
ofp nfs REBORN! All new nitro, neon, customized cars, off-road, on-road, rally, bikes, racer models and more!
ofp nfs's homepage

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:role-playing map (Rensville)
« Reply #9 on: 19 Dec 2004, 05:53:22 »
just do a search on google or something for
unpbo
and
makepbo

Offline Noon416

  • Old Bugger
  • Former Staff
  • ****
Re:role-playing map (Rensville)
« Reply #10 on: 19 Dec 2004, 05:57:58 »
Or try searching the Editor's Depot, seeing that's what it is there for. ;)
"If a man talks in the woods and no woman hears him, is he still wrong?"

Offline OFPfreak

  • Members
  • *
  • Who is da operation flashpoint freak now, freak?!
    • OFP NFS mod
Re:role-playing map (Rensville)
« Reply #11 on: 19 Dec 2004, 06:37:46 »
well duuuh i did actually.. coudnt find anything.. I know there are more than 1 PBO compressing tools but for some strange reason not there..
ofp nfs REBORN! All new nitro, neon, customized cars, off-road, on-road, rally, bikes, racer models and more!
ofp nfs's homepage

pazuzu

  • Guest
Re:role-playing map (Rensville)
« Reply #12 on: 19 Dec 2004, 07:56:52 »
The editor makes a pbo when you save...

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:role-playing map (Rensville)
« Reply #13 on: 20 Dec 2004, 00:59:39 »
OFPfreak you are overcomplicating.    The only tools/programmes you need to make a mission ready for beta testing are

1)  The mission editor itself

2)  winzip

That's it.   If you're using anything else you are probably screwing up bigtime.

If you want to unpbo existing missions use Amalfi's pbo decryptor 1.5 from the Editors Depot.    Makepbo etc are only needed if you are making addons or doing something seriously advanced.

addAction parameters are non-trivial.   If you are stuck ask something really specific.

Read the sticky topic at the top of the beta testing board BEFORE posting your mission for beta testing.   It will save much time and trouble.    
Plenty of reviewed ArmA missions for you to play

Offline OFPfreak

  • Members
  • *
  • Who is da operation flashpoint freak now, freak?!
    • OFP NFS mod
Re:role-playing map (Rensville)
« Reply #14 on: 20 Dec 2004, 03:35:14 »
huh? But last time I had a mission somone messaged me about my mission (1 file only!, mission.sqm) it had to be turned into a pbo while it was .zip! Well Ill try again.. thanks anyway...
ofp nfs REBORN! All new nitro, neon, customized cars, off-road, on-road, rally, bikes, racer models and more!
ofp nfs's homepage