1 how do imake a verb which puts on an overlay
2 iwant it so when my char is facing south its underlay but when north an overlay
3 when i make a hub how do "connect it so? so when i host it it shows that "live" i kno these are kinda noobie but ijust started out XD
ID:164011
Jul 21 2007, 2:48 pm
|
|
In response to Dession
|
|
1 moe thing and thanks to this 1 might be a bit harder XD i want to make it so when i click i will deal damage
Code: Attack()//The Attack verb. Attacks a mob in view. for(var/mob/M in get_step(src,src.dir))//If anybody is right next to them... var/damage = rand(1,Power)// The Damage is between 1 and the players power. usr << "You attack [M] for [damage] damage!!"// Tell you how much damage you did. usr << sound('Attack.wav') M << "[src] attack you for [damage]!!!"// Tell the person who you attacked how much damage they got. M.HP -= damage// Takes Hp away. M.Death()//Calls the Death Proc, which checks if the player is dead. usr.Check() |
In response to Leobladex
|
|
Click what? If you want to attack by clicking the person look up Click().
|
In response to Dession
|
|
k thanks
|
In response to Dession
|
|
i want to make a seprate verb that activates click attacking
|
In response to Leobladex
|
|
mob/verb/Clickattacktoggle() Then in your Click() have it check to see if they are clickattacking or whatever. |
In response to Dession
|
|
from what i under stand here u made a click toggle but do i make a proc which makes the click attack XD
|
In response to Leobladex
|
|
If you want to yes, you'll need to use client/Click() and check if what they clicked is a mob and is attackable. And then call the proc or however you want to do it.
|
In response to Leobladex
|
|
alright here is what you do...
mob/Click(mob/M in oview(1)) now i havent tried this so... it might not work. (make sure you indent it right, because i didnt make it in the Dream-Maker) soo give it a try |
In response to Dession
|
|
client/Click()
if mob/Monster/Retard var/damage = rand(1,Power) i don't think i'm doind it right |
1) You simply add an object/image/variable to the persons overlays like: src.overlays += ('icon.dmi',"iconstate"). Note: when you add an object as an overlay and the person saves then relogs and loads when they remove the overlay the icon will stay the same like its still overlayed.
2) When you are making the icon have it apear to be behind the character and so on.
3) You need to set the world's hub by doing: world/hub = "Bob.BobsGame" input you key where Bob is and Bobsgame = your games hub also if you set a hub password you'll need to set that too.