ID:168984
 
mob/Login()
..()
Sample_Report()

mob/proc/Sample_Report()
var/html_layout = "Rules.... [rules]"
browse(html_layout)

var/rules = "No Spamming"


This is close to some thing I have. (something I just wipped up)

I want to make a verb so it will only change the [rules] part. How do I do this?
Crzylme wrote:
> mob/Login()
> ..()
> Sample_Report()
>
> mob/proc/Sample_Report()
> var/html_layout = "Rules.... [rules]"
> browse(html_layout)
>
> var/rules = "No Spamming"
>
>

This is close to some thing I have. (something I just wipped up)

I want to make a verb so it will only change the [rules] part. How do I do this?

You're kidding, right? Please tell me you're joking...honestly, haha funny. Joke's over. Seriously.
In response to Teh Governator
No I am not kidding.

I want it so When I'm in the game, I want to be ab;e to change the rules right there.

How do I do this?
mob/verb/rawr(t as text)
t= rules
In response to Crzylme
Crzylme wrote:
No I am not kidding.

I want it so When I'm in the game, I want to be ab;e to change the rules right there.

How do I do this?

You change its content the same way you'd change any variable. As long as it's not constant - you can change it at run-time. Heck, there's even ways of changing constant variables.

But, if you're still clueless, I guess I'll spell it out for ya.

var/Rules="Bleh"
mob
verb
Bleh(Message as text|null)
if(ckey(Message))
Rules=Message
In response to Teh Governator
Thank you. Thats what I needed!
In response to Teh Governator
Teh Governator wrote:
Heck, there's even ways of changing constant variables.

Woah, please explain.
In response to Ol' Yeller
Ol' Yeller wrote:
Teh Governator wrote:
Heck, there's even ways of changing constant variables.

Woah, please explain.

he dont need to explain! the above coding explains it all :) it explains from goku72's and dracons's :P

Gozenko
In response to Gozenko
Yeah, but, I really want to know how to use a constant var. =/
In response to Gozenko
Um, the verb Chuck posted had nothing to do with Dracon, it didn't even have anything to do with constant vars. Also, who are you to say he doesn't need to explain something, if he wanted to explain how something works, he is allowed to.
lyke zomg, Night poont you.


In response to N1ghtW1ng
<sarcasim> Maybe he felt like saying Dracon cause he is the original owner of Zeta and he has a zeta edit?</sarcism>
In response to Ol' Yeller
Ol' Yeller wrote:
Teh Governator wrote:
Heck, there's even ways of changing constant variables.

Woah, please explain.
Quite easily. You can't directly type out the variable your self to the fact that the compiler can catch it but, you CAN access it through the means of atom.vars.
mob
verb
Change_Variable()
src.vars["constant_variable_name"]=input(src,"Input the new data.","Bleh") as text|null
In response to Ol' Yeller
Ol' Yeller wrote:
Yeah, but, I really want to know how to use a constant var. =/

Teh Governator wrote:
Ol' Yeller wrote:
Teh Governator wrote:
Heck, there's even ways of changing constant variables.

Woah, please explain.
Quite easily. You can't directly type out the variable your self to the fact that the compiler can catch it but, you CAN access it through the means of atom.vars.
> mob
> verb
> Change_Variable()
> src.vars["constant_variable_name"]=input(src,"Input the new data.","Bleh") as text|null
>


**gets more pop corn**
In response to Gozenko
Don't take other peoples messages. Most likely HR already read that, you didn't need to respond.