He he, you sure are curious
About the error, you could try changing these 2 lines:
?( man1 in taxi1 == true):goto "actions"
?( man1 in taxi1 == true): goto "check2"
to
?( man1 in taxi1):goto "actions"
?( man1 in taxi1): goto "check2"
It may work, but again I'm unsure.
When you said
And just for sure, i use same taxitown1.sqs script for other car, just changing name to taxi2 and script to taxitown2 ?
That would work, just change anything related to taxi1 to taxi2
For buying things, could could use this script, and to have multiple options, you can add them to this script:
#check
?( man1 distance dealer1 < 3):goto "actions"
~1
goto "check"
#actions
dealer1option1 = man1 addaction ["Buy Hand Grenade ($50)","dealer1option1.sqs"]
dealer1option2 = man1 addaction ["Buy other weapon ($100)","dealer1option2.sqs"]
dealer1option3 = man1 addaction ["Buy rockets ($500)","dealer1option3.sqs"]
#check2
~1
?( man1 distance dealer1 < 3): goto "check2"
man1 removeaction dealer1
goto "check"
The very important thing is that you remove all of the actions in all 3 scripts.So in dealer1option1, dealer1option2, and dealer1option3 would all need the following lines:
man1 removeaction dealer1option1
man1 removeaction dealer1option2
man1 removeaction dealer1option3
And the dealer1option1, 2 and 3 would look a bit like taxitown1.sqs.
If someone just gives cash its just only "man1money = man1money +50" ?
That's right, that'll jsut add money. Just remember that the money is just a variable, as a scripter you can control the money any way you can control a variable.
And how i get that taxi1 moving btw ?
I'm a bit unsure about this, that's why I left it out
I'll show you what you could do using the taxitown1.sqs:
_cost = 25
_pos = getmarkerpos "town1"
?(man1money < _cost):goto "cantafford"
man1money = man1money - _cost
hint format ["I have %1 in my pocket.",man1money]
man1 removeaction taxitown1
~3
taxi1 domove _pos1
exit
#cantafford
hint "You cannot afford this"
exit
If you'll notice, I've added this line:
_pos = getmarkerpos "town1"
This just means it gets a position from a marker named town1. The great thing about this is that you can move the marker, and even make it invisible (type none).
Any more?
-=GC=-Fungus1999