mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Update README.md
This commit is contained in:
@@ -31,52 +31,52 @@ Replace everything on CODE with these show_json's
|
||||
|
||||
### Provided Functions
|
||||
|
||||
####move(character.real_x,character.real_y)
|
||||
#### move(character.real_x,character.real_y)
|
||||
Moves the character
|
||||
|
||||
####get_nearest_monster({max_att:100,min_xp:10,target:"Name",no_target:true})
|
||||
#### get_nearest_monster({max_att:100,min_xp:10,target:"Name",no_target:true})
|
||||
Return's the nearest monster, you might want to target that return value with `change_target`
|
||||
|
||||
target: Picks monsters that only target that name
|
||||
|
||||
no_target: Picks monster that aren't targeting anyone
|
||||
|
||||
####use_hp_or_mp()
|
||||
#### use_hp_or_mp()
|
||||
Uses a very basic logic to either use hp or mp pot
|
||||
|
||||
####get_target()
|
||||
#### get_target()
|
||||
Returns your current target
|
||||
|
||||
####get_target_of(entity)
|
||||
#### get_target_of(entity)
|
||||
New, powerful feature, returns the target entity for both players and monsters
|
||||
|
||||
Suggestion for Fun: Code your characters to target and attack what you are targeting, even if you don't engage a monster, you can make your characters (or side-characters) engage by just clicking :)
|
||||
|
||||
####change_target(target)
|
||||
#### change_target(target)
|
||||
Targets the player or monster
|
||||
|
||||
####loot()
|
||||
#### loot()
|
||||
Loots the chests on the map
|
||||
|
||||
####attack(target)
|
||||
#### attack(target)
|
||||
Attacks the target
|
||||
|
||||
####heal(target)
|
||||
#### heal(target)
|
||||
Heals the target
|
||||
|
||||
####game_log(message,color)
|
||||
#### game_log(message,color)
|
||||
Adds a message to game's right log
|
||||
|
||||
####show_json(character.items)
|
||||
#### show_json(character.items)
|
||||
Renders the argument as json, to inspect, learn, use
|
||||
|
||||
####set_message("Code Active")
|
||||
#### set_message("Code Active")
|
||||
Sets the IFrame message, the one in the right bottom corner
|
||||
|
||||
####runner_functions.js
|
||||
#### runner_functions.js
|
||||
There are more functions, examples in runner_functions.js and on the game's main CODE
|
||||
|
||||
###Future Plans
|
||||
### Future Plans
|
||||
As the game progresses, the CODE feature will refine, you will be able to create/save your own code in-game, and hopefully much much more
|
||||
|
||||
With the introduction of PVP, Trade, Events and similar stuff, the CODE capabilities should get pretty interesting
|
||||
|
||||
Reference in New Issue
Block a user