yes again, i now need know some help with...um...something... heres my code
mob
wallup
icon = 'wlUP.dmi'
wallright
icon = 'wlR.dmi'
walldown
icon = 'wlDWN.dmi'
wallleft
icon = 'wlL.dmi'
Stat()
statpanel("Stats")
stat("Games Played: [Gplay]")
stat("Wins: [Wins]")
stat("Losses: [Losses]")
stat("Draws: [Draws]")
stat("Coins: [Coins]")
verb
Chat(msg as text)
set category = "Chat"
world << "[usr]: [msg]"
MysteryChat(msg as text)
set category = "Chat"
world << "???: [msg]"
HappyChat(msg as text)
set category = "Chat"
world << "HAPPY [usr]: [msg] :)"
SadChat(msg as text)
set category ="Chat"
world << "SAD [usr]: [msg] :("
MadChat(msg as text)
set category = "Chat"
world << "MAD [usr]: [msg] ><"
PlayDraw()
set category = "Draw"
if(Coins >= 2)
Coins -= 2
usr << "You bet 2 Coins."
Gplay += 1
var/x = rand(1,10)
var/y = rand(1,10)
usr << "You drew a [x]"
usr << "Opponent drew a [y]"
usr << "The results are in!"
if(x < y)
usr << "Since your opponent drew higher than you, you LOSE..."
Losses += 1
if(x > y)
usr << "Since you drew higher than your opponent, you WIN!"
Wins += 1
Coins += 4
usr << "You doubled up and gained 4 coins!"
if(x == y)
usr << "Since you drew equal with your opponent, you DRAW."
Draws += 1
Coins += 2
usr << "You got your 2 coins back."
else
usr << "You dont have enough Coins to play..."
DrawHelp()
set category = "Draw"
usr << "DRAW is a card game where each player draws a card. The Winner is the person who draws the higher card! The Cost is 2 Coins."
var
Gplay
Wins
Losses
Draws
Coins = 20
Login()
icon = 'Player.dmi'
icon_state = gender
usr << "ChanceChat updates coming soon!"
world << "[usr] has joined us Chance Chatterz!"
..()
turf
floor
icon = 'CasinoFL.dmi'
world
turf = /turf/floor
im making a casino like game... i need to have tables to play the game. as you can see i have the game code but... i need to have the verb appear in the panel when i am next to the table. How do i do this? is there any demos/guides to help me? thx -Silver;)
ID:172882
Mar 15 2004, 1:57 pm
|
|
In response to SSJ4_Gohan_Majin
|
|
thx a ton. i think bumped is supposed to be Bump and you need ..() at the end. I got the code in fine BUT... i get one warning: something about the call() proc needed to get something from the DM reference???? help pls! thx -Silver:)
|
In response to Silversmith5
|
|
Silversmith5 wrote:
thx a ton. i think bumped is supposed to be Bump and you need ..() at the end. I got the code in fine BUT... i get one warning: something about the call() proc needed to get something from the DM reference???? help pls! thx -Silver:) Wait, replace src with usr. |
In response to Silversmith5
|
|
Silversmith5 wrote:
thx a ton. i think bumped is supposed to be Bump and you need ..() at the end. I got the code in fine BUT... i get one warning: something about the call() proc needed to get something from the DM reference???? help pls! thx -Silver:) I'm terribly sorry, I coded wrong. Here's the correct code: obj --SSJ4_Gohan_Majin |
In response to Non-PC
|
|
thx, but i got another problem. I need the table to be solid, i can walk through the table but i dont want to, how do i stop this? thx -Silver:)
|
In response to Silversmith5
|
|
Silversmith5 wrote:
thx, but i got another problem. I need the table to be solid, i can walk through the table but i dont want to, how do i stop this? thx -Silver:) turf --SSJ4_Gohan_Majin |
In response to SSJ4_Gohan_Majin
|
|
thx alot...BUT there is still one problem...when i compile i get the same warning...i get into the game and when i go next to a table...i cant pick the verb i want, it isnt there HELP! oh, heres my code:
mob Draw verb Play() set category = "Draw" if(Coins >= 2) Coins -= 2 usr << "You bet 2 Coins." Gplay += 1 var/x = rand(1,10) var/y = rand(1,10) usr << "You drew a [x]" usr << "Opponent drew a [y]" usr << "The results are in!" if(x < y) usr << "Since your opponent drew higher than you, you LOSE..." Losses += 1 if(x > y) usr << "Since you drew higher than your opponent, you WIN!" Wins += 1 Coins += 4 usr << "You doubled up and gained 4 coins!" if(x == y) usr << "Since you drew equal with your opponent, you DRAW." Draws += 1 Coins += 2 usr << "You got your 2 coins back." else usr << "You dont have enough Coins to play..." Stat() statpanel("Stats") stat("Games Played: [Gplay]") stat("Wins: [Wins]") stat("Losses: [Losses]") stat("Draws: [Draws]") stat("Coins: [Coins]") verb Chat(msg as text) set category = "Chat" world << "[usr]: [msg]" MysteryChat(msg as text) set category = "Chat" world << "???: [msg]" HappyChat(msg as text) set category = "Chat" world << "HAPPY [usr]: [msg] :)" SadChat(msg as text) set category ="Chat" world << "SAD [usr]: [msg] :(" MadChat(msg as text) set category = "Chat" world << "MAD [usr]: [msg] ><" var Gplay Wins Losses Draws Coins = 20 Login() icon = 'Player.dmi' icon_state = gender usr << "ChanceChat updates coming soon!" world << "[usr] has joined us Chance Chatterz!" ..() turf floor icon = 'CasinoFL.dmi' world turf = /turf/floor obj wallup icon = 'wlUP.dmi' density = 1 wallright icon = 'wlR.dmi' density = 1 walldown icon = 'wlDWN.dmi' density = 1 wallleft icon = 'wlL.dmi' density = 1 DrawTable icon = 'DrawTable.dmi' density = 1 Bump(mob/M) usr.verbs += /mob/Draw/verb/Play() ..() k, i hope you can see the problem 'cause i cant. the warning is on line 87 (the usr.verbs line). everything else works fine. oh yeah lets say this is my game that is published(wich it is) how do i update the game(this is a HUGE update ;)thx -Silver;) |
In response to Silversmith5
|
|
The problem is:
DrawTable It should be: DrawTable --SSJ4_Gohan_Majin |
In response to SSJ4_Gohan_Majin
|
|
THE CODE CHECKS OUT FINE YAY! but it doesnt work BOO! when i bump the table nothing happens! HELP! thx in advance
-Silver;) |
In response to Silversmith5
|
|
K, heres my code:
mob Draw verb Play() set category = "Draw" if(Coins >= 2) Coins -= 2 usr << "You bet 2 Coins." Gplay += 1 var/x = rand(1,10) var/y = rand(1,10) usr << "You drew a [x]" usr << "Opponent drew a [y]" usr << "The results are in!" if(x < y) usr << "Since your opponent drew higher than you, you LOSE..." Losses += 1 if(x > y) usr << "Since you drew higher than your opponent, you WIN!" Wins += 1 Coins += 4 usr << "You doubled up and gained 4 coins!" if(x == y) usr << "Since you drew equal with your opponent, you DRAW." Draws += 1 Coins += 2 usr << "You got your 2 coins back." else usr << "You dont have enough Coins to play..." Stat() statpanel("Stats") stat("Games Played: [Gplay]") stat("Wins: [Wins]") stat("Losses: [Losses]") stat("Draws: [Draws]") stat("Coins: [Coins]") verb Chat(msg as text) set category = "Chat" world << "[usr]: [msg]" MysteryChat(msg as text) set category = "Chat" world << "???: [msg]" HappyChat(msg as text) set category = "Chat" world << "HAPPY [usr]: [msg] :)" SadChat(msg as text) set category ="Chat" world << "SAD [usr]: [msg] :(" MadChat(msg as text) set category = "Chat" world << "MAD [usr]: [msg] ><" var Gplay Wins Losses Draws Coins = 20 Login() icon = 'Player.dmi' icon_state = gender usr << "ChanceChat updates coming soon!" world << "[usr] has joined us Chance Chatterz!" ..() turf floor icon = 'CasinoFL.dmi' world turf = /turf/floor obj wallup icon = 'wlUP.dmi' density = 1 wallright icon = 'wlR.dmi' density = 1 walldown icon = 'wlDWN.dmi' density = 1 wallleft icon = 'wlL.dmi' density = 1 DrawTable icon = 'DrawTable.dmi' density = 1 Bump(mob/M) set category = "Draw" verbs += /mob/Draw/verb/Play ..() When i touch the the table i dont get the draw menu!!! HELP! thx in advance -Silver;) oh yeah, ive had src. & usr. in front of the verbs var too |
In response to Silversmith5
|
|
Look here, You wrote: DrawTable There's something wrong above. It should be: Use this EXACT code to avoid bugs: DrawTable Going to need to fix the indention a bit. --SSJ4_Gohan_Majin |
In response to SSJ4_Gohan_Majin
|
|
THX IT WORKS
|
--SSJ4_Gohan_Majin