User:ARCHIMEDIAN/Notes: Difference between revisions

From Elanthipedia
< User:ARCHIMEDIAN
Jump to navigation Jump to search
Line 25: Line 25:


== Lich Mapping Notes ==
== Lich Mapping Notes ==

All rooms need to have a wayto and a timeto. A wayto describes the movement to get to the room. The timeto describes how long it takes to get there (0.2 seconds is the default). <code>;automap</code> handles adding this data automatically in most cases. If you map a room manually without <code>;automap</code> then you need to be sure that you include both the timeto and the wayto, forgetting one will break ;go2's ability to navigate to that room.

Useful commands:
Useful commands:
<pre>
<pre>

Revision as of 14:05, 15 December 2016


Transforming Items

A set of notes to help with dr-scripts equipmanager

worn item transformed item verb Item to Weapon Text Weapon to Item Text Notes
Item:Polished steel tailband with serrated edges Weapon:Polished steel katavdar with serrated edges turn With a flick With a flick Requires a free hand to transform the item and weapon,

item must be held when transforming

Lich Mapping Notes

All rooms need to have a wayto and a timeto. A wayto describes the movement to get to the room. The timeto describes how long it takes to get there (0.2 seconds is the default). ;automap handles adding this data automatically in most cases. If you map a room manually without ;automap then you need to be sure that you include both the timeto and the wayto, forgetting one will break ;go2's ability to navigate to that room.

Useful commands:

;e echo Room.current.inspect
;e echo Room.current.wayto
;e Map.list[room_num].description.push(XMLData.room_description) #update current room description (useful for adding night/day description to rooms)

Delete a room

;e Room.current.wayto.delete("roomid")
;e Room.current.timeto.delete("roomid")

Complex Movements

;e Room.current.wayto['1220'] = StringProc.new(“fput 'search'; move 'go path'”)

Update Rooms with multiple descriptions

;repo checkout-mapdb
;e Map.list[1263].description.push(XMLData.room_description)
;repo upload-mapdb

Health Text

Used for necromancer healing bit in dr-scripts combat trainer

Your body feels at full strength.
Your spirit feels full of life.
You have some minor abrasions to the right arm, some minor abrasions to the left leg, some minor abrasions to the left hand, some minor abrasions to the chest, some minor abrasions to the abdomen.
You have no significant injuries.

Your body feels somewhat battered.
Your spirit feels full of life.
You are slightly fatigued.
You have minor swelling and bruising around the right arm compounded by cuts and bruises about the right arm, minor swelling and bruising around the left arm compounded by cuts and bruises about the left arm, some tiny scratches to the right leg, minor swelling and bruising around the left leg compounded by cuts and bruises about the left leg, minor swelling and bruising around the right hand compounded by cuts and bruises about the right hand, some minor abrasions to the chest.

Notice the line 'no significant injuries' is gone