deleteme1 commented on a Page, Help me Improve this please  -  Jul 12, 2013
deleteme1  -  Jul 12, 2013

.

QuiDaM  -  Jul 13, 2013

thats true! about who's turn is , aint rlly important. the rest would be nice tho .. im not sure how to fix it

MoshMage  -  Jul 15, 2013

I'm a bit lazy, so I'm just going to point out stuff that should help you both have a better working game system and understand more about mirc scripting.

Victory counter, experience system and general user data should be kept in a ini file. Try /help $readini and /writeini.
But in a nutshell is something like:

set %newexp $readini(userdata.ini,%player,EXP) + 1
/writeini userdata.ini %player EXP %newexp
set %newvalue $readini(userdata.ini,%player,WIN) + 1
/writeini userdata.ini %player WIN %newexp

Levels can be determined by the ammount of exp (on a basic game system) so, imagine you need 10 exp points to get from level 0 to 1:

set %multiplier 10
set %exp $readini(userdata.ini,%player,EXP)
set %level %exp / %multiplier
echo your level is $int(%level)

Gaining strength from you level is as easy as

set %str 1 + %level

This should be enough to get you going again :)
BONUS

alias turn {
if ($1=next) { set %turn %turn +1 | return %turn }
if ($1=stop) { unset %turn }
}
;changing turn
msg chan Turn: $turn(next) is up! :)
;stoping turns (or reset)
/turn stop

*Note: I don't do MS in a long time, some of that code might be wrong (syntax) but the idea is there :)
edit: You can also download my "SLAP the game" script (it's in here somewhere) and read through it so you can learn more neat stuff :)

QuiDaM  -  Jul 16, 2013

Thanks a lot Mosh

MoshMage  -  Jul 16, 2013

No problemo! Have a nice time coding that and show us the result :D

QuiDaM  -  Jul 17, 2013

ive added it to the script but im not sure it worked yet. im not familiar with ini commands ... ill try to make it work

QuiDaM  -  Aug 08, 2013

im stuck ... how to use ini?

mlky  -  Oct 22, 2013

when you use writeini, this is what you actually do

writeini wheretosave.ini section item whattheitemshouldbesetto

and when you use $readini its $readini(whereyousaved.ini,section,item) and it will return what the item was set to.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.