PDA

View Full Version : New to Scripting. Guildwork



mattipeppers
03-01-2020, 12:35 PM
Hi guys. So I recently joined the warriors guild. I know nothing about scripting, but it quickly became clear to me that I'm not going to make it very long without at least a basic knowledge of scripting because holy shirt, these reps are mind numbing. At first I made some horribly crude scripts, but they barely took much of the workload off of me. Then I found some ten-year-old scripts off of the forum and edited them a tad bit. Right now I'm focused on berserk training and the script that I modified, while it works really well 90% of the time, gets stuck when homeboy waves the strong-smelling vial under my nose which puts me into 5 seconds of roundtime. What can I add/edit to avoid this? Would appreciate any advice. Thanks!


The attendant waves some strong-smelling vial under your nose, snapping you out of your stun.

Roundtime: 5 sec.
KR>Berserk
...wait 5 seconds.
KR>
You feel fully energetic again.

Start:
pause .5
put Ask Bleitt about training Berserk
match start shy of earning your next rank."
match creatures berserk on some critter
match chamber practice breaking webbing.
match chamber practice breakin out of stuns."
match chamber that paralysis in no time.
match chamber you need to finish
match promot Congratulations, you've earned a rank.
matchwait

creatures:
echo TIME FOR YOU TO DO SOME WORK DAMN YOU, BERSERK SOME CRITTERS!!!
exit

promot:
move go arch
pause 1
move go stair
pause 1
move e
pause 1
move go door
pause 1
put Ask ketan about next Berserk
pause 1
move go out
pause 1
move w
pause 1
move go stair
pause 1
move go arch
pause 1
goto start

chamber:
move go arch
pause 1
move ne
pause 1
move nw
pause 1
move go door
pause 1
move down
put Stance offensive.
waitfor You
put Kneel
waitfor You
goto berserkchamber

berserkchamber:
put Berserk
match berserkdone [You have completed this task.]
match berserkwait Roundtime:
match berserkwait You feel yourself at the edge of berserker's rage but lose the moment.
match berserkwait The redness fades from the world
match berserkwait ...wait
matchwait

berserkwait:
pause 10
goto berserkchamber

berserkdone:
waitfor The redness fades from the world
put Stand
match allchamberdone You stand
match lastberserk You don't seem
match lastberserk You are still stunned.
match lastberserk You can't do that
matchwait

lastberserk:
waitfor Roundtime:
goto chamberstand

chamberstand:
put Stand
match allchamberdone You stand
match standwait ...wait
matchwait

standwait:
pause .5
goto chamberstand

allchamberdone:
put Stance defensive.
waitfor You
move up
pause 1
move out
pause 1
move se
pause 1
move sw
pause 1
move go arch
pause 1
goto Start

Alashir
03-01-2020, 12:54 PM
I think ; warrior has already done the job for you

Tgo01
03-01-2020, 01:09 PM
Yeah ;warrior is the best script ever written by the most awesome person who has ever lived.

mattipeppers
03-01-2020, 02:58 PM
... well shoot, solves that now doesn't it. It even waits for stamina regeneration. Pretty amazing stuff. Thank you guys! And special thanks to you Tgo01 :D

I just found your 'Learn how to script' post from 2015 that I'm going through. Thanks for making that too.

Tgo01
03-01-2020, 03:03 PM
... well shoot, solves that now doesn't it. It even waits for stamina regeneration. Pretty amazing stuff. Thank you guys! And special thanks to you Tgo01 :D

I just found your 'Learn how to script' post from 2015 that I'm going through. Thanks for making that too.

You betcha.