ItsABadger (talk | contribs) (Standardising formatting and a few typos.) |
ItsABadger (talk | contribs) |
||
Line 21: | Line 21: | ||
I will organize the assets by their purpose: | I will organize the assets by their purpose: | ||
== '''Entering the area | == '''Entering the area''' == | ||
'''Main Script''': <code>cas_areaonenter</code> | '''Main Script''': <code>cas_areaonenter</code> | ||
Line 32: | Line 32: | ||
These two scripts control access to the actual gambling portion of the casino. You are required to make a deposit of 100,000gp to play the games. It is returned with <code>cas_onexitarena</code>. It will not let the player enter the area if they do not have sufficient coins. This was a mostly in character decision rather than an OOC necessary one and can be removed and the area modified (blame arockravensbeak). | These two scripts control access to the actual gambling portion of the casino. You are required to make a deposit of 100,000gp to play the games. It is returned with <code>cas_onexitarena</code>. It will not let the player enter the area if they do not have sufficient coins. This was a mostly in character decision rather than an OOC necessary one and can be removed and the area modified (blame arockravensbeak). | ||
=== '''Buying Tokens | === '''Buying Tokens''' === | ||
Players purchase tokens from the help desk NPC. The choices are set via dialog. | Players purchase tokens from the help desk NPC. The choices are set via dialog. | ||
Line 45: | Line 45: | ||
'''NPC:''' <code>cas_helpdeskguy</code> | '''NPC:''' <code>cas_helpdeskguy</code> | ||
=== '''REWARDS: (TO BE DISCUSSED FURTHER WITH ADMIN TEAM, numbers are NOT finalized) | === '''REWARDS: (TO BE DISCUSSED FURTHER WITH ADMIN TEAM, numbers are NOT finalized)''' === | ||
==== Tier 1: (10-25 tickets) ==== | ==== Tier 1: (10-25 tickets) ==== | ||
Line 66: | Line 66: | ||
Flashy VFX weapons and properties. | Flashy VFX weapons and properties. | ||
== ''' | == '''Games At The Casino''' == | ||
=== SLOT MACHINES | === SLOT MACHINES === | ||
'''Main Script:''' <code>cas_slotmachine</code> | '''Main Script:''' <code>cas_slotmachine</code> | ||
Line 87: | Line 87: | ||
'''NPC''': <code>cas_helpdeskguy</code> - NPC with the dialog on him. | '''NPC''': <code>cas_helpdeskguy</code> - NPC with the dialog on him. | ||
=== '''BLACKJACK | === '''BLACKJACK''' === | ||
'''Main Scripts:''' <code>cas_dealer_spawn</code>, <code>cas_dealer_ud</code>, <code>cas_deal_liston</code> | '''Main Scripts:''' <code>cas_dealer_spawn</code>, <code>cas_dealer_ud</code>, <code>cas_deal_liston</code> | ||
Line 110: | Line 110: | ||
'''NPC:''' <code>cas_blackjackdea</code> - handles the game overall. | '''NPC:''' <code>cas_blackjackdea</code> - handles the game overall. | ||
=== '''WHEEL OF FIRE | === '''WHEEL OF FIRE''' === | ||
Main Script: <code>cas_wheeloffire</code> | Main Script: <code>cas_wheeloffire</code> | ||
Line 117: | Line 117: | ||
[TO BE DEVELOPED FURTHER] | [TO BE DEVELOPED FURTHER] | ||
=== '''THE MONSTER ARENA | === '''THE MONSTER ARENA''' === | ||
'''Main Scripts''': <code>cas_arenastart</code>, <code>cas_arenaper</code>, <code>cas_arenaospawn</code>, <code>cas_arenaondeath</code>, <code>cas_arenaonclick</code> | '''Main Scripts''': <code>cas_arenastart</code>, <code>cas_arenaper</code>, <code>cas_arenaospawn</code>, <code>cas_arenaondeath</code>, <code>cas_arenaonclick</code> | ||
Line 146: | Line 146: | ||
creature weapons to give golems appropriate weapons. | creature weapons to give golems appropriate weapons. | ||
== '''Miscellaneous Amenities | == '''Miscellaneous Amenities''' == | ||
=== Suites | === Suites === | ||
'''Main Scripts:''' <code>cas_bedroomcharg</code>, <code>cas_finalspeaker</code>, <code>cas_mebsolporn</code>, <code>cas_deletevariab</code>, <code>cas_assignvariab</code>, <code>cas_destroyproje</code> | '''Main Scripts:''' <code>cas_bedroomcharg</code>, <code>cas_finalspeaker</code>, <code>cas_mebsolporn</code>, <code>cas_deletevariab</code>, <code>cas_assignvariab</code>, <code>cas_destroyproje</code> | ||
Line 159: | Line 159: | ||
'''Conversations''': <code>cas_projectoropt</code> - select which show you want to watch. | '''Conversations''': <code>cas_projectoropt</code> - select which show you want to watch. | ||
=== Baths | === Baths === | ||
'''Main Scripts''': <code>cas_spawnfloor1</code>(1-6), <code>cas_bathscharge</code>, <code>cas_deletevariab</code>, <code>cas_assignvariab</code>, <code>cas_flr_optcv</code>, <code>cas_onenterfire</code>, <code>cas_onexitfire</code> | '''Main Scripts''': <code>cas_spawnfloor1</code>(1-6), <code>cas_bathscharge</code>, <code>cas_deletevariab</code>, <code>cas_assignvariab</code>, <code>cas_flr_optcv</code>, <code>cas_onenterfire</code>, <code>cas_onexitfire</code> | ||
Revision as of 15:30, 27 November 2023
Hello, this page is for ADMINS, DMS, and fellow builders.
Currently, the only contribution I have is for the following ERF: https://nwn.sinfar.net/res_list.php?erf_id=988 - or, the Casino.
The Casino is meant to be a dual purpose gambling/arena, with opportunities for players to host events and stage auctions, and whatnot- by discussing with the owner and master of the area, Mebriewiel Relimion.
Each token roughly costs 1000gp.
Tickets can be redeemed for 500gp
The primary purpose of the casino isn't to reward money to the victors, but tickets, which they can cash in for valuable prizes. This is not a money farm, but a money sink, where people can go out and farm monsters and spend their money in the casino, hopefully socializing with others in the process.
The area is located in the Waterfront District of Sinfar City.
I will organize the assets by their purpose:
Entering the area
Main Script: cas_areaonenter
This script controls the various functions PCs have applied to them when they enter the casino.
Thus far it does one thing: Assigns the variable NITAKETOKENS int 1
, to the entering PC. This has it so players who enter the arena will always have only one token taken from them by the slot machines - in case they forgot they did something silly and set themselves to 100 tokens and forgot to change it before they leave. Notably, the Slot Machines will not take ANY tokens from the player if this variable isn't assigned to the player, so it is to avoid an exploit.
Secondary Scripts: cas_entercasino
, cas_exitcasino
These two scripts control access to the actual gambling portion of the casino. You are required to make a deposit of 100,000gp to play the games. It is returned with cas_onexitarena
. It will not let the player enter the area if they do not have sufficient coins. This was a mostly in character decision rather than an OOC necessary one and can be removed and the area modified (blame arockravensbeak).
Buying Tokens
Players purchase tokens from the help desk NPC. The choices are set via dialog.
Scripts required: cas_createtoken1
, cas_createtoken5
, cas_createtoke10
, cas_createtoke25
, cas_creattoken50
, cas_creattok100
, cas_creatok1000
These scripts spawn the requisite number tokens into the player's inventory upon receiving payment.
Dialog: cas_helpdesk
Handles generic variables and token purchasing.
NPC: cas_helpdeskguy
REWARDS: (TO BE DISCUSSED FURTHER WITH ADMIN TEAM, numbers are NOT finalized)
Tier 1: (10-25 tickets)
Plushies, dolls, little visual toys and gadgets players can use on each other as gags or pranks.
Tier 2: (25 -100 tickets)
Crafting Reagents.
Tier 3:(100 - 2500 tickets)
Various scripted items, such as Spin the Bottle. The Slutsnatcher Grappling Hook, other misc items.
cas_spinthebottl
(handles the spin the bottle functions)
cas_grapple
(handles how the slutsnatcher grappling hook works).
Tier 4: (2500 - 5000)
Jumpers.
Tier 5: (5000 + tickets)
Flashy VFX weapons and properties.
Games At The Casino
SLOT MACHINES
Main Script: cas_slotmachine
Handles the majority of the functions of the slot machines. Odds are currently 15% chance of winning any type of combo. Triple 111s are to set to 10%, 222 = 5%, 333 = 2.5%, 444 = 1.25%, 555 = 0.75%, and 666 = 0.1% chance of winning.
Betting more tokens on the game does not increase the jackpot accordingly. Playing 2 tokens at a time increases pay out by 25%. 3 tokens increases pay out by 50%. 4 = 75%, and 5 = 100% more tickets. (So, playing 2 tokens and if you were to hit 555 = 125 tickets, versus 200.) This is to encourage spending.
Secondary Scripts: cas_slottoken1
, cas_slottoken10
, cas_slottoken25
, cas_slottoken50
, cas_slottoken100
These scripts are set by the Help Desk NPC found on either side of the casino. They control how many tokens a player uses per pull at the slot machine.
Placeables: cas_yellow
, cas_red
, cas_purple
, cas_orange
, cas_green
, cas_blue
These placeables are used in cas_slotmachine
to make a placeable fire appear above the slot machine as a visual representation of the numbers.
Dialog: cas_helpdesk
- the dialog here contains the method by which the secondary scripts are assigned to the player.
NPC: cas_helpdeskguy
- NPC with the dialog on him.
BLACKJACK
Main Scripts: cas_dealer_spawn
, cas_dealer_ud
, cas_deal_liston
These two scripts are critical to the game functioning. The cas_dealer_spawn
handles the OnSpawn functions of the game, assigning the ListenPatterns required for cas_dealer_ud
to work. The latter script handles the bulk of the functions and how the game works.
cas_deal_liston
initializes the game, and makes it so the NPC is ready to hear out players so he isn't constantly listening for PCs.
Players can assign how much they wish to bet. Generally, payout is 1.5x per token bet. So if a player bets 1 token, it's bumped up to 2, and if a player bets 5 tokens, they are rewarded 7. If they bet 10 tokens, they are rewarded 15 tickets.
The game uses listener functions so wonky behavior can occur.
Secondary Scripts: cas_bjnumplay1
(1-4), cas_bj_wager1
(1, 5, 10, 50, 100), cas_bj_playtest
(2, 3), cas_bj_giverules
, cas_dealer_sit
,
cas_bjnumplay
controls the number of players permitted to join the game. (max 4)cas_bj_wager1
-100 controls how many tokens are bet on each round of blackjack.cas_bj_playtest
handles various states of the gamecas_bj_giverules
hands the player how the game is played.cas_dealer_sit
tells the dealer to sit in his god damn chair.
Conversation: cas_blackjack
- handles setting player number, wager amounts, rulebook giving.
NPC: cas_blackjackdea
- handles the game overall.
WHEEL OF FIRE
Main Script: cas_wheeloffire
This script handles the overall function of the game. Essentially, it creates a VFX circle that is applied to the ground in a spherical shape along the diameter and rotates swiftly at first then slows down, landing on a number and applying a unique effect to handle the winning number. Players who bet on that number are rewarded 4x what they bet.
[TO BE DEVELOPED FURTHER]
THE MONSTER ARENA
Main Scripts: cas_arenastart
, cas_arenaper
, cas_arenaospawn
, cas_arenaondeath
, cas_arenaonclick
cas_arenastart
spawns the monsters and controls theSetIsTemporaryEnemy()
function, and tells them to attack each other have a delay. Additional functionality may be added to randomize appearance and weapons.cas_arenaper
- deprecated, can be removed probably. Not removing because it isn't doing any harm, really.cas_arenaondeath
- checks for the variableI_BET_ON_RED
,I_BET_ON_BLACK
, and handles reward functions, despawning the corpse, and deleting the surviving monster from the bout. Deletes variables on surrounding players if the BET functions are found.cas_arenaonclick
- prevents bets during a monster bout. Assigns variable and deducts tokens from player who is placing bet. Controls how many tokens are being bet withBET_AMOUNT
as a local variable. This is an OnClick Event.- TO BE MADE:
cas_ondamaged
- checks if a PC damaged the creature. Refund tokens based on theI_BET_ON_<color>
int<tokenAmount>
variable. Sends message to online staff that X person is attacking arena, blue, NPCs. Allow PC best judgment.
I intend for the reward to be 1:1- one token = one ticket. You win tickets if the creature you bet on won the match.
Secondary Scripts: cas_arenadestroy
, cas_arenadespawn
, cas_arenadialogu
, cas_onexitarena
, cas_onenterarena
, cas_shrineheal
cas_arenadestroy
- in case monsters persist in the arena, use this script to destroy the NPCs spawned bycas_arenastart
. Called by the conversation:cas_arena
cas_arenadespawn
called on theOnCombatEnd
- can probably just be removed.cas_arenadialogu
called on the OnUsed event of the placeable called 'arena handler' in the area.cas_onenterarena
/cas_onexitarena
- These apply and remove the iAmInArena variable to prevent players from starting a monster bout if PCs are in the arena dueling.- Shrine in the arena that heals combatants after a bout.
Dialog: cas_arena
- handles how the arena works, starts matches, sees if people are in bouts, etc...
Creatures (so far): cas_arenablack
, cas_arenared
Two golems based on colors.
Items: cas_arenaredsmas
, cas_arenablackpu
creature weapons to give golems appropriate weapons.
Miscellaneous Amenities
Suites
Main Scripts: cas_bedroomcharg
, cas_finalspeaker
, cas_mebsolporn
, cas_deletevariab
, cas_assignvariab
, cas_destroyproje
cas_bedroomcharg
Charges customers for use of the suite. Each suite will have a projector panel to spawn a recorded sex show from a library of options available in the dialogcas_projectoropt
. 5000 gold for each amenity. Placed on a chain's OnUsed event.cas_finalspeaker
is the final version (for now) of the code that handles 'recorded projections'. It will spawn two or more NPCs based on their ResRef, and based on a variable on the creatures spawned, assign spoken text at a 45 second interval in incremental order based on variables based on the placeable the script is attached to. Basically, it generates the text logs of people's intimate roleplay, or stories for more benign reasons.cas_mebsolporn
- earlier, prototype version ofcas_finalspeaker
, will soon be deprecated and removed.cas_assignvariab
/cas_deletevariab
: assigns a variable that thecas_bedroomcharg
checks for to prevent the door unlocking if people are currently inside. Assigned on a trigger. Also used in the baths and meeting room.cas_destroyprojec
- deletes the projector and the creatures it spawned.
Conversations: cas_projectoropt
- select which show you want to watch.
Baths
Main Scripts: cas_spawnfloor1
(1-6), cas_bathscharge
, cas_deletevariab
, cas_assignvariab
, cas_flr_optcv
, cas_onenterfire
, cas_onexitfire
Cas_spawnfloor
(1-6) - changes floor type, water to lava to liquid gold.cas_bathscharge
, same ascas_bedroomcharg
cas_delete
/cas_assignvariab
- same as above.cas_flr_optcy
- OnUsed placeable script that generates thecas_flooroptions
dialogcas_onenterfire
/cas_onexitfire
- handles assigning the 'this bath is stupidly hot' function, applies 10 dmg per round the player is inside. Applied to goldfloor and lava floor.
Dialog: cas_flooroptions
, handles choosing what sort of bath the player wants to pay for and spawn/remove the previous one.
Placeables: cas_floorwine
, cas_floorwater
, cas_floormud
, cas_floorlava
, cas_floorgold
, cas_floorchocola
Handled by the cas_spawnfloor
scripts and the cas_floooptions
dialog.