Jump to content
Sign in to follow this  
liebstpanzer

sqf programming beginner

Recommended Posts

I'd love to start making .pbo files... but almost half of what you linked to me are 404.

Does this work?:

HintingPartFive = {

_Arg1 = _this select 0; --Our Table
_Arg2 = _this select 1; --Our Specific choice of answer in this case.

_Greetings = _Arg1 select 0; --select first what greeting depending on where _val is. --I created two vars on purpose
_Answers = _Arg1 select 1; --select our list of answers.

_i = 0;

{
	_i = _i + 1; --Count our possible Greetings.
} foreach _Greetings;

_Greeting = _Greetings select random _i - 1;
_Greetings = nil;

_i = 0;

{
	_NumOQ = _i + 1;
} foreach _Answers;

_Answer = _Answers select random _i - 1;
_Answers = nil;

_filter = [];
_filter set [ 0, _Greeting ];
_filter set [ 1, _Answer ];

hint _filter select 0 + _filter select 1
sleep _Arg2;

};

//
_LocalArray = [
	--0		--1
	[ ["Sup",", Hey"] ], --0 Greeting
	[ [", whats going on?", ", not much dog, chillin'"] ]--1 Answer
];
//
for {_val = 0}, {_val <=count _LocalArray select 1}, {_val = _val} + 1 do { 

[_LocalArray, _val] call HintingPartFive; --I'd like some coconut.

};
//

---------- Post added at 04:06 ---------- Previous post was at 03:16 ----------

Killzone_Kid has some good tutorials here:

KK's blog - Tutorials

I also like these tutorials but I don't really want to wait for ArmA3 right now...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×