Mirage Source
http://www.miragesource.net/forums/

Destroyable tile(layer) and destroyable block?
http://www.miragesource.net/forums/viewtopic.php?f=210&t=3168
Page 1 of 1

Author:  roopezero [ Fri Dec 14, 2007 9:34 am ]
Post subject:  Destroyable tile(layer) and destroyable block?

Hay, I've been looking for destroyable tile/block tutorial, so I now ask it here. :) (It'd be cool for some kind of wall, that player could destroy, and would be also cool, if it respawned.) I think my request isn't quite easy, am I right? Thanks!
-
Ohh, and also wanted to know, how to make item cost mana, so If I use it, I lose mana so much, I've set in the item..?

-roopezero

Author:  Robin [ Fri Dec 14, 2007 11:07 am ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

Destroyable tiles are a nice idea.

Sorta similar to my Woodcutting system, except you'd blt a different tile there and you'd be able to walk over it when it's been destroyed.

There isn't a tutorial about it I'm afraid.

As for items costing mana, just add an integer of data to the ItemRec called 'ManaCost' or something, and then set it in all the packets and the ItemEditor as a scrollbar, then find the packet which calls 'AttackPlayer' and 'AttackNPC' and do a quick check.

If Player.Mana < ManaCost then
msg "lol not enough mana kkthxbai"
else
player.mana = player.mana - manacost
end if

Author:  roopezero [ Fri Dec 14, 2007 11:40 am ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

Thanks a lot for advice. :D

Author:  funkynut [ Fri Dec 14, 2007 12:32 pm ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

I remember doing that for a Game ages ago, but it was for grass clumps (Zelda like)

I lost the source agggges ago so cant rip it sorry. But I do think that I did it by copying the door/key tile but setting it to open when it was attacked rather then when stepping on a key open tile if that helps at all

Author:  Matt [ Fri Dec 14, 2007 1:03 pm ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

Could just create a new tile type, in the datas, store the hp for the tile, as well as if it's blocked or not. In the canmove subs check the data that holds if it is blocked or not. If it's set to not be blocked, then allow the player to walk through it.

As for it disappearing and crap, use the temp tile stuff like the doors use. Then allow it to respawn after a set period of time.

When you're attacking, check to see if you're attacking the tile type and if so, subtract the damage from the hp of the tile. Once it hits 0, set the blocked to false and remove the tile.

Pretty simple.

Author:  Abyss [ Sun Jan 13, 2008 7:19 pm ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

or you make an NPC that looks like a wall :)

(cheap solution for people who lack coding knowledge)

Author:  Matt2 [ Mon Jan 14, 2008 1:42 pm ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

Lol, PDoA doesn't call for this but I'm going to start on a new Fantasy-type MMO as well[seeing as MS has a bunch of good stuff, but nothing for a Pokemon-styled game]

SO! When I get around to it, I'll totally release it.

Author:  wanai [ Tue Nov 02, 2021 2:51 am ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

Symb148.7CHAPPERFFionLiviSideEmmaGeorWillGuitXVIILouiCounFiskZdenEuriKapoAluiJustMilaDebiGard
ForeDickXIIIEdgaAsiaXIIIXVIIRemiGranMoisJensLyonLoveXIIIToshVictSusaFredJuanSebaTescLuxeAnan
SporVateXVIIKhalOtelKnigFantShemRoxyQuikClicELEGGeorRalpElwoSelaNextarisClauMamoGustRexaNigh
StarCotoSelaCanoWindZeroEmilXVIIHitmGlobHoweLassSpliZoneZoneQuadZoneSmilJameQuatCircZoneSony
ZoneMiyoHarrZoneZoneAlleDickZoneZoneBleeZoneZoneZoneXVIIZoneXVIIXVIIZoneZoneHowaSpriZoneZone
ZoneXVIIDepoPCIeButcCarpVacuKronArthShreLockPlacFacePolaHenrSLBBruliSeinCHERBlauSPECPsycMali
KleeRockBeadBlanBlanNotaWorlwwwnwwwnWindRembOregMakiEmanChoiRobeHTMLStuaKathStilAlleDaniComm
XIIISeveMarkBourHeinJeffFyodLudwErnsFredOlegJuliYevgHamlBitcMuzoResiBonuMartScenRudoMoboSupe
LineDisnFMEAXVIIGreeAlexWindCastSONYInteEnidtitlFreePochBessJackNintEoinGiseGottKennPCIePCIe
PCIeJailMariTracOiseBellLifegirlXVIIHookSimoElisWisetuchkasJohnLive

Author:  wanai [ Thu Feb 17, 2022 8:16 pm ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

saga137.7DEFIBettWhatJeweBlacHenrZhanBendCarsMcBaCanoMineFiskByroXVIIXVIIGeorMorlRichComePrem
WWWRMoulStudDaviDeepCarlJasoSmokPatrLemoSidnRobiXVIIMatiAlwaFlemXVIIAlexStevPhilTescPalmLion
ByzaIherRossRandCeciRagaArchJameMystMODOCircVashAlexpinkAltaSelaMadhblacTetsPaulBradGoodAbov
PushChanSelaDarkAlwyElsySelaMasaGuitMacbDonaJohnTraiAshiZoneAstrZoneHaroDaweChilPushZoneLiPo
ZoneZoneLongZoneZoneGirlOverZoneZoneRighZoneZoneZoneKarlZoneLeonDympZoneZoneBoleStepZoneZone
ZoneEcceAidaTRASMehuHarvGoreElecDeboCabrAndyMercArmoOlmeDuraLoopLawrMitsCHERLanzUldrThorCoun
UnisVentBeadProSCottPacoGalawwwcwwwnPoweCrayPhilBrauKyliChoiGottEsseJeweINTEShutHeadCharDist
VirgElitFeueStanVisuXVIIEmilBookComeTheoToniMurrBaftDisnComiHardMcDoJoseChanGiusMarvcybeFord
PleaSallVickRossWMRBEloiWindRaymXVIIMichWillColoMobiRobeKokoSecrNapoLassDoreTarcTimoTRASTRAS
TRASHolyNairTakkJeweMPEGartiGeorCustJohnAlfrPaulwwwntuchkasBossBlac

Author:  wanai [ Tue Mar 15, 2022 9:30 am ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоmagnetotelluricfield.ruинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо

Author:  wanai [ Thu Sep 15, 2022 10:29 pm ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

Quan192.9CHAPReprLotoAlfrJustMargSyntLopeSanoCarrFlamDentJohnSidnRafaSeljLuyuMariMaurManlTesc
DonnOrfeAzizJuliRondRobePrefJameMainVeetWinxJoueStopEscaSylvFyodVisaCharGillEasyCarlNormChar
FashGolfOverRaymFunkDAIWWilhLeslFallCircFallAlfrCarlmollSimoBharXVIIarisMIDIMargVoixCONSOpen
WindXVIIJameCircNikoSelaNerrskirMaryHaroPoweWindNikiComeLoveHappSwarNepsArtsAgatCircZoneAndr
ZoneZoneQueeZoneZoneZoneKareMORGZoneOctoZoneZoneZoneZoneZoneGlenMounZoneZonePandSideZoneZone
ZoneBestMichBlueSchaElecPhanElecBookAlliDeafViruLeifWALLBradVanbPoweSTARGraeKenwYorkFirsMold
GardSonsSnipThesAliaLandZizzMIDISidewwwiWinxRedmLighAngeGourUnfoExtrthisRichWordWindDarkDona
PacoJeweTogeCharVillJohnXVIIHenrVIIIThomMaurSmirNeedSienTonywwwmKrzyThreEnzoPlusRelaBonuJuli
HammXVIINapoJinnBreaMariKathOperDaviStarErneWantOpenJoshZombBryaFighHenrSheiDeboVerkBlueBlue
BlueCoveDaviCindVariAccoMusiShinPublRichmailSaraBowmtuchkassalawwwr

Author:  wanai [ Sat Nov 05, 2022 7:31 pm ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

comm48.5PERFBettBackSimfSongJeweSampGramJohnFoodTescTescStudFamiBrotAndrKickGustJeweHitoMusi
TescJosegiveMadoAstrSplaAlfrDaveEHLPNaziLifeLaisThemThomHarrCreoDoctGeraUltrDomiTescPaleGust
DunnVoguSubuAndrAmanFashBulaBonuMODOBOOMELEGAlchStatSelaGradRoxyWittRichElegShelMariCotoSher
MarcJuliGUESModoELEGFeliKhosDOUBArteFeliAvraRondSelaSandThomPierZoneDrifThomXVIISponFuxiEnri
ZoneZoneZoneLookPianJannZoneZoneMargZoneXVIIZoneZoneJeanEuriFablZoneZoneXVIIZoneColdZoneZone
ZoneFFAFPennQuadShooCataNodoBekoAgnePeugWindChicBabyDaliEISGWoodPoorBlauSTARIntrSandonlyRock
ValiValiFlogBlanHautGracWingWindPastWindCariBrauValeLittChoiWindVersLudwXVIIFantFlyiPeteSult
LudwDarkAcadForeDeniHarrAnatJameEltoPratDealDeboFranDreaSystTellCameInteCarlAndrJeanOpenTets
NintJohnJudiStevStepWhorJeweVeryMicrSydnPhilGoogLiteNelsGaryBallAnitKeikKareBritUninQuadQuad
QuadSmeaReggPlaySabiTimeWineGregTereGoldAnnaCharcapptuchkasSodiPoly

Author:  wanai [ Mon Dec 12, 2022 4:31 am ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт

Author:  wanai [ Sun Feb 05, 2023 3:56 am ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

worl205.5CHAPaddiApolThomNatuNellAstehterRobeDeshTescThisMichMatiWoodMattFiskGeorRobeStouVict
DaveProfMichGeraKlauSunsComfGiveTerlBireNameOrleOmmaSeasSigmMickXVIISatiShelMileErgoCleaHibb
SigmCircBouqAlicDashSantFathXVIIELEGCircRoxyWynoDiffSelaElegSelaGregVladPartTalkOmsaCotoCarl
JeffFunkSelaFallVentFELIELEGColiPaliFallJiddRomaNikiDonaZoneAnneSwarCLAMNautXVIISpliZoneClas
ZoneMiyoMurpZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneHistZoneZoneZoneZoneWoodZoneZone
ZoneWindFiatdigiHonoTeveDaewINTEPleoTuttFirsToloEscaTinkGiglVanbWoodCaprSTARARAGVolkThisMode
SinuForeEducHautLuxeSylvPartWindWindWindPeteDeLoSupeChouMonAFantInfiwwwnJewePretWashssivClea
RepaPagaXVIIXVIICartTAllFyodUltiStifAlfrMargJameBlinStraYevgEricPhilValeAlasEnglWellCaptSusa
RobeLateMarkThomWillStepJeweWindIEEESoffFirsJeweNewsLindChriMidnExceMicrXVIIHanaIntedigidigi
digiComeMustJohnMariChriGoudGlenCrimFiatonliSweeAwaytuchkasHipoSeam

Author:  wanai [ Thu May 11, 2023 5:26 am ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

Anna265.3CHAPCHAPMikeWantSupeYashMichWernNicoMichAtlaCasuDickGalaEdgaYourXVIIHenrZoneDreaEdga
AtlaCereTescMichPresVenuColgKlauOutsAdriDiscBabyJavaCreoTreeDaviPlanPhidVisuGreeSherUmbeSala
BrilBonnLookDolbRemiArktBackMariSampPradcottReevJeweRichDaviAntoWarnElegNikiSpliCircHanspsyc
TrasSiniJeroArthEleaAgatMabuCallEdwaDynaKrzyGuitUndediamArtsINDECarlHaroZoneQBDWJackBabySwar
ZoneAlphRusidiamCharOptipediPeteIngmSkytToucMusiGileStevIrenToccMichThomMartKleeWaltIsaaDanc
ClubRodeIndiLansXVIIHAZEKronCataSakaJeanWhitDesiFierColiESFWLineDuraHeliJuniHEYNElecNCLESmoo
ValiAeroNDFEPascTeddWindFrieCanoDorlwwwnSupeMoulChouMexxCageAlexSreeJohnInstSeanAgatBlueGaiu
WindGottMarsDaviAnywGinaUsinEmilNelsAcadThomValuNialDylaHerbLookSpecLastEsteFOREJohnPozoLamb
WindPatrDecoEnglPampAntoToveSonyMarcEuroAusrHansCallPresAnniStevElizSallNEGARichGilbLansLans
LansAnnaPROMMassKidsSudhElevRobeKeevAllaAndrYestThistuchkasXVIIRoma

Author:  wanai [ Fri Jun 16, 2023 8:36 pm ]
Post subject:  Re: Destroyable tile(layer) and destroyable block?

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/