Textblock Function List

Discussion on running your own board and editing MajorMUD.
Post Reply
User avatar
syntax
Site Admin
Posts: 553
Joined: Tue Jun 02, 2009 10:02 am

Textblock Function List

Post by syntax »

Posted by Ghaleon, 05-08-2005

Textblocks can be called in the following spots:

Room: cmd text
Item: read
Ability: 148
Monster: Death Msg?, Greet Txt, Talk Txt?

Textblocks Functions
Items contained in [] are optional

class 10: - if users class is 10, continue with this line
race 13: - if users race is 13, continue with this line

takeitem 2000 [1000]: - takes item 2000 from user, if the user doesnt have it then display message 1000
giveitem 2000 [1000]: - gives item 2000 to user and displays message 1000
checkitem 2000 [1000]: - if user does not have item 2000 display message 1000, otherwise continue with this line
failitem 2000 [1000]: - if user does not have item 2000 display message 1000 and continue with this line
clearitem 2000: - deletes item(s?) 2000 from the room
roomitem 2000 [1000]: - if item is in room continue with the line, otherwise display message 1000

addability 4 2: - gives 2 points to ability #4
removeability 4: - removes ability #4 from user
giveability 125 1: - gives the user ability 125 and sets it to 1, if user has ability 125 it is overwritten
checkability 125 1: - if user has ability 125 and it is set to 1 or higher, continue with this line
testability 125 1: - if user has ability 125 and it is set to 1, continue with this line
failability 125: - if user does not have ability 125, continue with this line

learnspell 500: - teaches user spell 500
checkspell 500 [1000]: - if user does not have spell 500 display message 1000, otherwise continue with this line

nomonsters 1000: if there are monsters in room display message 1000, otherwise continue with this line
teleport 4000 1: - teleports user to room 4000 map 1
summon 200: - summons monster 200
cast 500: - cast 500 at user
goodaligned 0 [1000]: - if users alignment is > 0 display message 1000, otherwise continue with this line
evilaligned 0 [1000]: - if users alignment is < 0 display message 1000, otherwise continue with this line
addevil 30: - add 30 to users evil points
addexp 400: - gives user 400 experience points

text 3000: - run textblock 3000
price 5000 1000: - if user has 5000 copper, continue with line, otherwise display message 1000
givecoins 100 [G|P]: - gives user 100 coins (optional G - gold, P - platinum) C - Copper & R - Runic also?
adddelay 60: - delay 60 milliseconds then continue with this line
message 1000: - display message 1000

minlevel 10 [1000]: - if user is below level 10 display message 1000, if not continue with this line
maxlevel 50 [1000]: - if user is above level 50 display message 1000, if not continue with this line
random 3000: - runs textblock 3000 and randomly pick a number

ie. [message 3000 contains the following lines]
5:message 1000
10:message 1001
15:message 1002

1-5 displays message 1000
6-10 displays message 1001
11-15 displays message 1002
16-100 displays nothing

*testskill (thievery|traps|current_hp|intellect|charm|wisdom| strength|health|agility) 40 3000: - if skill is above 40 run textblock 3000
*failroomitem 2000 [1000]: - checks room members? or room items?
*remoteaction 1012 1840 0 0:

If anyone has any information on the functions marked with a * please post here so I can update this. Also if anyone notices anything that needs to be changed or added here please post. Im posting this information in hopes that syntax will add this information into his next release of nightmare so that textblocks are a little easier to work with.

https://web.archive.org/web/20081030000 ... php?t=8992
Attachments
Textblock_Function_List_-_ForumsHQ_-_2016-02-28_02.21.52.png
Textblock_Function_List_-_ForumsHQ_-_2016-02-28_02.21.52.png (140.44 KiB) Viewed 2885 times


Post Reply