Jump to content

Anyone good at Scripting?


Machienzo

Recommended Posts

http://www.newvegasnexus.com/downloads/file.php?id=41352

 

Alright, I've got this mod uploaded. So you get the idea from having a look at it. It's still in early stages. I'm looking for help for one thing at the moment. These slot machines run off their own casino data depending on their area. Just like any other casino, once you get past the winnings limit you get 'banned' from using the machines affiliated with the casino data. Now the difference is, these machines are set up to 'refill' every three days. Therefore, when you do get 'banned' from maximising your winnings, the "You have been banned from this casino" message that pops up afterwards (and on subsequent retrys to use the machine) in the top-left of the screen isn't really applicable. Instead, I want to change it to say something along the lines of "This venue has run out of winnings.".

 

The problem stems from that fact that the 'banned' message is actually a game setting. I cannot change it or add any new global settings. Nor do I wan't to change it as it would affect every other casino that uses it. If I could however and allow it to affect only my machines, that would be awesome. So, any help here?

Link to comment
Share on other sites

The you are banned message only appears if you call the "showslotmachinemenuparams" or "showroulettemenuparams" or "showblackjackmenuparams" commands with a banned casino data

 

You need to check your script for the slot machine and go to the part where it has that and add something like

 

if getcasinowinningslevel (your casino data) >= 4 ;(banned)

showmessage (Id of your custom message)

else

showslotmachinemenuparams (data) x y z ; or roulette or blackjack

endif

 

or something like that

 

sound easy enough?

Link to comment
Share on other sites

I believe I've already done that. Here's the scripting for one of the machines.

 

scn mpxSlotMachineLVBScript

 

float SlotRefill

scn mpxSlotMachineLVBScript

float SlotRefill

begin OnActivate

if IsActionRef player
	if mpxRegionalSlots.Info !=1
			ShowMessage mpxRegionalInfo
			Set mpxRegionalSlots.Info to 1
			set SlotRefill to 0
	elseif mpxCasinoCompsLVB.Banned == 1
		ShowMessage mpxLVBSlotsMsg
	else
		ShowSlotMachineMenuParams mpxLVBCasinoData 1 100 0
	endif
endif
end

 

I guess from that script then, it should successfully show the message when you try to activate a slot after being banned. Though I'm pretty sure it at least doesn't say that the slot machine has no more winnings at the EXACT moment you reach the maximum winnings and are forced out of the game.

 

Would that be focusing on editing the "ShowSlotMachineMenuParams"?

Edited by Machienzo
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...